Skip to content

Commit 90aa9af

Browse files
committed
update 5 metrics and dataset
1 parent 0532fb1 commit 90aa9af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/rag/sdk_rag_eval_batch_dataset.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
from dingo.model.llm.rag.llm_rag_context_recall import LLMRAGContextRecall
1919
from dingo.model.llm.rag.llm_rag_context_relevancy import LLMRAGContextRelevancy
2020
from dingo.model.llm.rag.llm_rag_faithfulness import LLMRAGFaithfulness
21+
from dingo.utils import log
22+
2123
# 配置日志文件路径
2224
LOG_FILE_PATH = "rag_eval_log.txt"
2325

@@ -35,8 +37,6 @@
3537
logger = logging.getLogger(__name__)
3638

3739
# 配置Dingo项目的日志模块为INFO级别
38-
from dingo.utils import log
39-
4040
log.setLevel('INFO')
4141

4242

@@ -51,6 +51,7 @@
5151
# 输入文件路径配置
5252
CSV_FILE_PATH = "ragflow_eval_data_50.jsonl" # 支持CSV和JSONL格式
5353

54+
5455
def evaluate_from_jsonl(jsonl_path):
5556
"""从JSONL文件读取数据并进行RAG指标评测"""
5657
logger.info(f"\n从JSONL文件 {jsonl_path} 读取数据进行评测...")

0 commit comments

Comments
 (0)