Skip to content

Commit 0628fe8

Browse files
georg-windgwind-dfinemdrxy
authored andcommitted
Correcting OpenSearchVectorStore documentation for AsyncClient import problem (#252)
when AsyncOpenSearch cannot be imported, you need to make sure to install opensearch-py[async] as documented [here](https://github.com/opensearch-project/opensearch-py/blob/main/guides/async.md#setup). This missing detail probably didn't arise yet, as frequently aiohttp is installed with some other packages, which effectively solved this problem silently (see [here](opensearch-project/opensearch-py#332)) but its better we install it exactly as planned by opensearchpy-maintainers. Open Question: are dependencies for the community-package not managed somewhere centrally? If so, opensearch-py[async] should be added there. Co-authored-by: Georg Wind <[email protected]> Co-authored-by: Mason Daugherty <[email protected]>
1 parent 0ba4cd1 commit 0628fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/community/langchain_community/vectorstores/opensearch_vector_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
)
1818
IMPORT_ASYNC_OPENSEARCH_PY_ERROR = """
1919
Could not import AsyncOpenSearch.
20-
Please install it with `pip install opensearch-py`."""
20+
Please install it with `pip install opensearch-py[async]`."""
2121

2222
SCRIPT_SCORING_SEARCH = "script_scoring"
2323
PAINLESS_SCRIPTING_SEARCH = "painless_scripting"

0 commit comments

Comments
 (0)