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.
This commit is contained in:
Earlee 2024-01-08 01:33:47 +08:00 committed by GitHub
parent a17a3638b5
commit 98c6c9603e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(