[Python] Index type 0x73726576 ("vers") not recognized

Discussão em 'Python' iniciado por Stack, Fevereiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    I have a chat bot app that I can run without any problem in my local environment. I can both run it locally on pycharm and I can run a docker container locally again. then I deploy it to koyeb using github link and koyeb reads the dockerfile. then an error occurs:

    RuntimeError: Error in faiss::Index* faiss::read_index(faiss::IOReader*, int)
    at /project/faiss/faiss/impl/index_read.cpp:1053: Index type 0x73726576 ("vers")
    not recognized


    this is the line that I load faiss index

    self.vector_gelenek = FAISS.load_local(
    "vector_store/gelecek", self.embeddings_large, allow_dangerous_deserialization=True)


    the faiss indexes are in github repo. there is no version mismatch in fais-langchain between what I use locally and what is written in the requirements.txt

    why is that? how can I resolve it?

    Continue reading...

Compartilhe esta Página