langflow
langflow copied to clipboard
Number of requested results 4 cannot be greater than number of elements in index 3
Describe the bug ERROR - Error: Number of requested results 4 cannot be greater than number of elements in index 3
Browser and Version
- Chrome
- 112.0.5615.137
Screenshots image
This was fixed in 76162a9ffa8314013fadb04217e09a688a635e97
It happens because what you are trying to load is not generating at least 4 documents which is the default number of retrieved documents by ChromaDB.
If you fix the split it could help (maybe the separator or the chunk size).
We are working on better tooling for debugging this kind of things.
Is this one already available via pip or should I custom build it? Thanks for the answer!
We'll release a new version today with many fixes and some new features. If you want to run it locally you can clone the dev branch and run make dev build=1and you should be able to check if your flow works properly on this version.