Demo
← All projects
Project

lex-rag

Upload a PDF, ask questions. Open-source BM25 retrieval and vector embeddings, powered by Google Gemini for grounded answers with citations using your own API key.

What it does

End-to-end retrieval augmented generation on a document you supply. Every answer cites the passages it used.

Why it exists

Most RAG demos hallucinate quietly. lex-rag refuses to answer when the retrieved context is thin — you see the citations, not just the answer.


Try it

Bring a document.

Add your Gemini API key on the left to activate the assistant.

3D Force Graph Visualizer
Graph Legend
Document
Text Chunk
Named Entity
Key Concept
Drag to rotate · Scroll to zoom · Click node to inspect
No Graph Nodes Available

Upload a document via the chat interface above with your Gemini API key active. Lex-RAG will automatically run graph extraction to populate documents, concepts, entities, and cross-chunk relationships.

Storage:Persistent JSON
Empirical Architecture Benchmarks
Evaluate Lex-RAG→