Skip to content
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

FAISSDocumentStore issue when running Tutorial 6 and Tutorial 7 in the same Colab #38

Open
adieyal opened this issue Jul 14, 2022 · 1 comment

Comments

@adieyal
Copy link

adieyal commented Jul 14, 2022

Describe the bug
Following the tutorial 6 and tutorial 7 in sequence on the same Colab runtime results in a FAISSDocumentStore error due to the presence of the already-created faiss_document_store.db

Related to this issue deepset-ai/haystack#1903

Error message
FAISSDocumentStore: number of documents present in the SQL database does not match the number of embeddings in FAISS

Expected behavior
Either a note in the notebook to mention that this might be expected behaviour and/or additional if...else.. code that automatically handles this.

Additional context
None

To Reproduce
Run Tutorial 6, then copy the relevant bits of code from Tutorial 7 into the same Colab.

FAQ Check

**System: Google Colab

  • OS:
  • GPU/CPU: VT-100
  • Haystack version (commit or version number): 1.6.1rc0
  • DocumentStore: FAISSDocumentStore
  • Reader:
  • Retriever:
@jasontian6666
Copy link

Do I need to remove the faiss_document_store.db every time I want to index a new set of documents? If so, how can I maintain different faiss_document_store.db for different sets of documents, so I can reuse them later?

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

2 participants