Search Corpus
search_corpusSearch a built-in sample FOI document corpus with an in-memory inverted index for experimental full-text search. Returns ranked hits with id, score, and title.
Instructions
Search a built-in sample FOI document corpus with the bleeding-edge in-memory inverted index (demo). Use for experimental full-text search over sample titles/bodies; prefer list_requests/retrieve_request for real local SQLite requests. Read-only and idempotent; does not query the database or network. Returns ranked hits with id, score, and title.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of ranked hits to return (1-50). Defaults to 10. | |
| query | Yes | Free-text search query tokenized into alphanumeric terms. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | Yes | Ranked search hits (id, score, title). | |
| query | Yes | Echo of the search query. | |
| document_count | Yes | Number of documents in the demo corpus. |