Skip to content

Commit

Permalink
Prevent forced flush() on document add (#11734)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidii authored Mar 7, 2024
1 parent 4947327 commit 12756cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ def add(self, nodes: List[BaseNode], **add_kwargs: Any) -> List[str]:

# Insert the data into milvus
self._collection.insert(insert_list)
self._collection.flush()
if add_kwargs.get("force_flush", False):
self._collection.flush()
self._create_index_if_required()
logger.debug(
f"Successfully inserted embeddings into: {self.collection_name} "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-vector-stores-milvus"
readme = "README.md"
version = "0.1.5"
version = "0.1.6"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
Expand Down

0 comments on commit 12756cc

Please sign in to comment.