Skip to content

Commit

Permalink
community[patch]: docarray requires hnsw installation (#19416)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
2 people authored and hinthornw committed Apr 26, 2024
1 parent a6774bd commit 8f46d05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DocArrayHnswSearch(DocArrayIndex):
"""`HnswLib` storage using `DocArray` package.
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
Expand Down

0 comments on commit 8f46d05

Please sign in to comment.