Skip to content

Commit

Permalink
fix FaqGen accuracy scripts bug (#1039)
Browse files Browse the repository at this point in the history
Signed-off-by: Xinyao Wang <xinyao.wang@intel.com>
  • Loading branch information
XinyaoWa authored Oct 29, 2024
1 parent bc47930 commit fde5996
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion FaqGen/benchmark/accuracy/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
contexts.append([inputs_faq])

embeddings = HuggingFaceBgeEmbeddings(model_name="BAAI/bge-base-en-v1.5")
metrics_faq = ["answer_relevancy", "faithfulness", "context_utilization", "reference_free_rubrics_score"]
metrics_faq = ["answer_relevancy", "faithfulness", "context_utilization", "rubrics_score_without_reference"]
metric = RagasMetric(threshold=0.5, model=llm_endpoint, embeddings=embeddings, metrics=metrics_faq)

test_case = {"question": question, "answer": answer, "ground_truth": ground_truth, "contexts": contexts}
Expand Down
1 change: 0 additions & 1 deletion FaqGen/benchmark/accuracy/launch_tgi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ docker run -it --rm \
-p $port_number:80 \
-v $volume:/data \
--runtime=habana \
--restart always \
-e HUGGING_FACE_HUB_TOKEN=$HUGGING_FACE_HUB_TOKEN \
-e HABANA_VISIBLE_DEVICES=all \
-e OMPI_MCA_btl_vader_single_copy_mechanism=none \
Expand Down

0 comments on commit fde5996

Please sign in to comment.