Open winstonww opened 2 years ago
After looking into this, since question and context uses different transformer models and have different model paths/repos, we can fix the issue by setting the model path to facebook/dpr-ctx_encoder-single-nq-base
when initializing the context encoder.
After looking into this, since question and context uses different transformer models and have different model paths/repos, we can fix the issue by setting the model path to
facebook/dpr-ctx_encoder-single-nq-base
when initializing the context encoder.
please add this info in the executor readme or raise a meaningful exception message
In a discussion with @JoanFM, it was found that the DPRTextEncoder failed to start if encoding type is
context
.An minimal example to illustrate this:
Results: