Use the CLI Interface
The SearcherKit command-line interface is used to run configurations, evaluate outputs, inspect configurations, and manage plugins.
| Command | Purpose |
|---|---|
searcher run |
Run an agent from a configuration |
searcher evaluate |
Score saved runs with an LLM judge |
searcher inspect |
Validate a composed configuration without running the agent |
searcher tui |
Run an interactive query in the terminal UI |
searcher plugins list |
List installed plugins |
searcher plugins deploy |
Deploy plugin data to Elasticsearch |
searcher plugins convert |
Convert plugin or training datasets |
Resolving --config-path
run, inspect, and tui accept a path or a packaged configuration name. SearcherKit first checks the path relative to the current directory, then an absolute path, and finally the packaged configuration directory. A missing .yaml suffix is tried automatically. Once loaded, Hydra-style overrides are applied last:
searcher inspect --config-path searchagent agent.llm_client.model=demosearcher run
Run a SearcherKit configuration.
searcher run --config-path searchagentArguments:
| Argument | Default | Purpose |
|---|---|---|
--config-path PATH |
None (uses config.yaml) |
Configuration file path or packaged configuration name. |
--debug |
false |
Set the log level to DEBUG. |
See Batch Run and Evaluate for a complete batch workflow.
searcher evaluate
Evaluate saved run records using an LLM judge.
searcher evaluate outputs/webexplorer outputs/webexplorer_eval \
--max-concurrency 32The evaluation process uses the OPENAI_BASE_URL and OPENAI_API_KEY environment variables.
Arguments:
| Argument | Default | Purpose |
|---|---|---|
input_dir |
Required | Directory containing run record JSON files. |
output_dir |
Required | Directory in which to write evaluation result JSON files. |
--max-concurrency N |
None (runtime default) |
Maximum number of records to evaluate concurrently. |
--answer-pattern REGEX |
Built-in answer regex | Regex used to extract the final answer before evaluation. It must contain a named capture group, (?P<answer>...). |
searcher inspect
Recursively validate configuration fields against their corresponding structured config types without running the agent.
searcher inspect \
--config-path webexplorerArguments:
| Argument | Default | Purpose |
|---|---|---|
--config-path PATH |
None (uses config.yaml) |
Configuration file path or packaged configuration name. |
- Raise ERROR when unexpected field in config (not in target dataclass) or required field missing (no default value in target dataclass)
Hydra-style overrides are also supported, the error would be raised when overriden config is invalid:
searcher inspect \
--config-path websailor \
agent.llm_client.model=demosearcher plugins
searcher plugins list
List plugins or run plugin deployment tools.
searcher plugins listArguments: none.
searcher plugins deploy local-wiki / browsecomp-plus
See Build the Index for the full indexing workflow.
Common arguments:
| Argument | Default | Purpose |
|---|---|---|
--es_host URL |
Required | Elasticsearch URL. |
--es_username TEXT |
None |
Elasticsearch username. Must be provided together with the password. |
--es_password TEXT |
None |
Elasticsearch password. Must be provided together with the username. |
--index_name TEXT |
Required | Elasticsearch index name. |
--model_name TEXT |
"" |
SentenceTransformer model name or path. Required with --dense-vector. |
--embedding_dim N |
0 |
Dense-vector dimension. |
--prompt_strategy {none,e5,qwen3} |
none |
Embedding prompt strategy. |
--batch_size N (alias --cpu_batch_size) |
200 |
CPU document batch size. |
--embedding_batch_size N (alias --gpu_batch_size) |
16 |
Embedding batch size. |
--max_text_chars N |
32768 |
Maximum number of text characters per document. |
--limit N |
None |
Maximum number of documents to process. |
--shards N |
1 |
Number of Elasticsearch shards. |
--replicas N |
0 |
Number of Elasticsearch replicas. |
--overwrite |
false |
Replace an existing index. |
--dense-vector |
false |
Enable dense-vector indexing. |
browsecomp-plus arguments:
| Argument | Default | Purpose |
|---|---|---|
--dataset_path PATH |
Required | Hugging Face dataset name or local JSON, JSONL, or Parquet path. |
--split TEXT |
train |
Dataset split. |
local-wiki arguments:
| Argument | Default | Purpose |
|---|---|---|
--wiki_dump_path PATH |
Required | Path to a MediaWiki XML or XML.bz2 dump. |
--base_url URL |
https://en.wikipedia.org/wiki/ |
Base URL used to construct Wiki page links. |
Deploy a local Wiki index:
searcher plugins deploy local-wiki \
--wiki_dump_path data/wiki.xml.bz2 \
--es_host http://127.0.0.1:9200 \
--index_name wiki_local \
--overwriteAdd --dense-vector --model_name Qwen3-Embedding-0.6B --embedding_dim 1024 to enable dense-vector indexing.
searcher plugins convert
Run the dataset conversion command provided by the plugin. Remaining arguments are forwarded to the conversion tool:
searcher plugins convert --helpArguments:
| Argument | Default | Purpose |
|---|---|---|
input_path |
Required | Input OpenSeeker JSONL dataset path. |
output_path |
Required | Output MS-Swift JSONL dataset path. |
--max-records N |
0 (unlimited) |
Maximum number of records to convert. |
searcher tui`
Run queries in the terminal UI. See Use the Interactive TUI for the complete workflow.
searcher tui --config-path configs/demo/config.yamlArguments:
| Argument | Default | Purpose |
|---|---|---|
--config-path PATH |
None (uses config.yaml) |
Configuration file path or packaged configuration name. |
--debug |
false |
Set the log level to DEBUG. |
--env-file PATH |
.env |
Dotenv file from which to load LLM environment variables. |
--query TEXT |
None |
Run one query non-interactively. |
--interactive-output-path PATH |
None |
Directory for interactive run records. |