papercortex_query
Answers questions from your local Paperless-ngx document index by retrieving relevant excerpts and generating a grounded response with source IDs, titles, and relevance scores.
Instructions
Answer a question using Ollama and the closest matching excerpts from the local search index. Returns an answer with source IDs, titles and relevance scores, or a message when no sources match. Use papercortex_search to browse matches. For exact archive-wide totals, a sample of retrieved excerpts is insufficient.
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": "papercortex_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | Question used both to retrieve related excerpts and to generate the answer. | |
| maxDocuments | No | Maximum matching documents to use as evidence. Each contributes up to 2,000 characters of indexed text. |