rag_answer
Given a query, retrieves relevant context from the knowledge base and generates a cited answer.
Instructions
Generate a RAG answer with citations from the knowledge base.
Args:
query: The question to answer.
collection: Optional collection to search in.
top_k: Number of context chunks to retrieve.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "rag_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| collection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |