search
Find indexed documents in the knowledge base using hybrid keyword and semantic matching. Read-only query that returns results ranked by relevance.
Instructions
Search documents indexed via Index.add_files()/add_text() - the
agent's reference knowledge base, not its own memory. Use recall
instead for notes the agent itself chose to remember.
Read-only, no side effects. Results are ranked best-match-first by
a hybrid of keyword and semantic similarity, not necessarily
indexing order. If k exceeds how many documents exist, every
document is returned rather than raising an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Maximum number of results to return, best match first. | |
| query | Yes | What to search for - matched by both keyword and semantic meaning. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |