doc update

This commit is contained in:
Xi Yan 2025-03-17 14:26:09 -07:00
parent cc48d9e9e6
commit 54a4f415b9
3 changed files with 10 additions and 8 deletions

View file

@ -9429,7 +9429,7 @@
}, },
"source": { "source": {
"$ref": "#/components/schemas/DataSource", "$ref": "#/components/schemas/DataSource",
"description": "The data source of the dataset. Examples: - { \"type\": \"uri\", \"uri\": \"https://mywebsite.com/mydata.jsonl\" } - { \"type\": \"uri\", \"uri\": \"lsfs://mydata.jsonl\" } - { \"type\": \"uri\", \"uri\": \"data:csv;base64,{base64_content}\" } - { \"type\": \"uri\", \"uri\": \"huggingface://llamastack/simpleqa?split=train\" } - { \"type\": \"rows\", \"rows\": [ { \"messages\": [ {\"role\": \"user\", \"content\": \"Hello, world!\"}, {\"role\": \"assistant\", \"content\": \"Hello, world!\"}, ] } ] }" "description": "The data source of the dataset. Ensure that the data source schema is compatible with the purpose of the dataset. Examples: - { \"type\": \"uri\", \"uri\": \"https://mywebsite.com/mydata.jsonl\" } - { \"type\": \"uri\", \"uri\": \"lsfs://mydata.jsonl\" } - { \"type\": \"uri\", \"uri\": \"data:csv;base64,{base64_content}\" } - { \"type\": \"uri\", \"uri\": \"huggingface://llamastack/simpleqa?split=train\" } - { \"type\": \"rows\", \"rows\": [ { \"messages\": [ {\"role\": \"user\", \"content\": \"Hello, world!\"}, {\"role\": \"assistant\", \"content\": \"Hello, world!\"}, ] } ] }"
}, },
"metadata": { "metadata": {
"type": "object", "type": "object",

View file

@ -6395,12 +6395,14 @@ components:
source: source:
$ref: '#/components/schemas/DataSource' $ref: '#/components/schemas/DataSource'
description: >- description: >-
The data source of the dataset. Examples: - { "type": "uri", "uri": "https://mywebsite.com/mydata.jsonl" The data source of the dataset. Ensure that the data source schema is
} - { "type": "uri", "uri": "lsfs://mydata.jsonl" } - { "type": "uri", compatible with the purpose of the dataset. Examples: - { "type": "uri",
"uri": "data:csv;base64,{base64_content}" } - { "type": "uri", "uri": "uri": "https://mywebsite.com/mydata.jsonl" } - { "type": "uri", "uri":
"huggingface://llamastack/simpleqa?split=train" } - { "type": "rows", "lsfs://mydata.jsonl" } - { "type": "uri", "uri": "data:csv;base64,{base64_content}"
"rows": [ { "messages": [ {"role": "user", "content": "Hello, world!"}, } - { "type": "uri", "uri": "huggingface://llamastack/simpleqa?split=train"
{"role": "assistant", "content": "Hello, world!"}, ] } ] } } - { "type": "rows", "rows": [ { "messages": [ {"role": "user", "content":
"Hello, world!"}, {"role": "assistant", "content": "Hello, world!"}, ]
} ] }
metadata: metadata:
type: object type: object
additionalProperties: additionalProperties:

View file

@ -163,7 +163,7 @@ class Datasets(Protocol):
], ],
"answer": "John Doe" "answer": "John Doe"
} }
:param source: The data source of the dataset. Examples: :param source: The data source of the dataset. Ensure that the data source schema is compatible with the purpose of the dataset. Examples:
- { - {
"type": "uri", "type": "uri",
"uri": "https://mywebsite.com/mydata.jsonl" "uri": "https://mywebsite.com/mydata.jsonl"