search_corpus
Find passages across the corpus relevant to a question, ranked with citations and query terms. Use it before answering to ground responses in cited source material.
Instructions
Find passages across the corpus that bear on a question.
Call this before answering anything of substance. Returns ranked passages,
each with a citation `ref` and the list of query terms it actually contains.
Not for reading a passage you already have a ref for — use read_passage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | How many passages to return. | |
| work | No | Restrict to one work by slug (see list_works). Leave unset to search everything. | |
| query | Yes | The idea to look for, in a few content words. Older vocabulary matches better: 'sympathy' over 'empathy', 'master and men' over 'management'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| status | Yes | ok — passages found that match most of the question's terms. weak — something matched, but thinly; say so if you use it. no_coverage — the corpus does not speak to this. Say that. Do not answer from elsewhere. not_found — a specific reference did not resolve. | |
| constraint | No | Answer only from these passages. Quote or closely paraphrase, and cite each claim as [Author, Title §n]. If the passages do not speak to the question, say so plainly rather than filling the gap from elsewhere. | |
| provenance | No | Every passage is from a work by a named woman author, in the public domain, via Project Gutenberg. | |
| limitations | No | Part of the answer, not a disclaimer. |