mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 11:03:54 +00:00
scoring updates
This commit is contained in:
parent
3a87562e8d
commit
25710c3b8a
3 changed files with 6 additions and 6 deletions
|
|
@ -55,14 +55,14 @@ class ScoringFunctionStore(Protocol):
|
|||
class Scoring(Protocol):
|
||||
scoring_function_store: ScoringFunctionStore
|
||||
|
||||
@webmethod(route="/scoring/score-batch", method="POST")
|
||||
@webmethod(route="/scoring/jobs", method="POST")
|
||||
async def score_dataset(
|
||||
self,
|
||||
dataset_id: str,
|
||||
scoring_fn_ids: List[str],
|
||||
) -> ScoreBatchResponse: ...
|
||||
|
||||
@webmethod(route="/scoring/score", method="POST")
|
||||
@webmethod(route="/scoring/rows", method="POST")
|
||||
async def score(
|
||||
self,
|
||||
dataset_rows: List[Dict[str, Any]],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue