mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-12 21:58:38 +00:00
chore!: BREAKING CHANGE removing VectorDB APIs (#3774)
# What does this PR do? Removes VectorDBs from API surface and our tests. Moves tests to Vector Stores. <!-- If resolving an issue, uncomment and update the line below --> <!-- Closes #[issue-number] --> ## Test Plan <!-- Describe the tests you ran to verify your changes with result summaries. *Provide clear instructions so the plan can be easily re-executed.* --> --------- Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> Co-authored-by: Ashwin Bharambe <ashwin.bharambe@gmail.com>
This commit is contained in:
parent
06e4cd8e02
commit
a165b8b5bb
111 changed files with 60412 additions and 2765 deletions
202
docs/static/stainless-llama-stack-spec.yaml
vendored
202
docs/static/stainless-llama-stack-spec.yaml
vendored
|
@ -2278,120 +2278,6 @@ paths:
|
|||
schema:
|
||||
type: string
|
||||
deprecated: false
|
||||
/v1/vector-dbs:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
description: A ListVectorDBsResponse.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ListVectorDBsResponse'
|
||||
'400':
|
||||
$ref: '#/components/responses/BadRequest400'
|
||||
'429':
|
||||
$ref: >-
|
||||
#/components/responses/TooManyRequests429
|
||||
'500':
|
||||
$ref: >-
|
||||
#/components/responses/InternalServerError500
|
||||
default:
|
||||
$ref: '#/components/responses/DefaultError'
|
||||
tags:
|
||||
- VectorDBs
|
||||
summary: List all vector databases.
|
||||
description: List all vector databases.
|
||||
parameters: []
|
||||
deprecated: false
|
||||
post:
|
||||
responses:
|
||||
'200':
|
||||
description: A VectorDB.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/VectorDB'
|
||||
'400':
|
||||
$ref: '#/components/responses/BadRequest400'
|
||||
'429':
|
||||
$ref: >-
|
||||
#/components/responses/TooManyRequests429
|
||||
'500':
|
||||
$ref: >-
|
||||
#/components/responses/InternalServerError500
|
||||
default:
|
||||
$ref: '#/components/responses/DefaultError'
|
||||
tags:
|
||||
- VectorDBs
|
||||
summary: Register a vector database.
|
||||
description: Register a vector database.
|
||||
parameters: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/RegisterVectorDbRequest'
|
||||
required: true
|
||||
deprecated: false
|
||||
/v1/vector-dbs/{vector_db_id}:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
description: A VectorDB.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/VectorDB'
|
||||
'400':
|
||||
$ref: '#/components/responses/BadRequest400'
|
||||
'429':
|
||||
$ref: >-
|
||||
#/components/responses/TooManyRequests429
|
||||
'500':
|
||||
$ref: >-
|
||||
#/components/responses/InternalServerError500
|
||||
default:
|
||||
$ref: '#/components/responses/DefaultError'
|
||||
tags:
|
||||
- VectorDBs
|
||||
summary: Get a vector database by its identifier.
|
||||
description: Get a vector database by its identifier.
|
||||
parameters:
|
||||
- name: vector_db_id
|
||||
in: path
|
||||
description: >-
|
||||
The identifier of the vector database to get.
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
deprecated: false
|
||||
delete:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
'400':
|
||||
$ref: '#/components/responses/BadRequest400'
|
||||
'429':
|
||||
$ref: >-
|
||||
#/components/responses/TooManyRequests429
|
||||
'500':
|
||||
$ref: >-
|
||||
#/components/responses/InternalServerError500
|
||||
default:
|
||||
$ref: '#/components/responses/DefaultError'
|
||||
tags:
|
||||
- VectorDBs
|
||||
summary: Unregister a vector database.
|
||||
description: Unregister a vector database.
|
||||
parameters:
|
||||
- name: vector_db_id
|
||||
in: path
|
||||
description: >-
|
||||
The identifier of the vector database to unregister.
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
deprecated: false
|
||||
/v1/vector-io/insert:
|
||||
post:
|
||||
responses:
|
||||
|
@ -10353,91 +10239,6 @@ components:
|
|||
- toolgroup_id
|
||||
- provider_id
|
||||
title: RegisterToolGroupRequest
|
||||
VectorDB:
|
||||
type: object
|
||||
properties:
|
||||
identifier:
|
||||
type: string
|
||||
provider_resource_id:
|
||||
type: string
|
||||
provider_id:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- model
|
||||
- shield
|
||||
- vector_db
|
||||
- dataset
|
||||
- scoring_function
|
||||
- benchmark
|
||||
- tool
|
||||
- tool_group
|
||||
- prompt
|
||||
const: vector_db
|
||||
default: vector_db
|
||||
description: >-
|
||||
Type of resource, always 'vector_db' for vector databases
|
||||
embedding_model:
|
||||
type: string
|
||||
description: >-
|
||||
Name of the embedding model to use for vector generation
|
||||
embedding_dimension:
|
||||
type: integer
|
||||
description: Dimension of the embedding vectors
|
||||
vector_db_name:
|
||||
type: string
|
||||
additionalProperties: false
|
||||
required:
|
||||
- identifier
|
||||
- provider_id
|
||||
- type
|
||||
- embedding_model
|
||||
- embedding_dimension
|
||||
title: VectorDB
|
||||
description: >-
|
||||
Vector database resource for storing and querying vector embeddings.
|
||||
ListVectorDBsResponse:
|
||||
type: object
|
||||
properties:
|
||||
data:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/VectorDB'
|
||||
description: List of vector databases
|
||||
additionalProperties: false
|
||||
required:
|
||||
- data
|
||||
title: ListVectorDBsResponse
|
||||
description: Response from listing vector databases.
|
||||
RegisterVectorDbRequest:
|
||||
type: object
|
||||
properties:
|
||||
vector_db_id:
|
||||
type: string
|
||||
description: >-
|
||||
The identifier of the vector database to register.
|
||||
embedding_model:
|
||||
type: string
|
||||
description: The embedding model to use.
|
||||
embedding_dimension:
|
||||
type: integer
|
||||
description: The dimension of the embedding model.
|
||||
provider_id:
|
||||
type: string
|
||||
description: The identifier of the provider.
|
||||
vector_db_name:
|
||||
type: string
|
||||
description: The name of the vector database.
|
||||
provider_vector_db_id:
|
||||
type: string
|
||||
description: >-
|
||||
The identifier of the vector database in the provider.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- vector_db_id
|
||||
- embedding_model
|
||||
title: RegisterVectorDbRequest
|
||||
Chunk:
|
||||
type: object
|
||||
properties:
|
||||
|
@ -14210,8 +14011,6 @@ tags:
|
|||
description: ''
|
||||
- name: ToolRuntime
|
||||
description: ''
|
||||
- name: VectorDBs
|
||||
description: ''
|
||||
- name: VectorIO
|
||||
description: ''
|
||||
x-tagGroups:
|
||||
|
@ -14238,5 +14037,4 @@ x-tagGroups:
|
|||
- Telemetry
|
||||
- ToolGroups
|
||||
- ToolRuntime
|
||||
- VectorDBs
|
||||
- VectorIO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue