mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-07 19:12:09 +00:00
scoring updates
This commit is contained in:
parent
3a87562e8d
commit
25710c3b8a
3 changed files with 6 additions and 6 deletions
4
docs/_static/llama-stack-spec.html
vendored
4
docs/_static/llama-stack-spec.html
vendored
|
@ -3620,7 +3620,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/scoring/score": {
|
"/v1/scoring/rows": {
|
||||||
"post": {
|
"post": {
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
|
@ -3663,7 +3663,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/scoring/score-batch": {
|
"/v1/scoring/jobs": {
|
||||||
"post": {
|
"post": {
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
|
|
4
docs/_static/llama-stack-spec.yaml
vendored
4
docs/_static/llama-stack-spec.yaml
vendored
|
@ -2461,7 +2461,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/SaveSpansToDatasetRequest'
|
$ref: '#/components/schemas/SaveSpansToDatasetRequest'
|
||||||
required: true
|
required: true
|
||||||
/v1/scoring/score:
|
/v1/scoring/rows:
|
||||||
post:
|
post:
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
|
@ -2491,7 +2491,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ScoreRequest'
|
$ref: '#/components/schemas/ScoreRequest'
|
||||||
required: true
|
required: true
|
||||||
/v1/scoring/score-batch:
|
/v1/scoring/jobs:
|
||||||
post:
|
post:
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
|
|
|
@ -55,14 +55,14 @@ class ScoringFunctionStore(Protocol):
|
||||||
class Scoring(Protocol):
|
class Scoring(Protocol):
|
||||||
scoring_function_store: ScoringFunctionStore
|
scoring_function_store: ScoringFunctionStore
|
||||||
|
|
||||||
@webmethod(route="/scoring/score-batch", method="POST")
|
@webmethod(route="/scoring/jobs", method="POST")
|
||||||
async def score_dataset(
|
async def score_dataset(
|
||||||
self,
|
self,
|
||||||
dataset_id: str,
|
dataset_id: str,
|
||||||
scoring_fn_ids: List[str],
|
scoring_fn_ids: List[str],
|
||||||
) -> ScoreBatchResponse: ...
|
) -> ScoreBatchResponse: ...
|
||||||
|
|
||||||
@webmethod(route="/scoring/score", method="POST")
|
@webmethod(route="/scoring/rows", method="POST")
|
||||||
async def score(
|
async def score(
|
||||||
self,
|
self,
|
||||||
dataset_rows: List[Dict[str, Any]],
|
dataset_rows: List[Dict[str, Any]],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue