Utilizing Custom Reranker Models
Introduction
As of Layar 1.21 you have the option to use an external reranker for RAG workflows. In order to do so, you will need to have an accessible URL that allows access to the external reranker.
Configuration
- SSH into the environment.
sudo -icd /data/vyasa-volumes/lsand look for the "certara-model-server-pvc"cd model-server-pvc-namecd data/custom_rerankers/- If the custom_rerankers folder doesn't exist, create it
mkdir name of the reranker- cd into the new directory, move the reranker you want into this folder.
vim /data/layar/layar.config- Press i to start editing.
- Add the following
ALL_RERANKER_INFO: '[{"reranker_name":"my-custom-reranker","encoder_type":"transformers"}]'- Make sure the reranker_name is set to the name of the directory you made in step 7
- Restart the stack.
Updated 21 days ago
