forked from phoenix-oss/llama-stack-mirror
huggingface obey consistency
This commit is contained in:
parent
09039eca57
commit
4cc1958af9
3 changed files with 76 additions and 49 deletions
15
docs/_static/llama-stack-spec.html
vendored
15
docs/_static/llama-stack-spec.html
vendored
|
@ -6902,8 +6902,12 @@
|
|||
"type": {
|
||||
"type": "string",
|
||||
"const": "huggingface",
|
||||
"default": "huggingface"
|
||||
"default": "huggingface",
|
||||
"description": "The type of the data source."
|
||||
},
|
||||
"huggingface": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "The path to the dataset in Huggingface. E.g. - \"llamastack/simpleqa\""
|
||||
|
@ -6937,10 +6941,17 @@
|
|||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type",
|
||||
"path",
|
||||
"params"
|
||||
],
|
||||
"description": "The fields for a Huggingface dataset."
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type",
|
||||
"huggingface"
|
||||
],
|
||||
"title": "HuggingfaceDataSource",
|
||||
"description": "A dataset stored in Huggingface."
|
||||
},
|
||||
|
|
10
docs/_static/llama-stack-spec.yaml
vendored
10
docs/_static/llama-stack-spec.yaml
vendored
|
@ -4775,6 +4775,10 @@ components:
|
|||
type: string
|
||||
const: huggingface
|
||||
default: huggingface
|
||||
description: The type of the data source.
|
||||
huggingface:
|
||||
type: object
|
||||
properties:
|
||||
path:
|
||||
type: string
|
||||
description: >-
|
||||
|
@ -4792,9 +4796,13 @@ components:
|
|||
description: The parameters for the dataset.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- type
|
||||
- path
|
||||
- params
|
||||
description: The fields for a Huggingface dataset.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- type
|
||||
- huggingface
|
||||
title: HuggingfaceDataSource
|
||||
description: A dataset stored in Huggingface.
|
||||
RowsDataSource:
|
||||
|
|
|
@ -55,18 +55,26 @@ class URIDataSource(BaseModel):
|
|||
uri: str
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class HuggingfaceDataSource(BaseModel):
|
||||
"""A dataset stored in Huggingface.
|
||||
class HuggingfaceDataSourceFields(BaseModel):
|
||||
"""The fields for a Huggingface dataset.
|
||||
:param path: The path to the dataset in Huggingface. E.g.
|
||||
- "llamastack/simpleqa"
|
||||
:param params: The parameters for the dataset.
|
||||
"""
|
||||
type: Literal["huggingface"] = "huggingface"
|
||||
path: str
|
||||
params: Dict[str, Any]
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class HuggingfaceDataSource(BaseModel):
|
||||
"""A dataset stored in Huggingface.
|
||||
:param type: The type of the data source.
|
||||
:param huggingface: The fields for a Huggingface dataset.
|
||||
"""
|
||||
type: Literal["huggingface"] = "huggingface"
|
||||
huggingface: HuggingfaceDataSourceFields
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class RowsDataSource(BaseModel):
|
||||
"""A dataset stored in rows.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue