You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use duckduckgo to search, I get the following error:
When I use tavily to search, I get the following error:
In the end, they always report the following error:
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request
raise exc from None
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
raise exc
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request
stream = self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect
stream = stream.start_tls(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls
with map_exceptions(exc_map):
File "/home/test/anaconda3/envs/py311/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/openai/_base_client.py", line 951, in _request
response = self._client.send(
^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request
with map_httpcore_exceptions():
File "/home/test/anaconda3/envs/py311/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/uvicorn/protocols/websockets/wsproto_impl.py", line 233, in run_asgi
result = await self.app(self.scope, self.receive, self.send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/middleware/errors.py", line 151, in __call__
await self.app(scope, receive, send)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/routing.py", line 373, in handle
await self.app(scope, receive, send)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/routing.py", line 96, in app
await wrap_app_handling_exceptions(app, session)(scope, receive, send)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/starlette/routing.py", line 94, in app
await func(session)
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/fastapi/routing.py", line 348, in app
await dependant.call(**values)
File "/ldata/llms/gpt-researcher/backend/server.py", line 50, in websocket_endpoint
report = await manager.start_streaming(task, report_type, websocket)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ldata/llms/gpt-researcher/gpt_researcher/utils/websocket_manager.py", line 57, in start_streaming
report = await run_agent(task, report_type, websocket)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ldata/llms/gpt-researcher/gpt_researcher/utils/websocket_manager.py", line 75, in run_agent
report = await researcher.run()
^^^^^^^^^^^^^^^^^^^^^^
File "/ldata/llms/gpt-researcher/gpt_researcher/report_type/basic_report/basic_report.py", line 17, in run
await researcher.conduct_research()
File "/ldata/llms/gpt-researcher/gpt_researcher/master/agent.py", line 79, in conduct_research
self.context = await self.get_context_by_search(self.query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ldata/llms/gpt-researcher/gpt_researcher/master/agent.py", line 148, in get_context_by_search
context = await asyncio.gather(*[self.process_sub_query(sub_query) for sub_query in sub_queries])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ldata/llms/gpt-researcher/gpt_researcher/master/agent.py", line 163, in process_sub_query
content = await self.get_similar_content_by_query(sub_query, scraped_sites)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ldata/llms/gpt-researcher/gpt_researcher/master/agent.py", line 214, in get_similar_content_by_query
return context_compressor.get_context(query, max_results=8)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ldata/llms/gpt-researcher/gpt_researcher/context/compression.py", line 43, in get_context
relevant_docs = compressed_docs.get_relevant_documents(query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/langchain_core/retrievers.py", line 245, in get_relevant_documents
raise e
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/langchain_core/retrievers.py", line 238, in get_relevant_documents
result = self._get_relevant_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/langchain/retrievers/contextual_compression.py", line 48, in _get_relevant_documents
compressed_docs = self.base_compressor.compress_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/langchain/retrievers/document_compressors/base.py", line 40, in compress_documents
documents = _transformer.compress_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/langchain/retrievers/document_compressors/embeddings_filter.py", line 57, in compress_documents
embedded_documents = _get_embeddings_from_stateful_docs(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/langchain_community/document_transformers/embeddings_redundant_filter.py", line 70, in _get_embeddings_from_stateful_docs
embedded_documents = embeddings.embed_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/langchain_openai/embeddings/base.py", line 517, in embed_documents
return self._get_len_safe_embeddings(texts, engine=engine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/langchain_openai/embeddings/base.py", line 333, in _get_len_safe_embeddings
response = self.client.create(
^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/openai/resources/embeddings.py", line 113, in create
return self._post(
^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/openai/_base_client.py", line 1233, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/openai/_base_client.py", line 922, in request
return self._request(
^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/openai/_base_client.py", line 975, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/openai/_base_client.py", line 1046, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/openai/_base_client.py", line 975, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/openai/_base_client.py", line 1046, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/test/anaconda3/envs/py311/lib/python3.11/site-packages/openai/_base_client.py", line 985, in _request
raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.
The text was updated successfully, but these errors were encountered:
When I use duckduckgo to search, I get the following error:
![捕获](https://private-user-images.githubusercontent.com/90330685/323057023-64c6522c-7c04-4626-963a-e28d9707882f.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5NzYwMDQsIm5iZiI6MTcyMTk3NTcwNCwicGF0aCI6Ii85MDMzMDY4NS8zMjMwNTcwMjMtNjRjNjUyMmMtN2MwNC00NjI2LTk2M2EtZTI4ZDk3MDc4ODJmLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI2VDA2MzUwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk0NDZkYTc0NjJlYTY3MDY0NzA2ZDI0NjRlNjEwNzMxNDM3YjZhZjhmZWEwNmU1MWMwZTE5NmYxNTBlY2UyNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rp2jBAqUh3ZD7RZf7US0OvIjQah7oa4dcFcqQkurqjo)
When I use tavily to search, I get the following error:
![捕获1](https://private-user-images.githubusercontent.com/90330685/323057358-f50c5ac4-4966-4bd9-85f1-134cce60a4fd.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5NzYwMDQsIm5iZiI6MTcyMTk3NTcwNCwicGF0aCI6Ii85MDMzMDY4NS8zMjMwNTczNTgtZjUwYzVhYzQtNDk2Ni00YmQ5LTg1ZjEtMTM0Y2NlNjBhNGZkLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI2VDA2MzUwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI5OTI2NDUyZDhmYjI5ZTU3MTFmYzMyMjc1OTVlZmM3NTdkZGFjNTA5NjIwZGRiN2ExZmEzYTczYjlmZGNiNjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iNSFbmcirRedNqIStKjKtQd5RYEcWb-miiNP2ggyCoo)
In the end, they always report the following error:
The text was updated successfully, but these errors were encountered: