Query the RAG index
rag_queryAsk a question to retrieve the most relevant document chunks with source citations and similarity scores.
Instructions
Ask a question against the indexed documents and get back the most relevant chunks with their source file and a similarity score, for citation.
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": {
"question": "<question>"
},
"name": "rag_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Number of chunks to return | |
| question | Yes | The question to search for |