Skip to content

Commit

Permalink
community: fix: should flush after inserting data on milvus (#15568)
Browse files Browse the repository at this point in the history
The inserted data cannot take effect immediately. We should flush after
inserting data on milvus.
  • Loading branch information
EeyoreLee authored Jan 7, 2024
1 parent a17a363 commit 98c6c96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/community/langchain_community/vectorstores/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ def add_texts(
"Failed to insert batch starting at entity: %s/%s", i, total_count
)
raise e
self.col.flush()
return pks

def similarity_search(
Expand Down

0 comments on commit 98c6c96

Please sign in to comment.