← Back to list

Generation Metrics (in AutoRAG)

1. Bleu

Bwook · 2024-05-03 11:13 · 0 claps · 1.9 min read
#rags #metrics #g-eval #bleu #rouge
Open on Medium ↗
Wiki topics: RAG · RAG & Retrieval

Generation Metrics (in AutoRAG)

1. Bleu

BLEU (Bilingual Evaluation Understudy)

📌 Definition

n-gram base

The extent to which words in the genersphinx-apidoc -f -o docs/source/api_spec ./autorag/ated sentence are included in the reference sentence → By AutoRAG, the extent to which words in the LLM generated result are included in Answer gt

2. Rouge

Rouge (Recall-Oriented Understudy for Gisting Evaluation)

📌 Definition

n-gram base

The extent to which words from the reference setence are included in the generated sentence → By AutoRAG, the extent to which words in Answer gt are included in the LLM generated result

3. METEOR

METEOR (Metric for Evaluation of Translation with Explicit ORdering)

📌 Definition

Here is the paper link that introduced METEOR

The metric is based on the harmonic mean of unigram precision and recall, with recall weighted higher than precision.

It also has several features that are not found in other metrics, such as stemming and synonymy matching, along with the standard exact word matching.

The metric was designed to fix some of the problems found in the more popular BLEU metric, and also produce good correlation with human judgement at the sentence or segment level.

This differs from the BLEU metric in that BLEU seeks correlation at the corpus level.

4. Sem Score

📌 Definition

Here is the paper link that introduced Sem Score.

The concept of SemScore is quite simple.

It measures semantic similarity between ground truth and the model’s generation using an embedding model.

You can find more detailed information at here

5. G-Eval

📌 Definition

Here is the link that introduced G-Eval

G-Eval, a framework of using large language models with chain-of-thoughts (CoT) and a form-filling paradigm, to assess the quality of NLG outputs.

Paper said that G-Eval with GPT-4 as the backbone model achieves a Spearman correlation of 0.514 with human on summarization task, outperforming all previous methods by a large margin.

So, in AutoRAG, we use G-Eval with GPT-4

🍀 1. Coherence

  • Evaluate whether the answer is logically consistent and flows naturally.
  • Evaluate the connections between sentences and how they fit into the overall context.

🍀 2. Consistency

  • Evaluate whether the answer is consistent with and does not contradict the question asked or the information presented.
  • A answer should provide information that does not conflict with the requirements of the question or the data presented.

🍀 3. Fluency

  • Evaluate answers for fluency

🍀 4. Relevance

  • Evaluate how well the answer meets the question’s requirements
  • A highly relevant answer should be directly related to the question’s core topic or keyword.

6. Bert Score

📌 Definition

Here is the link that introduced BERT Score.

A metric that measures the similarity between two sentences using BERT’s Contextual Embedding.

Get the Contextual Embedding value of Answer gt and LLM generated result with BERT, evaluate the similarity with Cosine Similarity for each token-pair, and weight each token with IDF.


메타데이터
post_id
aaec7cd0c0b5
slug
generation-metrics-in-autorag-aaec7cd0c0b5
url
https://medium.com/@bwook/generation-metrics-in-autorag-aaec7cd0c0b5
canonical_url
https://medium.com/@bwook/generation-metrics-in-autorag-aaec7cd0c0b5
author_url
https://medium.com/@bwook
status
ok
fetched_at
2026-07-23 22:51:33