rag_answer
Generates a sourced answer to a question by querying the RAG service, returning supporting documents, latency breakdown, and query cost for when you need a written response rather than raw passages.
Instructions
Ask the RAG service to generate an answer, with its sources and trace.
This calls a language model, so it is slower and costs money; prefer rag_search when you intend to read the passages and answer yourself. Returns the answer, the documents it drew on, the per-stage latency breakdown and the cost of the query in USD.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |