Skip to content

Commit

Permalink
fix/milvus will autoflush, manual flush is slowly (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesBonddu authored Apr 28, 2024
1 parent 744b3e4 commit 939b677
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dbgpt/storage/vector_store/milvus_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,7 @@ def _add_documents(
res = self.col.insert(
insert_list, partition_name=partition_name, timeout=timeout
)
# make sure data is searchable.
self.col.flush()

return res.primary_keys

def load_document(self, chunks: List[Chunk]) -> List[str]:
Expand Down

0 comments on commit 939b677

Please sign in to comment.