vera_cli package¶
Command-line interface for VERA. The console entry point is vera.
vera_cli
¶
Modules:
-
main–
Functions:
-
build_parser–Build the
veracommand-line argument parser. -
str_to_bool–
evaluate
¶
evaluate(
vera_path: str,
queries_path: str,
mode: str = "hybrid",
top_k: int = 5,
) -> dict[str, Any]
Evaluate a VERA file against a query file.
mode may be one of semantic/keyword/hybrid, or "all" to compare every mode.
evaluate_document
¶
evaluate_document(
doc: VeraDocument,
cases: list[QueryCase],
mode: str = "hybrid",
top_k: int = 5,
) -> dict[str, Any]
Evaluate one search mode against all query cases.
See the CLI reference for every command, flag, and JSON output shape.