Open Source Projects / ragcourt

ragcourt

The answer was in your docs. It never reached the model.

The ragcourt website

ragcourt tests the retrieval step of a RAG system on your own documents: the chunker, the embedder, the retriever and the reranker. For every question whose answer never reached the model, it names the stage that lost it, shows the evidence, and measures the fix. It will not name a winner when luck could explain the difference.

  • 14real documentation sets tested
  • 6kinds of test question
  • 2,000resamples before naming a winner

How it works

  1. 1Write the test

    A model reads your documents and writes questions whose answers are exact quotes, so code can check them.

  2. 2Search the stages

    Each question is followed through the pipeline until its answer reaches the model, or is lost.

  3. 3Explain the misses

    Every miss gets a cause, the evidence, and a measured fix.

Built with
Python 3.11+, no dependencies in the core
Licence
Apache-2.0
Status
v0.1 alpha
Limits
Version 0.1 is an alpha and isn't on PyPI yet.

Related books

Other projects