Skip to content

Commit 9eebb23

Browse files
committed
Update build_ragas_data.py
1 parent 3a48f65 commit 9eebb23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rag/chatbot/build_ragas_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def get_rag_answer(question, context, llm, chat_history, ctx_synthesis_strategy,
119119
dataset = Dataset.from_list(data_list)
120120
# 🔹 RAGAS 평가 실행
121121
# dataset = Dataset.from_list(file_path / "ragas_eval_data.json")
122-
results = evaluate(dataset, metrics=[answer_relevancy, context_precision])
122+
results = evaluate(dataset, metrics=[faithfulness, context_precision]) #answer_relevancy
123123

124124
print("📊 RAGAS 평가 결과:")
125125
print(results)

0 commit comments

Comments
 (0)