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

[BUG] 文件对话上传PPTX文件,报错 #5094

Closed
dtiosd opened this issue Nov 19, 2024 · 2 comments
Closed

[BUG] 文件对话上传PPTX文件,报错 #5094

dtiosd opened this issue Nov 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@dtiosd
Copy link

dtiosd commented Nov 19, 2024

文件对话上传PPTX文件,报错
| ERROR | chatchat.server.chat.file_chat:upload_temp_docs:108 - Failed to add documents to faiss: tuple index out of range

但是该文件存入temp

2024-11-19 11:15:57.379 | INFO     | chatchat.server.knowledge_base.utils:file2docs:336 - RapidOCRPPTLoader used for D:\Langchain-Chatchat\libs\chatchat-server\chatchat\data\temp\b53ac87f5a2c457693689a1047a3b94b\Manual.pptx
2024-11-19 11:15:57.540 | INFO     | chatchat.server.knowledge_base.kb_cache.faiss_cache:load_vector_store:162 - loading vector store in 'b53ac87f5a2c457693689a1047a3b94b' to memory.
2024-11-19 11:15:58,196 faiss.loader 25608 INFO     Loading faiss with AVX2 support.
2024-11-19 11:15:58,196 faiss.loader 25608 INFO     Could not load library with AVX2 support due to:
ModuleNotFoundError("No module named 'faiss.swigfaiss_avx2'")
2024-11-19 11:15:58,197 faiss.loader 25608 INFO     Loading faiss.
2024-11-19 11:15:59,034 faiss.loader 25608 INFO     Successfully loaded faiss.
2024-11-19 11:15:59.045 | ERROR    | chatchat.server.chat.file_chat:upload_temp_docs:108 - Failed to add documents to faiss: tuple index out of range
INFO:     127.0.0.1:53600 - "POST /knowledge_base/upload_temp_docs HTTP/1.1" 200 OK
2024-11-19 11:15:59,048 httpx        25456 INFO     HTTP Request: POST http://127.0.0.1:7861/knowledge_base/upload_temp_docs "HTTP/1.1 200 OK"
@dtiosd dtiosd added the bug Something isn't working label Nov 19, 2024
@dtiosd dtiosd changed the title [BUG] 简洁阐述问题 / Concise description of the issue [BUG] 文件对话上传PPTX文件,报错 Nov 19, 2024
@zjf8888
Copy link

zjf8888 commented Nov 19, 2024

安装一下pip install python-pptx
就可以了

@dtiosd
Copy link
Author

dtiosd commented Nov 20, 2024

安装一下pip install python-pptx 就可以了

感谢

@dtiosd dtiosd closed this as completed Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants