【求助帖】2025-06-11第6期课程50-GraphRAG-林辉老师 #777

Open
opened 2025-09-17 14:35:45 +08:00 by 19821399617 · 4 comments

image部署完LightRAG,上传文档进行处理时一直出现超时报错(如下),减小了文档大小也不行,请问应如何解决?:
Processing 1 document(s)
Extracting stage 1/1: 四平-节选.txt
Processing d-id: doc-6764e5e58b1b8a9d1eb9ae63e3d212ca
Chunk 1 of 9 extracted 13 Ent + 7 Rel
Chunk 2 of 9 extracted 18 Ent + 8 Rel
Traceback (most recent call last):
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions
yield
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_transports\default.py", line 394, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\connection_pool.py", line 256, in handle_async_request
raise exc from None
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\connection_pool.py", line 236, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\connection.py", line 103, in handle_async_request
return await self._connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\http11.py", line 136, in handle_async_request
raise exc
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\http11.py", line 106, in handle_async_request
) = await self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\http11.py", line 177, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\http11.py", line 217, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_backends\anyio.py", line 32, in read
with map_exceptions(exc_map):
File "D:\04research\Anacoda\envs\lightRAG\Lib\contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\lightrag.py", line 1003, in process_document
await asyncio.gather(*tasks)
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\kg\nano_vector_db_impl.py", line 109, in upsert
embeddings_list = await asyncio.gather(*embedding_tasks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 585, in wait_func
return await future
^^^^^^^^^^^^
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 369, in worker
result = await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 241, in call
return await self.func(*args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\llm\ollama.py", line 165, in ollama_embed
raise e
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\llm\ollama.py", line 154, in ollama_embed
data = await ollama_client.embed(model=embed_model, input=texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama_client.py", line 882, in embed
return await self._request(
^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama_client.py", line 694, in _request
return cls(
(await self._request_raw(*args, **kwargs)).json())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama_client.py", line 634, in _request_raw
r = await self._client.request(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1540, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1629, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1657, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1694, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1730, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_transports\default.py", line 393, in handle_async_request
with map_httpcore_exceptions():
File "D:\04research\Anacoda\envs\lightRAG\Lib\contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout

![image](/attachments/2e3b2c34-10bb-4548-b273-a434e6de2297)部署完LightRAG,上传文档进行处理时一直出现超时报错(如下),减小了文档大小也不行,请问应如何解决?: Processing 1 document(s) Extracting stage 1/1: 四平-节选.txt Processing d-id: doc-6764e5e58b1b8a9d1eb9ae63e3d212ca Chunk 1 of 9 extracted 13 Ent + 7 Rel Chunk 2 of 9 extracted 18 Ent + 8 Rel Traceback (most recent call last): File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_transports\default.py", line 101, in map_httpcore_exceptions yield File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_transports\default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\connection_pool.py", line 256, in handle_async_request raise exc from None File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\connection.py", line 103, in handle_async_request return await self._connection.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\http11.py", line 136, in handle_async_request raise exc File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\http11.py", line 106, in handle_async_request ) = await self._receive_response_headers(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\http11.py", line 177, in _receive_response_headers event = await self._receive_event(timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\http11.py", line 217, in _receive_event data = await self._network_stream.read( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_backends\anyio.py", line 32, in read with map_exceptions(exc_map): File "D:\04research\Anacoda\envs\lightRAG\Lib\contextlib.py", line 158, in __exit__ self.gen.throw(typ, value, traceback) File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ReadTimeout The above exception was the direct cause of the following exception: Traceback (most recent call last): File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\lightrag.py", line 1003, in process_document await asyncio.gather(*tasks) File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\kg\nano_vector_db_impl.py", line 109, in upsert embeddings_list = await asyncio.gather(*embedding_tasks) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 585, in wait_func return await future ^^^^^^^^^^^^ File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 369, in worker result = await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 241, in __call__ return await self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\llm\ollama.py", line 165, in ollama_embed raise e File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\llm\ollama.py", line 154, in ollama_embed data = await ollama_client.embed(model=embed_model, input=texts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama\_client.py", line 882, in embed return await self._request( ^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama\_client.py", line 694, in _request return cls(**(await self._request_raw(*args, **kwargs)).json()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama\_client.py", line 634, in _request_raw r = await self._client.request(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1540, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_transports\default.py", line 393, in handle_async_request with map_httpcore_exceptions(): File "D:\04research\Anacoda\envs\lightRAG\Lib\contextlib.py", line 158, in __exit__ self.gen.throw(typ, value, traceback) File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_transports\default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ReadTimeout

这个报错是发生在调用ollama的时候超时报错的,先检查下是否正确安装ollama 且ollama是否正确运行,如果ollama正确运行,然后看下是否运行了代理,如果运行了代理,就把代理关了,然后再上传文档

这个报错是发生在调用ollama的时候超时报错的,先检查下是否正确安装ollama 且ollama是否正确运行,如果ollama正确运行,然后看下是否运行了代理,如果运行了代理,就把代理关了,然后再上传文档
Author

ollama是正确运行的,安装的quentinz/bge-large-zh-v1.5:latest和qwen2.5:7b-instruct-q8_0模型也测试过可以正常运行。代理也是关掉的,但还是报错:
Processing 1 document(s)
Extracting stage 1/1: 四平路街道.txt
Processing d-id: doc-0af46532363ef24f2544dc4a8a3fc015
Chunk 1 of 4 extracted 13 Ent + 7 Rel
Chunk 2 of 4 extracted 18 Ent + 8 Rel
Chunk 3 of 4 extracted 17 Ent + 4 Rel
Traceback (most recent call last):
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions
yield
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_transports\default.py", line 394, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\connection_pool.py", line 256, in handle_async_request
raise exc from None
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\connection_pool.py", line 236, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\connection.py", line 103, in handle_async_request
return await self._connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\http11.py", line 136, in handle_async_request
raise exc
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\http11.py", line 106, in handle_async_request
) = await self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\http11.py", line 177, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_async\http11.py", line 217, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_backends\anyio.py", line 32, in read
with map_exceptions(exc_map):
File "D:\04research\Anacoda\envs\lightRAG\Lib\contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\lightrag.py", line 1003, in process_document
await asyncio.gather(*tasks)
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\kg\nano_vector_db_impl.py", line 109, in upsert
embeddings_list = await asyncio.gather(*embedding_tasks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 585, in wait_func
return await future
^^^^^^^^^^^^
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 369, in worker
result = await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 241, in call
return await self.func(*args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\llm\ollama.py", line 165, in ollama_embed
raise e
File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\llm\ollama.py", line 154, in ollama_embed
data = await ollama_client.embed(model=embed_model, input=texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama_client.py", line 882, in embed
return await self._request(
^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama_client.py", line 694, in _request
return cls(
(await self._request_raw(*args, **kwargs)).json())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama_client.py", line 634, in _request_raw
r = await self._client.request(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1540, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1629, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1657, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1694, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_client.py", line 1730, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_transports\default.py", line 393, in handle_async_request
with map_httpcore_exceptions():
File "D:\04research\Anacoda\envs\lightRAG\Lib\contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
Failed to extrat document 1/1: 四平路街道.txt
Document processing pipeline completed

ollama是正确运行的,安装的quentinz/bge-large-zh-v1.5:latest和qwen2.5:7b-instruct-q8_0模型也测试过可以正常运行。代理也是关掉的,但还是报错: Processing 1 document(s) Extracting stage 1/1: 四平路街道.txt Processing d-id: doc-0af46532363ef24f2544dc4a8a3fc015 Chunk 1 of 4 extracted 13 Ent + 7 Rel Chunk 2 of 4 extracted 18 Ent + 8 Rel Chunk 3 of 4 extracted 17 Ent + 4 Rel Traceback (most recent call last): File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_transports\default.py", line 101, in map_httpcore_exceptions yield File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_transports\default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\connection_pool.py", line 256, in handle_async_request raise exc from None File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\connection.py", line 103, in handle_async_request return await self._connection.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\http11.py", line 136, in handle_async_request raise exc File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\http11.py", line 106, in handle_async_request ) = await self._receive_response_headers(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\http11.py", line 177, in _receive_response_headers event = await self._receive_event(timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_async\http11.py", line 217, in _receive_event data = await self._network_stream.read( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_backends\anyio.py", line 32, in read with map_exceptions(exc_map): File "D:\04research\Anacoda\envs\lightRAG\Lib\contextlib.py", line 158, in __exit__ self.gen.throw(typ, value, traceback) File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpcore\_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ReadTimeout The above exception was the direct cause of the following exception: Traceback (most recent call last): File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\lightrag.py", line 1003, in process_document await asyncio.gather(*tasks) File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\kg\nano_vector_db_impl.py", line 109, in upsert embeddings_list = await asyncio.gather(*embedding_tasks) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 585, in wait_func return await future ^^^^^^^^^^^^ File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 369, in worker result = await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\utils.py", line 241, in __call__ return await self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\llm\ollama.py", line 165, in ollama_embed raise e File "d:\04research\jupyter\15-minute-city\graphrag\lightrag\lightrag\llm\ollama.py", line 154, in ollama_embed data = await ollama_client.embed(model=embed_model, input=texts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama\_client.py", line 882, in embed return await self._request( ^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama\_client.py", line 694, in _request return cls(**(await self._request_raw(*args, **kwargs)).json()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\ollama\_client.py", line 634, in _request_raw r = await self._client.request(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1540, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_transports\default.py", line 393, in handle_async_request with map_httpcore_exceptions(): File "D:\04research\Anacoda\envs\lightRAG\Lib\contextlib.py", line 158, in __exit__ self.gen.throw(typ, value, traceback) File "D:\04research\Anacoda\envs\lightRAG\Lib\site-packages\httpx\_transports\default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ReadTimeout Failed to extrat document 1/1: 四平路街道.txt Document processing pipeline completed

image把这个localhost替换成你本机的实际局域网地址,比如192.168.*.*这种的

![image](/attachments/cf965134-d9a4-4ac8-8a1b-b0bc18da0266)把这个localhost替换成你本机的实际局域网地址,比如192.168.*.*这种的
238 KiB

还要把这里的语言改为Chinese:

还要把这里的语言改为Chinese:
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#777
No description provided.