Find answers from the community

Updated 7 months ago

Im using FlagEmbeddingReranker but I am

At a glance

A community member is using the FlagEmbeddingReranker but is getting an error stating that they need to install the FlagReranker package. They have already tried installing the package from the provided GitHub link, but the error persists. Other community members suggest that the issue may be related to the environment or the need to restart the session if running on Colab. The community members also discuss whether the reranker runs locally, the availability of other rerankers, and the possibility of using a Hugging Face model as a reranker. After extensive debugging, one community member found that they needed to install the peft library separately to resolve the issue.

Useful resources
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