← Back to work
Contract Q&A RAG
RAGLLMsRAGASPython

Contract Q&A RAG

2025Portfolio project

A portfolio project exploring retrieval and generation for contract questions, with RAGAS used to evaluate the pipeline.

The problem

Answering precise questions about long legal contracts by hand is slow and easy to get wrong.

What I did

  • Built a retrieval-augmented pipeline over the contract documents.
  • Tuned retrieval and generation for precise, grounded answers.
  • Measured quality with RAGAS instead of relying on impressions.

Results

  • Produced answers that include supporting contract context.
  • Used RAGAS to compare pipeline quality during development.