requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /nomic-ai/gpt4all/main/gpt4all-chat/metadata/models3.json (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)'))) #22172
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
🔌: chroma
Primarily related to ChromaDB integrations
Ɑ: embeddings
Related to text embedding models module
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Traceback (most recent call last):
File "/Users/idea/Desktop/langgraph/test_chain.py", line 77, in
test_qa_chain()
File "/Users/idea/Desktop/langgraph/test_chain.py", line 27, in test_qa_chain
retriever = construct_web_res_retriever(question)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/idea/Desktop/langgraph/memory_test.py", line 251, in construct_web_res_retriever
embedding=GPT4AllEmbeddings(),
^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 339, in pydantic.main.BaseModel.init
File "pydantic/main.py", line 1102, in pydantic.main.validate_model
File "/opt/anaconda3/lib/python3.11/site-packages/langchain_community/embeddings/gpt4all.py", line 29, in validate_environment
values["client"] = Embed4All()
^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/gpt4all/gpt4all.py", line 58, in init
self.gpt4all = GPT4All(model_name, n_threads=n_threads, device=device, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/gpt4all/gpt4all.py", line 205, in init
self.config: ConfigType = self.retrieve_model(model_name, model_path=model_path, allow_download=allow_download, verbose=verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/gpt4all/gpt4all.py", line 283, in retrieve_model
available_models = cls.list_models()
^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/gpt4all/gpt4all.py", line 251, in list_models
resp = requests.get("https://gpt4all.io/models/models3.json")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/requests/sessions.py", line 725, in send
history = [resp for resp in gen]
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/requests/sessions.py", line 725, in
history = [resp for resp in gen]
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/requests/adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /nomic-ai/gpt4all/main/gpt4all-chat/metadata/models3.json (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)')))
Description
I am trying to use langchain to implement RAG. However, a bug occured as I was building vectorDB with GPT4AllEmbeddings. The code and bug are shown above.
System Info
platform: MacOS
python==3.11.7
The text was updated successfully, but these errors were encountered: