mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 11:08:55 +00:00
community[patch]: docarray requires hnsw installation (#19416)
I have a small dataset, and I tried to use docarray: ``DocArrayHnswSearch ``. But when I execute, it returns: ```bash raise ImportError( ImportError: Could not import docarray python package. Please install it with `pip install "langchain[docarray]"`. ``` Instead of docarray it needs to be ```bash docarray[hnswlib] ``` Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
parent
d4dc98a9f9
commit
ef6d3d66d6
@ -14,7 +14,7 @@ class DocArrayHnswSearch(DocArrayIndex):
|
|||||||
"""`HnswLib` storage using `DocArray` package.
|
"""`HnswLib` storage using `DocArray` package.
|
||||||
|
|
||||||
To use it, you should have the ``docarray`` package with version >=0.32.0 installed.
|
To use it, you should have the ``docarray`` package with version >=0.32.0 installed.
|
||||||
You can install it with `pip install "langchain[docarray]"`.
|
You can install it with `pip install "docarray[hnswlib]"`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user