Closed psorianom closed 3 years ago
We could indeed add a condition if retriever_type != 'bm25': update_embeddings'
! I just thought it would somehow simplify the mappings and the declaration of the document_store to have an embedding by default. But I did not try to declare an embedding field in the mapping + document_store and make retrievals while leaving the embedding fields empty ...
Hi @Rob192 ,
Why do we need to compute the embeddings even if we are using bm25 ? Is there a reason for that ? Could we do it only if we are actually using sbert (or dpr) ?
https://github.com/etalab-ia/piaf-ml/blob/ffdd609deaac616787f93943fbde12234e809c72/src/evaluation/retriever/retriever_eval_squad.py#L76