Closed zohaibdr closed 1 month ago
Langchain currently still uses the Weaviate client version 3. You have installed the Weaviate client in version 4, which had many breaking changes in its API.
So when downgrading the client to the latest 3.x, that should work.
This is true, but V4 is the future of python Weaviate and they have officially moved it out of Beta and are have deprecated V3.
This is the connection message using v3
DeprecationWarning: Dep016: You are using the Weaviate v3 client, which is deprecated. Consider upgrading to the new and improved v4 client instead! See here for usage: https://weaviate.io/developers/weaviate/client-libraries/python
I ended up creating my own retriever wrapping weaviate methods inside langchain's base class.
@zohaibdr can you please share more details how exactly solved
The new weaviate client is on v4: https://python.langchain.com/docs/integrations/vectorstores/weaviate/
Checked other resources
Example Code