search
Retrieve relevant document chunks from a knowledge base by submitting a query. Results are sorted by relevance using pre-computed embeddings, with options for scope and count.
Instructions
Search the knowledge base for relevant document chunks.
``top_k`` defaults to the ``top_k`` config field so ``settings_set``
governs the candidate count for agents that don't pass it explicitly.
``scope`` picks the pool: ``"raw"`` (source chunks), ``"wiki"`` (wiki
page bodies), or ``"both"`` (default, unfiltered). Returns chunks
sorted by relevance. No LLM call -- uses pre-computed embeddings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| scope | No | both |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |