Skip to content

Commit

Permalink
milvus: always set self._collection (#16306)
Browse files Browse the repository at this point in the history
* milvus: always set self._collection

fix based on discussion from #16165 (comment)

* lint + version bump
  • Loading branch information
andrew-augment authored Oct 1, 2024
1 parent 1024574 commit e32e8ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ def __init__(
"Hybrid retrieval requires Milvus 2.4.0 or later."
) from e
self._create_hybrid_index(collection_name)
else:
self._collection = Collection(
collection_name, using=self._milvusclient._using
)

# Set properties
if collection_properties:
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.2.5"
version = "0.2.6"

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

0 comments on commit e32e8ec

Please sign in to comment.