mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
missed html/yaml
This commit is contained in:
parent
f63fff92ae
commit
22d6093258
2 changed files with 97 additions and 88 deletions
|
@ -1965,7 +1965,7 @@
|
||||||
"prompts": {
|
"prompts": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"$ref": "#/components/schemas/Message"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"filtering_function": {
|
"filtering_function": {
|
||||||
|
@ -1980,6 +1980,9 @@
|
||||||
],
|
],
|
||||||
"title": "The type of filtering function.",
|
"title": "The type of filtering function.",
|
||||||
"default": "none"
|
"default": "none"
|
||||||
|
},
|
||||||
|
"reward_scoring": {
|
||||||
|
"type": "object"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
@ -1989,39 +1992,80 @@
|
||||||
],
|
],
|
||||||
"title": "Request to generate synthetic data. A small batch of prompts and a filtering function"
|
"title": "Request to generate synthetic data. A small batch of prompts and a filtering function"
|
||||||
},
|
},
|
||||||
|
"KScoredPromptGenerations": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"prompt": {
|
||||||
|
"$ref": "#/components/schemas/Message"
|
||||||
|
},
|
||||||
|
"k_scored_generations": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/MessageScore"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"prompt",
|
||||||
|
"k_scored_generations"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"MessageScore": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"message": {
|
||||||
|
"$ref": "#/components/schemas/Message"
|
||||||
|
},
|
||||||
|
"score": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"message",
|
||||||
|
"score"
|
||||||
|
],
|
||||||
|
"title": "A single message and its score."
|
||||||
|
},
|
||||||
"SyntheticDataGenerationResponse": {
|
"SyntheticDataGenerationResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"synthetic_data": {
|
"synthetic_data": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "array",
|
"$ref": "#/components/schemas/KScoredPromptGenerations"
|
||||||
"minItems": 3,
|
|
||||||
"maxItems": 3,
|
|
||||||
"prefixItems": [
|
|
||||||
{
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "number"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"statistics": {
|
"statistics": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "number"
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"synthetic_data",
|
"synthetic_data"
|
||||||
"statistics"
|
|
||||||
],
|
],
|
||||||
"title": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold."
|
"title": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold."
|
||||||
},
|
},
|
||||||
|
@ -2071,42 +2115,6 @@
|
||||||
],
|
],
|
||||||
"title": "Request to score a reward function. A list of prompts and a list of responses per prompt."
|
"title": "Request to score a reward function. A list of prompts and a list of responses per prompt."
|
||||||
},
|
},
|
||||||
"KScoredPromptGenerations": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"prompt": {
|
|
||||||
"$ref": "#/components/schemas/Message"
|
|
||||||
},
|
|
||||||
"k_scored_generations": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/components/schemas/MessageScore"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"prompt",
|
|
||||||
"k_scored_generations"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"MessageScore": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"message": {
|
|
||||||
"$ref": "#/components/schemas/Message"
|
|
||||||
},
|
|
||||||
"score": {
|
|
||||||
"type": "number"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"message",
|
|
||||||
"score"
|
|
||||||
],
|
|
||||||
"title": "A single message and its score."
|
|
||||||
},
|
|
||||||
"RewardScoringResponse": {
|
"RewardScoringResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -2398,7 +2406,10 @@
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "Finetuning"
|
"name": "RewardScoring"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Inference"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Datasets"
|
"name": "Datasets"
|
||||||
|
@ -2407,14 +2418,11 @@
|
||||||
"name": "SyntheticDataGeneration"
|
"name": "SyntheticDataGeneration"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "RewardScoring"
|
"name": "Finetuning"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "AgenticSystem"
|
"name": "AgenticSystem"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "Inference"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "ShieldConfig",
|
"name": "ShieldConfig",
|
||||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldConfig\" />"
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldConfig\" />"
|
||||||
|
@ -2503,14 +2511,6 @@
|
||||||
"name": "SyntheticDataGenerationRequest",
|
"name": "SyntheticDataGenerationRequest",
|
||||||
"description": "Request to generate synthetic data. A small batch of prompts and a filtering function\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationRequest\" />"
|
"description": "Request to generate synthetic data. A small batch of prompts and a filtering function\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationRequest\" />"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "SyntheticDataGenerationResponse",
|
|
||||||
"description": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationResponse\" />"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "RewardScoringRequest",
|
|
||||||
"description": "Request to score a reward function. A list of prompts and a list of responses per prompt.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringRequest\" />"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "KScoredPromptGenerations",
|
"name": "KScoredPromptGenerations",
|
||||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/KScoredPromptGenerations\" />"
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/KScoredPromptGenerations\" />"
|
||||||
|
@ -2519,6 +2519,14 @@
|
||||||
"name": "MessageScore",
|
"name": "MessageScore",
|
||||||
"description": "A single message and its score.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/MessageScore\" />"
|
"description": "A single message and its score.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/MessageScore\" />"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "SyntheticDataGenerationResponse",
|
||||||
|
"description": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationResponse\" />"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "RewardScoringRequest",
|
||||||
|
"description": "Request to score a reward function. A list of prompts and a list of responses per prompt.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringRequest\" />"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "RewardScoringResponse",
|
"name": "RewardScoringResponse",
|
||||||
"description": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringResponse\" />"
|
"description": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringResponse\" />"
|
||||||
|
|
|
@ -1157,8 +1157,10 @@ components:
|
||||||
type: string
|
type: string
|
||||||
prompts:
|
prompts:
|
||||||
items:
|
items:
|
||||||
type: string
|
$ref: '#/components/schemas/Message'
|
||||||
type: array
|
type: array
|
||||||
|
reward_scoring:
|
||||||
|
type: object
|
||||||
required:
|
required:
|
||||||
- prompts
|
- prompts
|
||||||
- filtering_function
|
- filtering_function
|
||||||
|
@ -1170,21 +1172,20 @@ components:
|
||||||
properties:
|
properties:
|
||||||
statistics:
|
statistics:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: number
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
type: object
|
type: object
|
||||||
synthetic_data:
|
synthetic_data:
|
||||||
items:
|
items:
|
||||||
maxItems: 3
|
$ref: '#/components/schemas/KScoredPromptGenerations'
|
||||||
minItems: 3
|
|
||||||
prefixItems:
|
|
||||||
- type: string
|
|
||||||
- type: string
|
|
||||||
- type: number
|
|
||||||
type: array
|
|
||||||
type: array
|
type: array
|
||||||
required:
|
required:
|
||||||
- synthetic_data
|
- synthetic_data
|
||||||
- statistics
|
|
||||||
title: Response from the synthetic data generation. Batch of (prompt, response,
|
title: Response from the synthetic data generation. Batch of (prompt, response,
|
||||||
score) tuples that pass the threshold.
|
score) tuples that pass the threshold.
|
||||||
type: object
|
type: object
|
||||||
|
@ -1468,12 +1469,12 @@ security:
|
||||||
servers:
|
servers:
|
||||||
- url: http://llama.meta.com
|
- url: http://llama.meta.com
|
||||||
tags:
|
tags:
|
||||||
- name: Finetuning
|
- name: RewardScoring
|
||||||
|
- name: Inference
|
||||||
- name: Datasets
|
- name: Datasets
|
||||||
- name: SyntheticDataGeneration
|
- name: SyntheticDataGeneration
|
||||||
- name: RewardScoring
|
- name: Finetuning
|
||||||
- name: AgenticSystem
|
- name: AgenticSystem
|
||||||
- name: Inference
|
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/ShieldConfig" />
|
- description: <SchemaDefinition schemaRef="#/components/schemas/ShieldConfig" />
|
||||||
name: ShieldConfig
|
name: ShieldConfig
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemCreateRequest"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemCreateRequest"
|
||||||
|
@ -1575,6 +1576,14 @@ tags:
|
||||||
<SchemaDefinition schemaRef="#/components/schemas/SyntheticDataGenerationRequest"
|
<SchemaDefinition schemaRef="#/components/schemas/SyntheticDataGenerationRequest"
|
||||||
/>'
|
/>'
|
||||||
name: SyntheticDataGenerationRequest
|
name: SyntheticDataGenerationRequest
|
||||||
|
- description: <SchemaDefinition schemaRef="#/components/schemas/KScoredPromptGenerations"
|
||||||
|
/>
|
||||||
|
name: KScoredPromptGenerations
|
||||||
|
- description: 'A single message and its score.
|
||||||
|
|
||||||
|
|
||||||
|
<SchemaDefinition schemaRef="#/components/schemas/MessageScore" />'
|
||||||
|
name: MessageScore
|
||||||
- description: 'Response from the synthetic data generation. Batch of (prompt, response,
|
- description: 'Response from the synthetic data generation. Batch of (prompt, response,
|
||||||
score) tuples that pass the threshold.
|
score) tuples that pass the threshold.
|
||||||
|
|
||||||
|
@ -1588,14 +1597,6 @@ tags:
|
||||||
|
|
||||||
<SchemaDefinition schemaRef="#/components/schemas/RewardScoringRequest" />'
|
<SchemaDefinition schemaRef="#/components/schemas/RewardScoringRequest" />'
|
||||||
name: RewardScoringRequest
|
name: RewardScoringRequest
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/KScoredPromptGenerations"
|
|
||||||
/>
|
|
||||||
name: KScoredPromptGenerations
|
|
||||||
- description: 'A single message and its score.
|
|
||||||
|
|
||||||
|
|
||||||
<SchemaDefinition schemaRef="#/components/schemas/MessageScore" />'
|
|
||||||
name: MessageScore
|
|
||||||
- description: 'Response from the reward scoring. Batch of (prompt, response, score)
|
- description: 'Response from the reward scoring. Batch of (prompt, response, score)
|
||||||
tuples that pass the threshold.
|
tuples that pass the threshold.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue