AttributeError: module 'faiss' has no attribute 'read_index'

Hi all,

I used the FAISS library to create a persisted vector db of the documents i’d like my model to answer questions on.

I created a custom function load_vectordb to load the vectordb that I have saved in my github repo.

However, it has been returning an AttributeError: module ‘faiss’ has no attribute ‘read_index’.

The full error log can be found here:

Link to my app:

Would appreciate advice on this please! Many thanks.

I’ve managed to resolve this :slight_smile:

also having this problem… how did you resolve this?


Use the following version of FAISS in the requirements.txt file