mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-26 23:02:00 +00:00
feat(vector-io): add delete_chunk stub methods for unsupported providers
Add NotImplementedError placeholders for delete_chunk and delete_chunk methods in Chroma, Qdrant, and Weaviate providers that don't yet support the File API
This commit is contained in:
parent
6b4d926352
commit
77be2ee535
3 changed files with 18 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ class WeaviateIndex(EmbeddingIndex):
|
|||
# TODO: make this async friendly
|
||||
collection.data.insert_many(data_objects)
|
||||
|
||||
async def delete_chunk(self, chunk_id: str) -> None:
|
||||
raise NotImplementedError("delete_chunk is not supported in Chroma")
|
||||
|
||||
async def query_vector(self, embedding: NDArray, k: int, score_threshold: float) -> QueryChunksResponse:
|
||||
collection = self.client.collections.get(self.collection_name)
|
||||
|
||||
|
|
@ -264,3 +267,6 @@ class WeaviateVectorIOAdapter(
|
|||
|
||||
async def _delete_openai_vector_store_file_from_storage(self, store_id: str, file_id: str) -> None:
|
||||
raise NotImplementedError("OpenAI Vector Stores API is not supported in Weaviate")
|
||||
|
||||
async def delete_chunk(self, store_id: str, chunk_id: str) -> None:
|
||||
raise NotImplementedError("OpenAI Vector Stores API is not supported in Weaviate")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue