bisheng icon indicating copy to clipboard operation
bisheng copied to clipboard

0.3.4 dev3 文件解析为空

Open Linzy0520 opened this issue 1 year ago • 2 comments

Traceback (most recent call last):
2024-08-21 23:04:54
2024-08-21 23:04:54 File "/usr/local/lib/python3.10/threading.py", line 973, in _bootstrap
2024-08-21 23:04:54 self._bootstrap_inner()
2024-08-21 23:04:54 | -> <function Thread._bootstrap_inner at 0x7f19e84d0ee0>
2024-08-21 23:04:54 -> <WorkerThread(AnyIO worker thread, started 139744780465856)>
2024-08-21 23:04:54 File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
2024-08-21 23:04:54 self.run()
2024-08-21 23:04:54 | -> <function WorkerThread.run at 0x7f193e5e9480>
2024-08-21 23:04:54 -> <WorkerThread(AnyIO worker thread, started 139744780465856)>
2024-08-21 23:04:54 File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run
2024-08-21 23:04:54 result = context.run(func, *args)
2024-08-21 23:04:54 | | | -> ()
2024-08-21 23:04:54 | | -> functools.partial(<function addEmbedding at 0x7f1962eb0ee0>, collection_name='partition_4_knowledge_1', index_name='col_17242...
2024-08-21 23:04:54 | -> <method 'run' of '_contextvars.Context' objects>
2024-08-21 23:04:54 -> <_contextvars.Context object at 0x7f193e47c180>
2024-08-21 23:04:54
2024-08-21 23:04:54 > File "/app/bisheng/api/services/knowledge_imp.py", line 301, in addEmbedding
2024-08-21 23:04:54 raise ValueError('文件解析为空')
2024-08-21 23:04:54
2024-08-21 23:04:54 ValueError: 文件解析为空

Linzy0520 avatar Aug 21 '24 15:08 Linzy0520

[2024-08-22 17:50:27.967860] [2024-08-22 17:50:27.965164] [ERROR process-8-140502285153984 bisheng.api.services.knowledge_imp:332] - trace=a9a800a899584d6d8c95ee698cdfa578 add_vectordb 文件解析为空                                                                                                       
 Traceback (most recent call last):                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                
   File "/usr/local/lib/python3.10/threading.py", line 973, in _bootstrap                                                                                                                                                                                                       
     self._bootstrap_inner()                                                                                                                                                                                                                                                    
     |    -> <function Thread._bootstrap_inner at 0x7fcb64480ee0>                                                                                                                                                                                                               
     -> <WorkerThread(AnyIO worker thread, started 140502285153984)>                                                                                                                                                                                                            
   File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner                                                                                                                                                                                                
     self.run()                                                                                                                                                                                                                                                                 
     |    -> <function WorkerThread.run at 0x7fc9cc2b1d80>                                                                                                                                                                                                                      
     -> <WorkerThread(AnyIO worker thread, started 140502285153984)>                                                                                                                                                                                                            
   File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run                                                                                                                                                                                 
     result = context.run(func, *args)                                                                                                                                                                                                                                          
              |       |   |      -> ()                                                                                                                                                                                                                                          
              |       |   -> functools.partial(<function addEmbedding at 0x7fc9fd5f7880>, collection_name='partition_7_knowledge_1', index_name='col_17243...                                                                                                                   
              |       -> <method 'run' of '_contextvars.Context' objects>                                                                                                                                                                                                       
              -> <_contextvars.Context object at 0x7fc9fcf5b7c0>                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                
 > File "/app/bisheng/api/services/knowledge_imp.py", line 301, in addEmbedding                                                                                                                                                                                                 
     raise ValueError('文件解析为空')                                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                                
 ValueError: 文件解析为空              

+1

dantegarden avatar Aug 22 '24 09:08 dantegarden

E:\bisheng-0.3.4.dev2\docker>docker-compose up -d ERROR: Invalid interpolation format for "frontend" option in service "services": "${DOCKER_VOLUME_DIRECTORY:-.}/nginx/nginx.conf:/etc/nginx/nginx.conf" 这个您知道为什么吗

why6336 avatar Sep 05 '24 12:09 why6336

建议部署新版本使用

sara2398 avatar Aug 25 '25 08:08 sara2398