I connected to weaviate using Docker, which seems to work fine.
The only issue is that I get a Deprecation Warning for using v3 when I think I am using v4.
Inside a jupyter notebook I am connecting to my weaviate Docker:
import weaviate
import os
import json
client = weaviate.Client(
url = "http://localhost:8080", # Replace with your endpoint
additional_headers = {
"X-OpenAI-Api-Key": os.getenv("OPENAI_API_KEY") # Replace with your inference API key
}
)
And I get the warning message
[/Users/kon/miniconda3/envs/factcheck-gpt/lib/python3.11/site-packages/weaviate/warnings.py:158](https://file+.vscode-resource.vscode-cdn.net/Users/kon/miniconda3/envs/factcheck-gpt/lib/python3.11/site-packages/weaviate/warnings.py:158): 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 warnings.warn(
although I have installed v4 in this environment I am using:
!pip list | grep weaviate
weaviate-client 4.4.2
for now it works, I can run all the code from the quickstart_end_to_end notebook, but I am still wondering where this warning is coming from.