mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-10 04:08:31 +00:00
rename scoring
This commit is contained in:
parent
59b1263090
commit
f1f0b7bb22
1 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@ from ..datasetio.test_datasetio import register_dataset
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def test_dataset_rag(llama_stack_client):
|
||||
def rag_dataset_for_test(llama_stack_client):
|
||||
register_dataset(llama_stack_client, for_rag=True)
|
||||
yield # This is where the test function will run
|
||||
|
||||
|
@ -91,7 +91,7 @@ def test_scoring_functions_register(
|
|||
# TODO: add unregister api for scoring functions
|
||||
|
||||
|
||||
def test_scoring_score(llama_stack_client, test_dataset_rag):
|
||||
def test_scoring_score(llama_stack_client, rag_dataset_for_test):
|
||||
# scoring individual rows
|
||||
rows = llama_stack_client.datasetio.get_rows_paginated(
|
||||
dataset_id="test_dataset",
|
||||
|
@ -126,7 +126,7 @@ def test_scoring_score(llama_stack_client, test_dataset_rag):
|
|||
|
||||
|
||||
def test_scoring_score_with_params_llm_as_judge(
|
||||
llama_stack_client, sample_judge_prompt_template, judge_model_id, test_dataset_rag
|
||||
llama_stack_client, sample_judge_prompt_template, judge_model_id, rag_dataset_for_test
|
||||
):
|
||||
# scoring individual rows
|
||||
rows = llama_stack_client.datasetio.get_rows_paginated(
|
||||
|
@ -177,7 +177,7 @@ def test_scoring_score_with_params_llm_as_judge(
|
|||
],
|
||||
)
|
||||
def test_scoring_score_with_aggregation_functions(
|
||||
llama_stack_client, sample_judge_prompt_template, judge_model_id, provider_id, test_dataset_rag
|
||||
llama_stack_client, sample_judge_prompt_template, judge_model_id, provider_id, rag_dataset_for_test
|
||||
):
|
||||
rows = llama_stack_client.datasetio.get_rows_paginated(
|
||||
dataset_id="test_dataset",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue