Make qdrant the default vector db (#1285)

* Make qdrant the default vector db

---------

Co-authored-by: Pablo Orgaz <pabloogc@gmail.com>
Co-authored-by: lopagela <lpglm@orange.fr>
This commit is contained in:
Iván Martínez
2023-11-20 16:19:22 +01:00
committed by GitHub
parent f1cbff0fb7
commit 510caa576b
9 changed files with 122 additions and 91 deletions

View File

@@ -207,7 +207,12 @@ class IngestService:
)
# Load the index with store_nodes_override=True to be able to delete them
index = load_index_from_storage(self.storage_context, store_nodes_override=True)
index = load_index_from_storage(
storage_context=self.storage_context,
service_context=self.ingest_service_context,
store_nodes_override=True, # Force store nodes in index and document stores
show_progress=True,
)
# Delete the document from the index
index.delete_ref_doc(doc_id, delete_from_docstore=True)