molbr/pl-ragas-analyzer — explained in plain English
Analysis updated 2026-05-18
Measure how faithful and relevant a RAG system's answers are using six Ragas metrics.
Run ablation experiments like no-retrieval, different retrieval widths, and injected noise to see how metrics react.
Compare a local Ollama judge against Claude to see how much they agree on answer quality.
Build a small Portuguese-language question answering pipeline over recent legislative bills.
| molbr/pl-ragas-analyzer | 0xustaz/streamgate | a-bissell/unleash-lite | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Python | Python | Python |
| Setup difficulty | — | hard | hard |
| Complexity | — | 4/5 | 4/5 |
| Audience | researcher | developer | researcher |
Figures from each repo's GitHub metadata at analysis time.
pl-ragas-analyzer is a small research project that studies how well a RAG system, meaning a retrieval-augmented generation setup that looks up documents before answering a question, can be evaluated rather than trying to build a great RAG system itself. The RAG part is intentionally simple: it uses plain cosine similarity over embeddings with no vector database at all. The real subject is measuring the quality of that retrieval and the answers it produces, using a tool called Ragas with Claude acting as the judge that scores each answer. The documents behind this project are recent bills from the Brazilian Chamber of Deputies, in Portuguese, submitted in June and July of 2026. Because these bills are newer than the training data of any language model, a correct answer can only come from the retrieval step finding the right document, not from the model already knowing the answer from memory. The data is pulled from a free, key-free government API. The project fetches around 100 bills, builds an embedding index using a local Ollama model, and then answers questions by finding the most relevant bills and asking Claude to respond in Portuguese based on what was retrieved. A separate evaluation script runs 16 hand-written questions through six Ragas metrics, including faithfulness, answer relevancy, and whether retrieval returned the right documents versus irrelevant noise, plus one custom metric checking whether an answer cites the bill's official number. Several ablation experiments are included too, such as running with no retrieval at all, changing how many documents are retrieved, injecting irrelevant documents on purpose, and combining exact number matching with vector search for bill numbers that plain embeddings cannot understand. The generator and judge can also be swapped to run entirely on local models through Ollama instead of the Anthropic API, which removes API cost and lets someone compare how well a local judge agrees with Claude's scoring. Setup requires Python 3.11, a running Ollama instance with an embedding model pulled, and an Anthropic API key for the default configuration, since running the full Claude-judged evaluation costs roughly one to two dollars per run. The README notes a few compatibility issues with specific Ragas and library versions but does not state a license for the project.
A research project that evaluates a simple RAG system over Brazilian government bills, using Claude as an automated judge.
Mainly Python. The stack also includes Python, Ragas, Ollama.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.