Open gich2009 opened 2 months ago
To address the dependency conflict issue you're encountering with llama-index-vector-stores-google
and llama-index-embeddings-google
due to google-generativeai
version constraints, you can try the following steps:
Update pip to the latest version to improve dependency resolution:
pip install --upgrade pip
Consider using Anaconda for managing packages and dependencies, which might resolve conflicts that pip struggles with. Anaconda can be downloaded from here.
Manually adjust version constraints in your environment. This involves either loosening the range of package versions specified or removing specific package versions to allow pip to attempt to solve the dependency conflict.
If using Poetry, you can override the version of google-generativeai
to a specific version that is compatible with all your packages by adding an overrides
section in your pyproject.toml
:
[tool.poetry.overrides]
"google-generativeai" = "0.4.3"
Then, run poetry update
to apply the changes.
Ensure to test your application thoroughly after making these adjustments to confirm there are no runtime issues with the new setup.
@gich2009 I'm unable to test googles services. If you cam test that the latest Google packages do not break things for vector-stores-google, and make a PR, that would be extremely appreciated
Alright @logan-markewich. Will take a look when I get the chance.
Bug Description
llama-index-embeddings-google and llama-index-vector-stores-google depend on google-generativeai<0.4.0 and >=0.3.2
Whereas llama-index-embeddings-gemini 0.1.6 depends on google-generativeai<0.5.0 and >=0.4.1 llama-index-llms-gemini 0.1.7 depends on google-generativeai<0.5.0 and >=0.4.1 llama-index-llms-palm 0.1.5 depends on google-generativeai<0.5.0 and >=0.4.1 llama-index-multi-modal-llms-gemini 0.1.5 depends on google-generativeai<0.5.0 and >=0.4.1
This causes an issue with the pip resolver
Version
llama-index-vector-stores-google 0.1.5 and llama-index-embeddings-google 0.1.4
Steps to Reproduce
Just installl the latest packages for vector-stores-google and embeddings-google
Relevant Logs/Tracbacks