A method to fine-tune the black-box OpenAI embedding to improve the retrieval performance 📈.
📝 See our paper Mafin: Enhancing Black-Box Embeddings with Model Augmented Fine-Tuning for a detailed introduction to this method.
Other training details and dataset construction can be found in LlamaIndex's Blog.
pip install -r requirements.txtcd ./finetune
python train.pycd ./finetune
python fae_train.pyThe comparison of the evaluation results can be found in the jupyter notebook 📊.