Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with LLava when trying to import generators #64

Open
Lord-Psarris opened this issue Oct 4, 2024 · 0 comments
Open

Issue with LLava when trying to import generators #64

Lord-Psarris opened this issue Oct 4, 2024 · 0 comments

Comments

@Lord-Psarris
Copy link

I keep getting an error with the Llava import when trying to import anything from FastRAG. I first noticed it when trying to setup fastrag for a project. It occurs when importing rankers, generators and most features I've tested

Details:

  • Python version = Python 3.8.10
  • FastRAG version = fastrag-3.0.2
  • Code Sample:
from fastrag.rankers import IPEXBiEncoderSimilarityRanker
  • Error:
Traceback (most recent call last):
  File "app.py", line 5, in <module>
    from fastrag.rankers import IPEXBiEncoderSimilarityRanker
  File "/home/emmanuel/MARKETPLACE/.venv/lib/python3.8/site-packages/fastrag/__init__.py", line 2, in <module>
    from fastrag import generators, rankers, retrievers, stores
  File "/home/emmanuel/MARKETPLACE/.venv/lib/python3.8/site-packages/fastrag/generators/__init__.py", line 4, in <module>
    from .llava import LlavaHFGenerator
  File "/home/emmanuel/MARKETPLACE/.venv/lib/python3.8/site-packages/fastrag/generators/llava.py", line 24, in <module>
    class LlavaHFGenerator(HuggingFaceLocalGenerator):
  File "/home/emmanuel/MARKETPLACE/.venv/lib/python3.8/site-packages/fastrag/generators/llava.py", line 115, in LlavaHFGenerator
    images: list[str] = None,
TypeError: 'type' object is not subscriptable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant