Find answers from the community

Updated 4 months ago

hey guys! anyone has this same error

hey guys! anyone has this same error trying to use VoyageAI Rerank?

it seems that there is a dependency conflict between llama-index-embeddings-voyageai and llama-index-postprocessor-voyageai-rerank. The former requires a version of voyageai less than 0.2.0, while the latter requires a version greater than or equal to 0.2.1.


Plain Text
 ~  pip install llama-index-postprocessor-voyageai-rerank

Installing collected packages: voyageai, llama-index-postprocessor-voyageai-rerank
Successfully installed llama-index-postprocessor-voyageai-rerank-0.1.2 voyageai-0.2.3
Plain Text
 ~  pip install llama-index-embeddings-voyageai

Installing collected packages: voyageai, llama-index-embeddings-voyageai
Attempting uninstall: voyageai
Found existing installation: voyageai 0.2.3
Uninstalling voyageai-0.2.3:
Successfully uninstalled voyageai-0.2.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
llama-index-postprocessor-voyageai-rerank 0.1.2 requires voyageai<0.3.0,>=0.2.1, but you have voyageai 0.1.7 which is incompatible.
Successfully installed llama-index-embeddings-voyageai-0.1.4 voyageai-0.1.7
L
Y
11 comments
spooky, should be an easy change
@Logan M okay, but how should I fix it? because if I install install "llama-index-postprocessor-voyageai-rerank" requires voyageai<0.3.0,>=0.2.1 and then if I install "llama-index-embeddings-voyageai" requires voyageai<0.2.0,>=0.1.6. So both libraries use different versions of "voyageai" and one of them is incompatible with the other one and therefore I cannot use voyageai rerank. Is there a version of "voyageai" that is compatible with the 2 libraries?
I meant there needs to be a PR to patch up the dependencies of these libraries
I'll probably get to it at some point today
roger that, thanks! if you can please ping me when you're around to the patch
this's the error:
Attachment
image.png
lol thanks for the reminder

Just on a bit of a pr freeze at the moment trying to get the last of v0.11.0 out, then I can get to this
sorry to bother again but have you managed to patch it?😶‍🌫️
if not, would there be any version of “llama-index-postprocessor-voyageai-rerank” and “llama-index-embeddings-voyageai” that are compatible with the “voyageai” version?
pip install llama-index-embeddings-voyageai>=0.2.1
oh thank you so much!! it works
Add a reply
Sign up and join the conversation on Discord