mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
use FastAPI Query class instead of custom middlware
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
aefbb6f9ea
commit
726bdc414d
7 changed files with 52 additions and 183 deletions
29
docs/static/llama-stack-spec.yaml
vendored
29
docs/static/llama-stack-spec.yaml
vendored
|
|
@ -2688,10 +2688,14 @@ paths:
|
|||
responses:
|
||||
'200':
|
||||
description: >-
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
A VectorStoreFileContentResponse representing the file contents.
|
||||
=======
|
||||
File contents, optionally with embeddings and metadata based on extra_query
|
||||
=======
|
||||
File contents, optionally with embeddings and metadata based on query
|
||||
>>>>>>> c192529c (use FastAPI Query class instead of custom middlware)
|
||||
parameters.
|
||||
>>>>>>> 639f0daa (feat: Adding optional embeddings to content)
|
||||
content:
|
||||
|
|
@ -2728,23 +2732,20 @@ paths:
|
|||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: extra_query
|
||||
- name: include_embeddings
|
||||
in: query
|
||||
description: >-
|
||||
Optional extra parameters to control response format. Set include_embeddings=true
|
||||
to include embedding vectors. Set include_metadata=true to include chunk
|
||||
metadata.
|
||||
Whether to include embedding vectors in the response.
|
||||
required: false
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties:
|
||||
oneOf:
|
||||
- type: 'null'
|
||||
- type: boolean
|
||||
- type: number
|
||||
- type: string
|
||||
- type: array
|
||||
- type: object
|
||||
$ref: '#/components/schemas/bool'
|
||||
- name: include_metadata
|
||||
in: query
|
||||
description: >-
|
||||
Whether to include chunk metadata in the response.
|
||||
required: false
|
||||
schema:
|
||||
$ref: '#/components/schemas/bool'
|
||||
deprecated: false
|
||||
/v1/vector_stores/{vector_store_id}/search:
|
||||
post:
|
||||
|
|
@ -9397,6 +9398,8 @@ components:
|
|||
title: VectorStoreFileDeleteResponse
|
||||
description: >-
|
||||
Response from deleting a vector store file.
|
||||
bool:
|
||||
type: boolean
|
||||
VectorStoreContent:
|
||||
type: object
|
||||
properties:
|
||||
|
|
|
|||
29
docs/static/stainless-llama-stack-spec.yaml
vendored
29
docs/static/stainless-llama-stack-spec.yaml
vendored
|
|
@ -2691,10 +2691,14 @@ paths:
|
|||
responses:
|
||||
'200':
|
||||
description: >-
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
A VectorStoreFileContentResponse representing the file contents.
|
||||
=======
|
||||
File contents, optionally with embeddings and metadata based on extra_query
|
||||
=======
|
||||
File contents, optionally with embeddings and metadata based on query
|
||||
>>>>>>> c192529c (use FastAPI Query class instead of custom middlware)
|
||||
parameters.
|
||||
>>>>>>> 639f0daa (feat: Adding optional embeddings to content)
|
||||
content:
|
||||
|
|
@ -2731,23 +2735,20 @@ paths:
|
|||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: extra_query
|
||||
- name: include_embeddings
|
||||
in: query
|
||||
description: >-
|
||||
Optional extra parameters to control response format. Set include_embeddings=true
|
||||
to include embedding vectors. Set include_metadata=true to include chunk
|
||||
metadata.
|
||||
Whether to include embedding vectors in the response.
|
||||
required: false
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties:
|
||||
oneOf:
|
||||
- type: 'null'
|
||||
- type: boolean
|
||||
- type: number
|
||||
- type: string
|
||||
- type: array
|
||||
- type: object
|
||||
$ref: '#/components/schemas/bool'
|
||||
- name: include_metadata
|
||||
in: query
|
||||
description: >-
|
||||
Whether to include chunk metadata in the response.
|
||||
required: false
|
||||
schema:
|
||||
$ref: '#/components/schemas/bool'
|
||||
deprecated: false
|
||||
/v1/vector_stores/{vector_store_id}/search:
|
||||
post:
|
||||
|
|
@ -10113,6 +10114,8 @@ components:
|
|||
title: VectorStoreFileDeleteResponse
|
||||
description: >-
|
||||
Response from deleting a vector store file.
|
||||
bool:
|
||||
type: boolean
|
||||
VectorStoreContent:
|
||||
type: object
|
||||
properties:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue