Project overview
Lexa lets teams ask questions across hundreds of pages of contracts and policies and returns answers with paragraph-level citations they can verify.
Problem
Reviewing long documents is slow and error-prone. Generic chatbots answer confidently but rarely show where an answer came from, which makes them unusable for compliance work.
Solution
A retrieval-augmented pipeline that chunks documents by legal structure, retrieves the most relevant clauses and forces the model to cite every claim. Answers without sources are rejected.
Architecture
- 1
Ingest
PDFs parsed into clause-aware chunks with section metadata.
- 2
Index
Embeddings stored in Postgres with pgvector and hybrid keyword search.
- 3
Retrieve
Top-k clauses re-ranked by relevance and recency.
- 4
Generate
LLM answers with mandatory inline citations and confidence notes.
- 5
Evaluate
Automated test set measures faithfulness and citation accuracy.
Screenshots
Demo
Demo video not yet available
Creators can attach a demo video link when their project is published.