Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix external_rag example #1526

Merged
merged 2 commits into from
Jan 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@
# Select the desired metric(s).
# Each metric measures a certain aspect of the generated answer (answer_correctness, faithfulness,
# answer_relevance and context_relevance).
# All available metrics are under "catalog.metrics.rag.autorag.", ending with "judge"
# All available metrics are under "catalog.metrics.rag.external_rag.", ending with "judge"
# By default, all judges use llama_3_3_70b_instruct. We will soon see how to change this.
metric_names = [
"metrics.rag.autorag.answer_correctness.llama_3_3_70b_instruct_wml_judge",
"metrics.rag.autorag.faithfulness.llama_3_3_70b_instruct_wml_judge",
"metrics.rag.external_rag.answer_correctness.llama_3_3_70b_instruct_watsonx_judge",
"metrics.rag.external_rag.faithfulness.llama_3_3_70b_instruct_watsonx_judge",
]

# select the desired model.
# select the desired model, including provider.
# all available models are under "catalog.engines.classification"
model_names = ["engines.classification.mixtral_8x7b_instruct_v01_wml"]
model_names = ["engines.classification.llama_3_3_70b_instruct_rits"]

if __name__ == "__main__":
multi_stream = MultiStream.from_iterables({"test": test_examples}, copying=True)
Expand Down
Loading