feat: Adding optional embeddings to content

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-11-03 14:48:52 -05:00
parent 97ccfb5e62
commit aefbb6f9ea
20 changed files with 1314 additions and 132 deletions

View file

@ -2691,7 +2691,12 @@ paths:
responses:
'200':
description: >-
<<<<<<< HEAD
A VectorStoreFileContentResponse representing the file contents.
=======
File contents, optionally with embeddings and metadata based on extra_query
parameters.
>>>>>>> 639f0daa (feat: Adding optional embeddings to content)
content:
application/json:
schema:
@ -2726,6 +2731,23 @@ paths:
required: true
schema:
type: string
- name: extra_query
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.
required: false
schema:
type: object
additionalProperties:
oneOf:
- type: 'null'
- type: boolean
- type: number
- type: string
- type: array
- type: object
deprecated: false
/v1/vector_stores/{vector_store_id}/search:
post:
@ -10102,6 +10124,28 @@ components:
text:
type: string
description: The actual text content
embedding:
type: array
items:
type: number
description: >-
Optional embedding vector for this content chunk (when requested via extra_body)
chunk_metadata:
$ref: '#/components/schemas/ChunkMetadata'
description: >-
Optional chunk metadata (when requested via extra_body)
metadata:
type: object
additionalProperties:
oneOf:
- type: 'null'
- type: boolean
- type: number
- type: string
- type: array
- type: object
description: >-
Optional user-defined metadata (when requested via extra_body)
additionalProperties: false
required:
- type