AnswerDotAI / AnswerDotAI/RAGatouille

faiss-cpu faiss-gpu issue

Open
#184 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
4k
Forks
276
PR merge metrics
No merged PRs in 30d

Description

I encountered this issue when I was trying to index colbert-ir/colbertv2.0:

`WARNING! You have a GPU available, but only `faiss-cpu` is currently installed.
This means that indexing will be slow. To make use of your GPU.
Please install `faiss-gpu` by running:
pip uninstall --y faiss-cpu & pip install faiss-gpu`

I then run the pip command to uninstall faiss-cpu and install faiss-gpu.
Then I got module not found:

` File "/WAVE/users/unix/jnian/.local/lib/python3.9/site-packages/ragatouille/models/colbert.py", line 313, in index
import faiss
ModuleNotFoundError: No module named 'faiss'`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the ColBERT indexing flow described in the issue with the reported faiss-cpu and faiss-gpu installation commands. Inspect ragatouille/models/colbert.py around line 313 and verify the import behavior in that environment; done means GPU-backed indexing no longer fails with ModuleNotFoundError while the CPU-only warning remains accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.