HNSWLib
features and configurations head to the API reference.
Class | Package | PY support | Package latest |
---|---|---|---|
HNSWLib | @langchain/community | ❌ |
@langchain/community
integration package with the hnswlib-node
package as a peer dependency.
This guide will also use OpenAI embeddings, which require you to install the @langchain/openai
integration package. You can also use other supported embeddings models if you wish.
true
or false
depending on whether the document should be returned.
If you want to execute a similarity search and receive the corresponding scores you can run:
.delete
method to clear an index saved to a given directory:
HNSWLib
features and configurations head to the API reference.