feat(vector-io): add delete_chunk stub methods for unsupported providers

Add NotImplementedError placeholders for delete_chunk and
_delete_openai_chunk_from_vector_store methods in Chroma, Qdrant,
and Weaviate providers that don't yet support the File API
This commit is contained in:
Derek Higgins 2025-07-21 11:16:40 +01:00
parent 6238833185
commit 239c2a9eef
3 changed files with 18 additions and 0 deletions

View file

@ -82,6 +82,9 @@ class QdrantIndex(EmbeddingIndex):
await self.client.upsert(collection_name=self.collection_name, points=points)
async def delete_chunk(self, chunk_id: str) -> None:
raise NotImplementedError("delete_chunk is not supported in qdrant")
async def query_vector(self, embedding: NDArray, k: int, score_threshold: float) -> QueryChunksResponse:
results = (
await self.client.query_points(
@ -307,3 +310,6 @@ class QdrantVectorIOAdapter(VectorIO, VectorDBsProtocolPrivate):
file_id: str,
) -> VectorStoreFileObject:
raise NotImplementedError("OpenAI Vector Stores API is not supported in Qdrant")
async def _delete_openai_chunk_from_vector_store(self, store_id: str, chunk_id: str) -> None:
raise NotImplementedError("OpenAI Vector Stores API is not supported in Qdrant")