PaddlePaddle / ERNIE-SDK

ERNIE Bot Agent is a Large Language Model (LLM) Agent Framework, powered by the advanced capabilities of ERNIE Bot and the platform resources of Baidu AI Studio.
http://ernie-bot-agent.readthedocs.io/
Apache License 2.0
322 stars 46 forks source link

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

Open madagastar opened 3 months ago

madagastar commented 3 months ago

文件erniebot/examples/quick_start/gradio_demo.py

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

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

位置: https://github.com/PaddlePaddle/ERNIE-SDK/blob/157ca7ea006dc302f173f0919d4df4562c666590/erniebot/examples/quick_start/gradio_demo.py#L556 https://github.com/PaddlePaddle/ERNIE-SDK/blob/157ca7ea006dc302f173f0919d4df4562c666590/erniebot/examples/quick_start/gradio_demo.py#L564

w5688414 commented 3 months ago

您好,感谢您的反馈,这是修复PR。https://github.com/PaddlePaddle/ERNIE-SDK/pull/329