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

faiss升级faiss.swigfaiss.IndexFlatIP改为faiss.IndexFlatIP #327

Open
madagastar opened this issue Mar 3, 2024 · 1 comment
Open

faiss升级faiss.swigfaiss.IndexFlatIP改为faiss.IndexFlatIP #327

madagastar opened this issue Mar 3, 2024 · 1 comment
Assignees

Comments

@madagastar
Copy link

文件erniebot/examples/quick_start/gradio_demo.py

运行报错:module 'faiss' has no attribute 'swigfaiss'

解决方法:因faiss升级,将原代码中的“faiss.swigfaiss.IndexFlatIP“修改为“faiss.IndexFlatIP“

位置:

query: str, origin_chunk: List[str], index_ip: faiss.swigfaiss.IndexFlatIP, top_k: int = 5

index_ip (faiss.swigfaiss.IndexFlatIP): Vector DB index。

@w5688414
Copy link
Collaborator

w5688414 commented Mar 4, 2024

您好,感谢您的反馈,这是修复PR。#329

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

2 participants