mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-01 17:24:32 +00:00
remove evals from top-level
This commit is contained in:
parent
a475d72155
commit
86486a94ce
10 changed files with 166 additions and 263 deletions
|
|
@ -22,11 +22,16 @@ class LlamaStackApi:
|
|||
},
|
||||
)
|
||||
|
||||
def run_scoring(self, row, scoring_function_ids: list[str], scoring_params: Optional[dict]):
|
||||
def run_scoring(
|
||||
self, row, scoring_function_ids: list[str], scoring_params: Optional[dict]
|
||||
):
|
||||
"""Run scoring on a single row"""
|
||||
if not scoring_params:
|
||||
scoring_params = {fn_id: None for fn_id in scoring_function_ids}
|
||||
return self.client.scoring.score(input_rows=[row], scoring_functions=scoring_params)
|
||||
|
||||
# TODO(xiyan): fix this
|
||||
# return self.client.scoring.score(input_rows=[row], scoring_functions=scoring_params)
|
||||
raise NotImplementedError("Scoring is not implemented")
|
||||
|
||||
|
||||
llama_stack_api = LlamaStackApi()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue