Skip to main content
Glama

Local RAG

query_documents

Search your local documents using natural language queries to find relevant information from PDF, DOCX, TXT, and Markdown files stored on your machine.

Instructions

Search through previously ingested documents (PDF, DOCX, TXT, MD) using semantic search. Returns relevant passages from documents in the BASE_DIR. Documents must be ingested first using ingest_file.

Input Schema

NameRequiredDescriptionDefault
queryYesNatural language search query (e.g., "transformer architecture", "API documentation")
limitNoMaximum number of results to return (default: 5, max recommended: 20)

Input Schema (JSON Schema)

{ "properties": { "limit": { "description": "Maximum number of results to return (default: 5, max recommended: 20)", "type": "number" }, "query": { "description": "Natural language search query (e.g., \"transformer architecture\", \"API documentation\")", "type": "string" } }, "required": [ "query" ], "type": "object" }

Other Tools from Local RAG

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/shinpr/mcp-local-rag'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server