Open pursuemoon opened 2 months ago
I believe you can use the IndexUpdater
in that case @pursuemoon.
from colbert import IndexUpdater
index_updater = IndexUpdater(config, searcher, checkpoint)
index_updater.add(new_document_collection)
If you want to persist the changes call index_updater.persist_to_disk()
If I have pre-built an index of data and a new document needs to be indexed, is there a way to insert the new document into the existing index so that it becomes a new index?