Skip to content

Reusing index with from_index() caused "No passages provided" #268

Open
@AnonymousWalker

Description

@AnonymousWalker

I was running the notebook on Windows 11 and attempted to reuse the index (it takes a long time to build the index). However, with .from_index(), it caused an error "No passages provided" when I run results = docs_retrieval_model.search(text_query, k=3)

docs_retrieval_model.index(
    input_path="image_index/", index_name="image_index", store_collection_with_index=True, overwrite=True
)
# docs_retrieval_model.from_index(index_path="image_index") # this caused the error

Code: https://github.com/huggingface/cookbook/blob/main/notebooks/en/multimodal_rag_using_document_retrieval_and_vlms.ipynb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions