Weaviate <-> Langchain : Would love some clarity #5251
Unanswered
EnviralDesign
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
here's some sample code I pulled from the python wiki for langchain (0.0.179)
https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/weaviate.html
If you follow the instructions for installing weaviate here:
https://weaviate.io/developers/weaviate/installation/docker-compose
You can use their configurator to generate a docker compose file, which will successfully spin up weaviate. There are several options for ML modules you can have paired with weaviate, one of which is the openAI embeddings API.
I started off by dismissing this and going for a "bring your own vector" strategy as weaviate suggests is possible in their docs.
I assumed this was the correct way to go about it for integration with langchain as all of the guides show instantiating a langchain embeddings wrapper, and passing that into a vector store langchain wrapper.
This works for other vector stores, but does not for weaviate, there have been a few other issues surrounding this:
#2820
#4742
I am able to make weaviate function with langchain by setting up the openAI embeddings module in the weaviate docker compose file.. but that begs a couple of questions:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions