mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-30 07:39:38 +00:00
a
This commit is contained in:
parent
441259f2e3
commit
b1b93088c5
5 changed files with 56 additions and 17 deletions
|
@ -227,8 +227,8 @@ Before finalizing documentation, verify:
|
||||||
[x] 6. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/tools/rag_tool.py` - RAG tool runtime
|
[x] 6. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/tools/rag_tool.py` - RAG tool runtime
|
||||||
[x] 7. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/vector_io/vector_io.py` - Vector database operations
|
[x] 7. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/vector_io/vector_io.py` - Vector database operations
|
||||||
[x] 8. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/vector_dbs/vector_dbs.py` - Vector database management
|
[x] 8. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/vector_dbs/vector_dbs.py` - Vector database management
|
||||||
9. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/files/files.py` - File management
|
[x] 9. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/files/files.py` - File management
|
||||||
10. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/datasets/datasets.py` - Dataset management
|
[x] 10. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/datasets/datasets.py` - Dataset management
|
||||||
11. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/datasetio/datasetio.py` - Dataset I/O operations
|
11. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/datasetio/datasetio.py` - Dataset I/O operations
|
||||||
12. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/post_training/post_training.py` - Training and fine-tuning
|
12. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/post_training/post_training.py` - Training and fine-tuning
|
||||||
13. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/eval/eval.py` - Evaluation framework
|
13. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/eval/eval.py` - Evaluation framework
|
||||||
|
|
31
docs/_static/llama-stack-spec.html
vendored
31
docs/_static/llama-stack-spec.html
vendored
|
@ -10366,9 +10366,9 @@
|
||||||
"tool",
|
"tool",
|
||||||
"tool_group"
|
"tool_group"
|
||||||
],
|
],
|
||||||
"title": "ResourceType",
|
|
||||||
"const": "dataset",
|
"const": "dataset",
|
||||||
"default": "dataset"
|
"default": "dataset",
|
||||||
|
"description": "Type of resource, always 'dataset' for datasets"
|
||||||
},
|
},
|
||||||
"purpose": {
|
"purpose": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -10377,11 +10377,11 @@
|
||||||
"eval/question-answer",
|
"eval/question-answer",
|
||||||
"eval/messages-answer"
|
"eval/messages-answer"
|
||||||
],
|
],
|
||||||
"title": "DatasetPurpose",
|
"description": "Purpose of the dataset indicating its intended use"
|
||||||
"description": "Purpose of the dataset. Each purpose has a required input data schema."
|
|
||||||
},
|
},
|
||||||
"source": {
|
"source": {
|
||||||
"$ref": "#/components/schemas/DataSource"
|
"$ref": "#/components/schemas/DataSource",
|
||||||
|
"description": "Data source configuration for the dataset"
|
||||||
},
|
},
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -10406,7 +10406,8 @@
|
||||||
"type": "object"
|
"type": "object"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"description": "Additional metadata for the dataset"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
@ -10418,7 +10419,8 @@
|
||||||
"source",
|
"source",
|
||||||
"metadata"
|
"metadata"
|
||||||
],
|
],
|
||||||
"title": "Dataset"
|
"title": "Dataset",
|
||||||
|
"description": "Dataset resource for storing and accessing training or evaluation data."
|
||||||
},
|
},
|
||||||
"RowsDataSource": {
|
"RowsDataSource": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -12007,14 +12009,16 @@
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/Dataset"
|
"$ref": "#/components/schemas/Dataset"
|
||||||
}
|
},
|
||||||
|
"description": "List of datasets"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"data"
|
"data"
|
||||||
],
|
],
|
||||||
"title": "ListDatasetsResponse"
|
"title": "ListDatasetsResponse",
|
||||||
|
"description": "Response from listing datasets."
|
||||||
},
|
},
|
||||||
"ListModelsResponse": {
|
"ListModelsResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -14091,13 +14095,16 @@
|
||||||
"description": "List of file objects"
|
"description": "List of file objects"
|
||||||
},
|
},
|
||||||
"has_more": {
|
"has_more": {
|
||||||
"type": "boolean"
|
"type": "boolean",
|
||||||
|
"description": "Whether there are more files available beyond this page"
|
||||||
},
|
},
|
||||||
"first_id": {
|
"first_id": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"description": "ID of the first file in the list for pagination"
|
||||||
},
|
},
|
||||||
"last_id": {
|
"last_id": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"description": "ID of the last file in the list for pagination"
|
||||||
},
|
},
|
||||||
"object": {
|
"object": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
19
docs/_static/llama-stack-spec.yaml
vendored
19
docs/_static/llama-stack-spec.yaml
vendored
|
@ -7459,20 +7459,22 @@ components:
|
||||||
- benchmark
|
- benchmark
|
||||||
- tool
|
- tool
|
||||||
- tool_group
|
- tool_group
|
||||||
title: ResourceType
|
|
||||||
const: dataset
|
const: dataset
|
||||||
default: dataset
|
default: dataset
|
||||||
|
description: >-
|
||||||
|
Type of resource, always 'dataset' for datasets
|
||||||
purpose:
|
purpose:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
- post-training/messages
|
- post-training/messages
|
||||||
- eval/question-answer
|
- eval/question-answer
|
||||||
- eval/messages-answer
|
- eval/messages-answer
|
||||||
title: DatasetPurpose
|
|
||||||
description: >-
|
description: >-
|
||||||
Purpose of the dataset. Each purpose has a required input data schema.
|
Purpose of the dataset indicating its intended use
|
||||||
source:
|
source:
|
||||||
$ref: '#/components/schemas/DataSource'
|
$ref: '#/components/schemas/DataSource'
|
||||||
|
description: >-
|
||||||
|
Data source configuration for the dataset
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
@ -7483,6 +7485,7 @@ components:
|
||||||
- type: string
|
- type: string
|
||||||
- type: array
|
- type: array
|
||||||
- type: object
|
- type: object
|
||||||
|
description: Additional metadata for the dataset
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
required:
|
||||||
- identifier
|
- identifier
|
||||||
|
@ -7492,6 +7495,8 @@ components:
|
||||||
- source
|
- source
|
||||||
- metadata
|
- metadata
|
||||||
title: Dataset
|
title: Dataset
|
||||||
|
description: >-
|
||||||
|
Dataset resource for storing and accessing training or evaluation data.
|
||||||
RowsDataSource:
|
RowsDataSource:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -8606,10 +8611,12 @@ components:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/Dataset'
|
$ref: '#/components/schemas/Dataset'
|
||||||
|
description: List of datasets
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
title: ListDatasetsResponse
|
title: ListDatasetsResponse
|
||||||
|
description: Response from listing datasets.
|
||||||
ListModelsResponse:
|
ListModelsResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -10081,10 +10088,16 @@ components:
|
||||||
description: List of file objects
|
description: List of file objects
|
||||||
has_more:
|
has_more:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
description: >-
|
||||||
|
Whether there are more files available beyond this page
|
||||||
first_id:
|
first_id:
|
||||||
type: string
|
type: string
|
||||||
|
description: >-
|
||||||
|
ID of the first file in the list for pagination
|
||||||
last_id:
|
last_id:
|
||||||
type: string
|
type: string
|
||||||
|
description: >-
|
||||||
|
ID of the last file in the list for pagination
|
||||||
object:
|
object:
|
||||||
type: string
|
type: string
|
||||||
const: list
|
const: list
|
||||||
|
|
|
@ -94,6 +94,10 @@ register_schema(DataSource, name="DataSource")
|
||||||
class CommonDatasetFields(BaseModel):
|
class CommonDatasetFields(BaseModel):
|
||||||
"""
|
"""
|
||||||
Common fields for a dataset.
|
Common fields for a dataset.
|
||||||
|
|
||||||
|
:param purpose: Purpose of the dataset indicating its intended use
|
||||||
|
:param source: Data source configuration for the dataset
|
||||||
|
:param metadata: Additional metadata for the dataset
|
||||||
"""
|
"""
|
||||||
|
|
||||||
purpose: DatasetPurpose
|
purpose: DatasetPurpose
|
||||||
|
@ -106,6 +110,10 @@ class CommonDatasetFields(BaseModel):
|
||||||
|
|
||||||
@json_schema_type
|
@json_schema_type
|
||||||
class Dataset(CommonDatasetFields, Resource):
|
class Dataset(CommonDatasetFields, Resource):
|
||||||
|
"""Dataset resource for storing and accessing training or evaluation data.
|
||||||
|
|
||||||
|
:param type: Type of resource, always 'dataset' for datasets
|
||||||
|
"""
|
||||||
type: Literal[ResourceType.dataset] = ResourceType.dataset
|
type: Literal[ResourceType.dataset] = ResourceType.dataset
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -118,10 +126,18 @@ class Dataset(CommonDatasetFields, Resource):
|
||||||
|
|
||||||
|
|
||||||
class DatasetInput(CommonDatasetFields, BaseModel):
|
class DatasetInput(CommonDatasetFields, BaseModel):
|
||||||
|
"""Input parameters for dataset operations.
|
||||||
|
|
||||||
|
:param dataset_id: Unique identifier for the dataset
|
||||||
|
"""
|
||||||
dataset_id: str
|
dataset_id: str
|
||||||
|
|
||||||
|
|
||||||
class ListDatasetsResponse(BaseModel):
|
class ListDatasetsResponse(BaseModel):
|
||||||
|
"""Response from listing datasets.
|
||||||
|
|
||||||
|
:param data: List of datasets
|
||||||
|
"""
|
||||||
data: list[Dataset]
|
data: list[Dataset]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,9 @@ class ListOpenAIFileResponse(BaseModel):
|
||||||
Response for listing files in OpenAI Files API.
|
Response for listing files in OpenAI Files API.
|
||||||
|
|
||||||
:param data: List of file objects
|
:param data: List of file objects
|
||||||
|
:param has_more: Whether there are more files available beyond this page
|
||||||
|
:param first_id: ID of the first file in the list for pagination
|
||||||
|
:param last_id: ID of the last file in the list for pagination
|
||||||
:param object: The object type, which is always "list"
|
:param object: The object type, which is always "list"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue