mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
updating doc strings
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
1e59ef1f76
commit
76679e2f0b
3 changed files with 26 additions and 5 deletions
15
docs/_static/llama-stack-spec.html
vendored
15
docs/_static/llama-stack-spec.html
vendored
|
@ -11294,19 +11294,23 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"query_generator_config": {
|
"query_generator_config": {
|
||||||
"$ref": "#/components/schemas/RAGQueryGeneratorConfig"
|
"$ref": "#/components/schemas/RAGQueryGeneratorConfig",
|
||||||
|
"description": "Configuration for the query generator."
|
||||||
},
|
},
|
||||||
"max_tokens_in_context": {
|
"max_tokens_in_context": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 4096
|
"default": 4096,
|
||||||
|
"description": "Maximum number of tokens in the context."
|
||||||
},
|
},
|
||||||
"max_chunks": {
|
"max_chunks": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 5
|
"default": 5,
|
||||||
|
"description": "Maximum number of chunks to retrieve."
|
||||||
},
|
},
|
||||||
"chunk_template": {
|
"chunk_template": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "Result {index}\nContent: {chunk.content}\nMetadata: {metadata}\n"
|
"default": "Result {index}\nContent: {chunk.content}\nMetadata: {metadata}\n",
|
||||||
|
"description": "Template for formatting each retrieved chunk in the context."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
@ -11316,7 +11320,8 @@
|
||||||
"max_chunks",
|
"max_chunks",
|
||||||
"chunk_template"
|
"chunk_template"
|
||||||
],
|
],
|
||||||
"title": "RAGQueryConfig"
|
"title": "RAGQueryConfig",
|
||||||
|
"description": "Configuration for the RAG query generation."
|
||||||
},
|
},
|
||||||
"RAGQueryGeneratorConfig": {
|
"RAGQueryGeneratorConfig": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
|
|
7
docs/_static/llama-stack-spec.yaml
vendored
7
docs/_static/llama-stack-spec.yaml
vendored
|
@ -7794,12 +7794,15 @@ components:
|
||||||
properties:
|
properties:
|
||||||
query_generator_config:
|
query_generator_config:
|
||||||
$ref: '#/components/schemas/RAGQueryGeneratorConfig'
|
$ref: '#/components/schemas/RAGQueryGeneratorConfig'
|
||||||
|
description: Configuration for the query generator.
|
||||||
max_tokens_in_context:
|
max_tokens_in_context:
|
||||||
type: integer
|
type: integer
|
||||||
default: 4096
|
default: 4096
|
||||||
|
description: Maximum number of tokens in the context.
|
||||||
max_chunks:
|
max_chunks:
|
||||||
type: integer
|
type: integer
|
||||||
default: 5
|
default: 5
|
||||||
|
description: Maximum number of chunks to retrieve.
|
||||||
chunk_template:
|
chunk_template:
|
||||||
type: string
|
type: string
|
||||||
default: >
|
default: >
|
||||||
|
@ -7808,6 +7811,8 @@ components:
|
||||||
Content: {chunk.content}
|
Content: {chunk.content}
|
||||||
|
|
||||||
Metadata: {metadata}
|
Metadata: {metadata}
|
||||||
|
description: >-
|
||||||
|
Template for formatting each retrieved chunk in the context.
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
required:
|
||||||
- query_generator_config
|
- query_generator_config
|
||||||
|
@ -7815,6 +7820,8 @@ components:
|
||||||
- max_chunks
|
- max_chunks
|
||||||
- chunk_template
|
- chunk_template
|
||||||
title: RAGQueryConfig
|
title: RAGQueryConfig
|
||||||
|
description: >-
|
||||||
|
Configuration for the RAG query generation.
|
||||||
RAGQueryGeneratorConfig:
|
RAGQueryGeneratorConfig:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/DefaultRAGQueryGeneratorConfig'
|
- $ref: '#/components/schemas/DefaultRAGQueryGeneratorConfig'
|
||||||
|
|
|
@ -67,6 +67,15 @@ register_schema(RAGQueryGeneratorConfig, name="RAGQueryGeneratorConfig")
|
||||||
|
|
||||||
@json_schema_type
|
@json_schema_type
|
||||||
class RAGQueryConfig(BaseModel):
|
class RAGQueryConfig(BaseModel):
|
||||||
|
"""
|
||||||
|
Configuration for the RAG query generation.
|
||||||
|
|
||||||
|
:param query_generator_config: Configuration for the query generator.
|
||||||
|
:param max_tokens_in_context: Maximum number of tokens in the context.
|
||||||
|
:param max_chunks: Maximum number of chunks to retrieve.
|
||||||
|
:param chunk_template: Template for formatting each retrieved chunk in the context.
|
||||||
|
"""
|
||||||
|
|
||||||
# This config defines how a query is generated using the messages
|
# This config defines how a query is generated using the messages
|
||||||
# for memory bank retrieval.
|
# for memory bank retrieval.
|
||||||
query_generator_config: RAGQueryGeneratorConfig = Field(default=DefaultRAGQueryGeneratorConfig())
|
query_generator_config: RAGQueryGeneratorConfig = Field(default=DefaultRAGQueryGeneratorConfig())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue