scoring updates

This commit is contained in:
Xi Yan 2025-03-12 21:58:49 -07:00
parent 3a87562e8d
commit 25710c3b8a
3 changed files with 6 additions and 6 deletions

View file

@ -3620,7 +3620,7 @@
}
}
},
"/v1/scoring/score": {
"/v1/scoring/rows": {
"post": {
"responses": {
"200": {
@ -3663,7 +3663,7 @@
}
}
},
"/v1/scoring/score-batch": {
"/v1/scoring/jobs": {
"post": {
"responses": {
"200": {

View file

@ -2461,7 +2461,7 @@ paths:
schema:
$ref: '#/components/schemas/SaveSpansToDatasetRequest'
required: true
/v1/scoring/score:
/v1/scoring/rows:
post:
responses:
'200':
@ -2491,7 +2491,7 @@ paths:
schema:
$ref: '#/components/schemas/ScoreRequest'
required: true
/v1/scoring/score-batch:
/v1/scoring/jobs:
post:
responses:
'200':

View file

@ -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]],