mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Update rag_bm.py
This commit is contained in:
parent
4bf9cfa51b
commit
d0b00e3bfb
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class RAGExample:
|
|||
logger.info(f"=====The {dataset.name} Benchmark dataset assessment is complete!=====")
|
||||
self._print_bm_result(results)
|
||||
|
||||
write_json_file(os.path.join(EXAMPLE_BENCHMARK_PATH, dataset.name, "bm_result.json"), results, "utf-8")
|
||||
write_json_file((EXAMPLE_BENCHMARK_PATH \ dataset.name \ "bm_result.json").as_posix()), results, "utf-8")
|
||||
|
||||
async def rag_evaluate_single(self, question, reference, ground_truth, print_title=True):
|
||||
"""This example run rag pipeline, use faiss&bm25 retriever and llm ranker, will print something like:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue