mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 16:43:35 +00:00
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:
parent
a17a3638b5
commit
98c6c9603e
@ -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…
Reference in New Issue
Block a user