dr-doc-search
dr-doc-search copied to clipboard
An error occurs when the file name contains Chinese characters
dr-doc-search --web-app -i ~/Downloads/吴晓波:勇敢者的方法论.pdf --llm huggingface
error:
Traceback (most recent call last):
File "/Users/boyer/hsg/dr-doc-search/venv/bin/dr-doc-search", line 8, in <module>
sys.exit(main())
File "/Users/boyer/hsg/dr-doc-search/venv/lib/python3.10/site-packages/doc_search/app.py", line 66, in main
run_web(context)
File "/Users/boyer/hsg/dr-doc-search/venv/lib/python3.10/site-packages/doc_search/web.py", line 77, in run_web
run_workflow(global_context, inference_workflow_steps())
File "/Users/boyer/hsg/dr-doc-search/venv/lib/python3.10/site-packages/py_executable_checklist/workflow.py", line 36, in run_workflow
__run_step(step, context)
File "/Users/boyer/hsg/dr-doc-search/venv/lib/python3.10/site-packages/py_executable_checklist/workflow.py", line 29, in __run_step
returned_context = step_instance.execute() or {}
File "/Users/boyer/hsg/dr-doc-search/venv/lib/python3.10/site-packages/doc_search/workflow/__init__.py", line 254, in execute
raise FileNotFoundError(f"FAISS DB file not found: {self.faiss_db}")
FileNotFoundError: FAISS DB file not found: /Users/boyer/OutputDir/dr-doc-search/index/index.pkl
rename demo.pdf, 问答的内容和中文也不兼容吗?