Skip to content

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

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

Open
AnonymousWalker opened this issue Jan 6, 2025 · 0 comments
Open

Comments

@AnonymousWalker
Copy link

AnonymousWalker commented Jan 6, 2025

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

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

1 participant