RAG Query Server
БесплатноНе проверенEnables querying a hybrid-retrieval RAG pipeline (dense + BM25) over ingested PDF documents, returning answers generated by Gemini.
Описание
Enables querying a hybrid-retrieval RAG pipeline (dense + BM25) over ingested PDF documents, returning answers generated by Gemini.
README
Hybrid-retrieval RAG (dense + BM25 sparse fused in Pinecone, Jina reranking, Gemini generation) over a single document.
Setup
pip install -r requirements.txt
Create a .env in the project root:
GOOGLE_API_KEY=your_key
PINECONE_API_KEY=your_key
PINECONE_INDEX_NAME=rag-hybrid
JINA_API_KEY=your_key
API_KEY=your_choice # protects the FastAPI endpoint
Ingest (run once before querying)
Chunks and embeds data/*.pdf into Pinecone, and fits the BM25 index.
python ingest.py
Run the endpoints
All three answer questions through the same pipeline.
1. CLI (ask.py)
python ask.py "What is the standard meal expense cap during business travel at Texazdi X?" # one-shot
python ask.py # interactive prompt
2. HTTP API (app.py, FastAPI)
python -m uvicorn app:app --host 127.0.0.1 --port 8000
Then query it (send the API_KEY from your .env as the x-api-key header):
curl -X POST http://127.0.0.1:8000/query \
-H "Content-Type: application/json" \
-H "x-api-key: your_choice" \
-d '{"question": " How many days of paid annual leave can be carried over to the next year, and what is the total annual leave allotment?"}'
Health check: GET http://127.0.0.1:8000/health
3. MCP server (mcp_server.py)
Exposes a query_documents tool over MCP (stdio):
python mcp_server.py
Evaluation (optional)
python -m evals.evaluate
Установка RAG Query Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/Akashbakshi99/RAG-Using-LangChain-MCPFAQ
RAG Query Server MCP бесплатный?
Да, RAG Query Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для RAG Query Server?
Нет, RAG Query Server работает без API-ключей и переменных окружения.
RAG Query Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить RAG Query Server в Claude Desktop, Claude Code или Cursor?
Открой RAG Query Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare RAG Query Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
