mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 07:40:12 +01:00
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:
parent
f1cbff0fb7
commit
510caa576b
9 changed files with 122 additions and 91 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue