microsoft / microsoft/rag-experiment-accelerator

Add promptflow-evals quality metrics as an alternative to ragas

Open
#707 1 comment 0 reactions 1 assignee View on GitHub

@prvenk is already working on this.

Since Sep 13, 2024.

  • #731 by @prvenk — open
enhancement
Dominant language
Python
Stars
311
Forks
111
PR merge metrics
No merged PRs in 30d

Description

We currently leverage some llm based evaluation metrics from ragas: https://github.com/explodinggradients/ragas
namely, llm_context_precision, llm_context_recall and llm_answer_relevance in this function compute_llm_based_score. These are the RAG triad of metrics.

For rag usecases, however we have an alternative llm-as-a-judge framework provided by promptflow-evals (supported by Microsoft and part of promptflow): https://pypi.org/project/promptflow-evals/

This evaluation framework has quality metrics such as relevance that can be leveraged for answer relevance or context precision. It has a targeted prompt for groundedness. promptflow-evals also has other quality metrics such as coherence, style, fluency, similarity. Moreover, the package also can enable inclusion of safety metrics such hate unfairness, violence, sexual among others.

Ideally, this can serve as a replacement for ragas metrics, but we can integrate promptflow-evals first and make a decision about removing ragas in a subsequent issue given many might be using ragas metrics.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.