use FastAPI Query class instead of custom middlware

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-11-07 15:09:11 -05:00
parent aefbb6f9ea
commit 726bdc414d
7 changed files with 52 additions and 183 deletions

View file

@ -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: