forked from phoenix-oss/llama-stack-mirror
docs
This commit is contained in:
parent
8a6fa41a93
commit
8b80a77fae
3 changed files with 29 additions and 5 deletions
2
docs/_static/llama-stack-spec.html
vendored
2
docs/_static/llama-stack-spec.html
vendored
|
@ -9446,7 +9446,7 @@
|
||||||
"eval/question-answer",
|
"eval/question-answer",
|
||||||
"eval/messages-answer"
|
"eval/messages-answer"
|
||||||
],
|
],
|
||||||
"description": "The purpose of the dataset. One of - \"post-training/messages\": The dataset contains a messages column with list of messages for post-training. - \"eval/question-answer\": The dataset contains a question column and an answer column for evaluation. - \"eval/messages-answer\": The dataset contains a messages column with list of messages and an answer column for evaluation."
|
"description": "The purpose of the dataset. One of - \"post-training/messages\": The dataset contains a messages column with list of messages for post-training. { \"messages\": [ {\"role\": \"user\", \"content\": \"Hello, world!\"}, {\"role\": \"assistant\", \"content\": \"Hello, world!\"}, ] } - \"eval/question-answer\": The dataset contains a question column and an answer column for evaluation. { \"question\": \"What is the capital of France?\", \"answer\": \"Paris\" } - \"eval/messages-answer\": The dataset contains a messages column with list of messages and an answer column for evaluation. { \"messages\": [ {\"role\": \"user\", \"content\": \"Hello, my name is John Doe.\"}, {\"role\": \"assistant\", \"content\": \"Hello, John Doe. How can I help you today?\"}, {\"role\": \"user\", \"content\": \"What's my name?\"}, ], \"answer\": \"John Doe\" }"
|
||||||
},
|
},
|
||||||
"source": {
|
"source": {
|
||||||
"$ref": "#/components/schemas/DataSource",
|
"$ref": "#/components/schemas/DataSource",
|
||||||
|
|
14
docs/_static/llama-stack-spec.yaml
vendored
14
docs/_static/llama-stack-spec.yaml
vendored
|
@ -6399,10 +6399,16 @@ components:
|
||||||
- eval/messages-answer
|
- eval/messages-answer
|
||||||
description: >-
|
description: >-
|
||||||
The purpose of the dataset. One of - "post-training/messages": The dataset
|
The purpose of the dataset. One of - "post-training/messages": The dataset
|
||||||
contains a messages column with list of messages for post-training. -
|
contains a messages column with list of messages for post-training. {
|
||||||
"eval/question-answer": The dataset contains a question column and an
|
"messages": [ {"role": "user", "content": "Hello, world!"}, {"role": "assistant",
|
||||||
answer column for evaluation. - "eval/messages-answer": The dataset contains
|
"content": "Hello, world!"}, ] } - "eval/question-answer": The dataset
|
||||||
a messages column with list of messages and an answer column for evaluation.
|
contains a question column and an answer column for evaluation. { "question":
|
||||||
|
"What is the capital of France?", "answer": "Paris" } - "eval/messages-answer":
|
||||||
|
The dataset contains a messages column with list of messages and an answer
|
||||||
|
column for evaluation. { "messages": [ {"role": "user", "content": "Hello,
|
||||||
|
my name is John Doe."}, {"role": "assistant", "content": "Hello, John
|
||||||
|
Doe. How can I help you today?"}, {"role": "user", "content": "What's
|
||||||
|
my name?"}, ], "answer": "John Doe" }
|
||||||
source:
|
source:
|
||||||
$ref: '#/components/schemas/DataSource'
|
$ref: '#/components/schemas/DataSource'
|
||||||
description: >-
|
description: >-
|
||||||
|
|
|
@ -160,8 +160,26 @@ class Datasets(Protocol):
|
||||||
|
|
||||||
:param purpose: The purpose of the dataset. One of
|
:param purpose: The purpose of the dataset. One of
|
||||||
- "post-training/messages": The dataset contains a messages column with list of messages for post-training.
|
- "post-training/messages": The dataset contains a messages column with list of messages for post-training.
|
||||||
|
{
|
||||||
|
"messages": [
|
||||||
|
{"role": "user", "content": "Hello, world!"},
|
||||||
|
{"role": "assistant", "content": "Hello, world!"},
|
||||||
|
]
|
||||||
|
}
|
||||||
- "eval/question-answer": The dataset contains a question column and an answer column for evaluation.
|
- "eval/question-answer": The dataset contains a question column and an answer column for evaluation.
|
||||||
|
{
|
||||||
|
"question": "What is the capital of France?",
|
||||||
|
"answer": "Paris"
|
||||||
|
}
|
||||||
- "eval/messages-answer": The dataset contains a messages column with list of messages and an answer column for evaluation.
|
- "eval/messages-answer": The dataset contains a messages column with list of messages and an answer column for evaluation.
|
||||||
|
{
|
||||||
|
"messages": [
|
||||||
|
{"role": "user", "content": "Hello, my name is John Doe."},
|
||||||
|
{"role": "assistant", "content": "Hello, John Doe. How can I help you today?"},
|
||||||
|
{"role": "user", "content": "What's my name?"},
|
||||||
|
],
|
||||||
|
"answer": "John Doe"
|
||||||
|
}
|
||||||
:param source: The data source of the dataset. Examples:
|
:param source: The data source of the dataset. Examples:
|
||||||
- {
|
- {
|
||||||
"type": "uri",
|
"type": "uri",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue