Answer With Cited Sources
library_answerAsk a plain-English question and receive a synthesized answer with inline citations, fused across multiple library sources. Every factual claim is cited or dropped, with warnings for uncited content.
Instructions
Ask a question in plain English and get a synthesized answer with inline [n] citations, fused across sources with reciprocal rank fusion. Use this instead of library_ask when you want a cited answer rather than raw results. Every factual sentence is cited or dropped; an uncited or all-dropped answer is flagged in warnings[]. Requires OPENAI_API_KEY (or ALEXANDRIA_SYNTH_API_KEY). Set response_format: "detailed" for the full result set, routing, citation grades, and resolvability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language question | |
| read_top | No | How many top full-text results to read and cite (default 4) | |
| max_sources | No | Max number of sources to search (default 6) | |
| response_format | No | concise (default) trims results/citations to high-signal fields; detailed returns the full payload, including routing reasons, scores, and stage diagnostics. | concise |
| results_per_source | No | Results to fetch per source (default 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | ||
| results | No | ||
| routing | No | ||
| warnings | No | ||
| citations | Yes |