Open TITC opened 3 years ago
Thanks for your interest. I'm so sorry for the late response. the pre-process about faiss
are involved in this function _add_vecs_with_ids
Thanks for your response, but _add_vecs_with_ids
is called after self._kv_db.put(docs)
, does it not a post-process for docs
in memory syncronize?
I notice there is an update
operation after _add_vecs_with_ids
, however that operation only be called when if len(exist_docs) > 0:
. According to the rule, the latest is the priority, then update it.
Thanks for your interest. I'm so sorry for the late response. the pre-process about
faiss
are involved in this function_add_vecs_with_ids
But in the first time, lmdb
hasn't any data, so no update
operation execute after _add_vecs_with_ids
, could you give any further interpretation? @numb3r3
I am trying to go deeper in this repo but disturbing in this part
If I use
lmdb
as storage backend,_vec_indexer
will be load throughlmdb
when I trigger/search
interface.and when
_init_indexer
finished, the attributeis_trained
is attached to indexer and value istrue
.I reckon there may have some process in
index
process withfaiss
, but what I found isself._kv_db.put(docs)
. It's directly call lmbdput
method to savedocs
without any pre-process aboutfaiss
.Could you give any clue about this part?