mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-26 18:52:00 +00:00
fix sqlite vec, weaviate, milvus
This commit is contained in:
parent
88cfab2768
commit
35b9da04e5
3 changed files with 11 additions and 8 deletions
|
|
@ -293,7 +293,7 @@ class MilvusIndex(EmbeddingIndex):
|
|||
chunk_ids_str = ",".join(f"'{c.chunk_id}'" for c in chunks_for_deletion)
|
||||
try:
|
||||
await asyncio.to_thread(
|
||||
self.client.delete, collection_name=self.collection_name, filter=f"chunk_id IN [{chunk_ids_str}]"
|
||||
self.client.delete, collection_name=self.collection_name, filter=f"chunk_id in ({chunk_ids_str})"
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error(f"Error deleting chunks from Milvus collection {self.collection_name}: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue