WeaviateStore
features and configurations head to the API reference.
Class | Package | PY support | Package latest |
---|---|---|---|
WeaviateStore | @langchain/weaviate | ✅ |
@langchain/weaviate
integration package. You should also install the weaviate-client
package to initialize a client to connect to your instance with, and the uuid
package if you want to assign indexed documents ids.
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.
auto-schema
creates them.
schema
property when enabling the vector store. The collection name and other properties in schema
will take precedence when creating the vector store.
filter
param:
collections
as the primary way to work with objects in the database. The collection
object can be re-used throughout the codebase
Filter
helper class makes it easier to use filters with conditions. The v3 client streamlines how you use Filter
so your code is cleaner and more concise.
See this page for more on Weaviate filter syntax.
Hybrid search
combines the results of a vector search and a keyword (BM25F) search by fusing the two result sets. To change the relative weights of the keyword and vector components, set the alpha
value in your query.
Check docs for the full list of hybrid search options.
WeaviateStore
features and configurations head to the API reference.