Skip to content

Latest commit

 

History

History
47 lines (24 loc) · 848 Bytes

README.md

File metadata and controls

47 lines (24 loc) · 848 Bytes

Azure OpenAI API ReRank vs Colbert Rerank

Introduction

1.Clone this repo.

2.Change the values in the .env file to your own values.

mv .env.example .env

3.Install dependencies using the following command:

conda create -c conda-forge -n azure-openai-reranker python streamlit langchain chromadb transformers torch langchain-chroma langchain-community pypdf langchain-openai python-dotenv tiktoken

4.For MacOS, you may use the following command:

conda install pytorch torchvision torchaudio -c pytorch-nightly

5.Run the App

conda activate azure-openai-reranker

streamlit run app.py

Sample Screenshots

sample

References

rag-reranking-gpt-colbert.ipynb