Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurs when the file name contains Chinese characters #19

Open
iT-Boyer opened this issue Mar 18, 2023 · 0 comments
Open

An error occurs when the file name contains Chinese characters #19

iT-Boyer opened this issue Mar 18, 2023 · 0 comments

Comments

@iT-Boyer
Copy link

iT-Boyer commented Mar 18, 2023

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, 问答的内容和中文也不兼容吗?

截屏2023-03-19 22 34 19

@iT-Boyer iT-Boyer changed the title dr-doc-search tool error occurred during training FileNotFoundError: FAISS DB file not found: /Users/boyer/OutputDir/dr-doc-search/index/index.pkl Mar 19, 2023
@iT-Boyer iT-Boyer changed the title FileNotFoundError: FAISS DB file not found: /Users/boyer/OutputDir/dr-doc-search/index/index.pkl FileNotFoundError: FAISS DB file not found: ~/OutputDir/dr-doc-search/index/index.pkl Mar 19, 2023
@iT-Boyer iT-Boyer changed the title FileNotFoundError: FAISS DB file not found: ~/OutputDir/dr-doc-search/index/index.pkl An error occurs when the file name contains Chinese characters Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant