mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
feat: Adding optional embeddings to content
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
97ccfb5e62
commit
aefbb6f9ea
20 changed files with 1314 additions and 132 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue