Skip to content

[Feature] Create an Evaluation Pipeline using RAGAS for Answer Quality Metrics #828

Description

@knoxiboy

Description
Changes to chunking, retrieval, or prompts are currently evaluated subjectively. There is no automated way to know if a change improved or degraded the assistant's performance.

Implementation

  1. Create an evaluation script using the RAGAS (Retrieval Augmented Generation Assessment) framework.
  2. Build a golden dataset of test PDFs and Q&A pairs.
  3. Automate the calculation of key metrics: Faithfulness (hallucination detection), Answer Relevance, Context Precision, and Context Recall.
  4. Add a GitHub action to run this evaluation on a subset of the data for every pull request that modifies the RAG pipeline.

Level: Critical
Affected Files: scripts/evaluate.py, .github/workflows/evaluate.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    gssocGirlScript Summer of Code 2026 issue/PR

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions