Skip to content
Snippets Groups Projects
Unverified Commit 12756ccc authored by Michael David's avatar Michael David Committed by GitHub
Browse files

Prevent forced flush() on document add (#11734)

parent 4947327c
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,8 @@ class MilvusVectorStore(BasePydanticVectorStore): ...@@ -199,7 +199,8 @@ class MilvusVectorStore(BasePydanticVectorStore):
# Insert the data into milvus # Insert the data into milvus
self._collection.insert(insert_list) self._collection.insert(insert_list)
self._collection.flush() if add_kwargs.get("force_flush", False):
self._collection.flush()
self._create_index_if_required() self._create_index_if_required()
logger.debug( logger.debug(
f"Successfully inserted embeddings into: {self.collection_name} " f"Successfully inserted embeddings into: {self.collection_name} "
......
...@@ -27,7 +27,7 @@ exclude = ["**/BUILD"] ...@@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
license = "MIT" license = "MIT"
name = "llama-index-vector-stores-milvus" name = "llama-index-vector-stores-milvus"
readme = "README.md" readme = "README.md"
version = "0.1.5" version = "0.1.6"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.8.1,<4.0" python = ">=3.8.1,<4.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment