facebookresearch / facebookresearch/faiss
FAISS returns negative ids (not -1)
- Dominant language
- C++
- Stars
- 40.9k
- Forks
- 4.5k
- PR merge metrics
- No merged PRs in 30d
Description
# Summary
Faiss version: 1.7.1
Installed from: pypi
Running on:
- [ ] CPU
- [x] GPU
Interface:
- [ ] C++
- [x] Python
# Reproduction instructions
It is very complicated code so I couldn't share a code snippet but it returns something like
[-7882858908496526721, 148477514, 7318772159358522531, 131445014, -8263696823219615651, 123521031, -5807271324421810311, 124208452, 38032875, 146904364, 139624482, 125867015, 139643914, 125254479, 18606842, 147101967, -8246501689735019874, 119442532, 141874179, 138070620, 130286272, 129548931, 131521583, 107358047, -8528840699497380558, 148568457, 127924406, 60198081, 23002488, 134854969, 38924547, 134703770, 33097768, 146073936, 69678871, 145498691, -6661535923009526919, 145471504, 137858014, 142931410, 137858015, 140687014, 140038207, 74294394]
Contributor guide
Research direction
The report provides no file, test, or entry point and says the reproduction is unavailable. Start by reducing the Python GPU case on FAISS 1.7.1 to a minimal reproduction, then compare returned IDs with valid indices; done means invalid results are no longer produced except for the documented -1 sentinel.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- machine-learning, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100