Hi All,
I am new to weaviate and try to do RAG with langchain and using Huggingface embeddings.
I have downloaded the yaml file and got it running in a docker container.
I am using windows10 and have wsl installed. I can see that localhost:8080/v1 displaying the links.
I have a windows conda environment py10.
import weaviate
client = weaviate.Client(‘http://weaviate:8080’)
print(‘after client connection’)
then i get the following error… I do NOT see the print statement.
What I am doing wrong?
error
(py10) E:\llmchat>python weaviate_langch.py
Traceback (most recent call last):
File “E:\Anaconda3\envs\py10\lib\site-packages\urllib3\connection.py”, line 174, in _new_conn
conn = connection.create_connection(
File “E:\Anaconda3\envs\py10\lib\site-packages\urllib3\util\connection.py”, line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “E:\Anaconda3\envs\py10\lib\socket.py”, line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “E:\Anaconda3\envs\py10\lib\site-packages\weaviate\connect\connection.py”, line 647, in wait_for_weaviate
requests.get(ready_url, headers=self._get_request_header()).raise_for_status()
File “E:\Anaconda3\envs\py10\lib\site-packages\requests\api.py”, line 73, in get
return request(“get”, url, params=params, **kwargs)
File “E:\Anaconda3\envs\py10\lib\site-packages\requests\api.py”, line 59, in request
return session.request(method=method, url=url, **kwargs)
File “E:\Anaconda3\envs\py10\lib\site-packages\requests\sessions.py”, line 587, in request
resp = self.send(prep, **send_kwargs)
File “E:\Anaconda3\envs\py10\lib\site-packages\requests\sessions.py”, line 701, in send
r = adapter.send(request, **kwargs)
File “E:\Anaconda3\envs\py10\lib\site-packages\requests\adapters.py”, line 520, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘weaviate’, port=8080): Max retries exceeded with (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x0000017E44D34DF0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “E:\llmchat\weaviate_langch.py”, line 25, in
client = weaviate.Client(‘http://weaviate:8080’)
File “E:\Anaconda3\envs\py10\lib\site-packages\weaviate\client.py”, line 150, in init
self._connection = Connection(
File “E:\Anaconda3\envs\py10\lib\site-packages\weaviate\connect\connection.py”, line 163, in init
self.wait_for_weaviate(startup_period)
File “E:\Anaconda3\envs\py10\lib\site-packages\weaviate\connect\connection.py”, line 650, in wait_for_weaviate
raise WeaviateStartUpError(
weaviate.exceptions.WeaviateStartUpError: Weaviate did not start up in 5 seconds. Either the Weaviate URL wrong or Weaviate did not start up in the interval given in ‘startup_period’.