mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-27 00:48:45 +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
|
"Failed to insert batch starting at entity: %s/%s", i, total_count
|
||||||
)
|
)
|
||||||
raise e
|
raise e
|
||||||
|
self.col.flush()
|
||||||
return pks
|
return pks
|
||||||
|
|
||||||
def similarity_search(
|
def similarity_search(
|
||||||
|
Loading…
Reference in New Issue
Block a user