Skip to content

Commit

Permalink
Fix typo in property name (#17365)
Browse files Browse the repository at this point in the history
* Fix typo in property name

Fixes the following error:

```
AttributeError: 'OpensearchVectorClient' object has no attribute 'os_version'
Python stacktrace:
 [1] _is_efficient_filtering_enabled
   @ llama_index.vector_stores.opensearch.base ~/.cache/pypoetry/virtualenvs/rag-company-rules-q2Dy5nHQ-py3.11/lib/python3.11/site-packages/llama_index/vector_stores/opensearch/base.py:637
 [2] __init__
   @ llama_index.vector_stores.opensearch.base ~/.cache/pypoetry/virtualenvs/rag-company-rules-q2Dy5nHQ-py3.11/lib/python3.11/site-packages/llama_index/vector_stores/opensearch/base.py:126
```

* Bump version
  • Loading branch information
mrkn authored Dec 25, 2024
1 parent 159ce48 commit 33bfc37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def _is_efficient_filtering_enabled(self) -> bool:
ef_enabled = False
else:
self._os_version = self._get_opensearch_version()
major, minor, patch = self.os_version.split(".")
major, minor, patch = self._os_version.split(".")
ef_enabled = int(major) >= 2 and int(minor) >= 9
return ef_enabled

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-opensearch"
readme = "README.md"
version = "0.5.1"
version = "0.5.2"

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

0 comments on commit 33bfc37

Please sign in to comment.