Find answers from the community

Updated 6 months ago

Im using FlagEmbeddingReranker but I am

Im using FlagEmbeddingReranker but I am getting an error:
Cannot import FlagReranker package, please install it: ', 'pip install git+https://github.com/FlagOpen/FlagEmbedding.git'
. Note that I installed the reranker earlier and tried to install the github provided but im still getting the same error
W
a
14 comments
Maybe diff env getting picked ?
i installed it globally not in a venv
If you running this on colab, You may need to restart the session
running locally
it works fine on my machine but then i got this error when using another machine
im importing it using llama_index.postprocessor.flag_embedding_reranker import FlagEmbeddingReranker
this reranker runs locally right? i am trynig mixedbreak-ai reranker but are there a place i can see a list of the rerankers
would i be able to use huggingface for a reranker model?
Yes this runs locally
This requires a lib installation though
But I think since you already installed this, you shouldnt get this error anymore
I just tried it on a third machine and got the same error, I installed identical libraries versions to the one that worked yet still didnt work. I tried installing it after the error but the error keeps saying the same thing
After lots of debugging, I found out that i need to install peft separately lol
Add a reply
Sign up and join the conversation on Discord