community: fix: should flush after inserting data on milvus (#15568)

The inserted data cannot take effect immediately. We should flush after
inserting data on milvus.
pull/15658/head
Earlee 9 months ago committed by GitHub
parent a17a3638b5
commit 98c6c9603e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -528,6 +528,7 @@ class Milvus(VectorStore):
"Failed to insert batch starting at entity: %s/%s", i, total_count
)
raise e
self.col.flush()
return pks
def similarity_search(

Loading…
Cancel
Save