[Redis] How to filter by key instead of metadata/field? #29209
ai-learner-00
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using
redis-py
directly, we can use thelimit_ids
method, which will use theINKEYS
redis command. For very large filters (all the chunk ids of multiple documents),INKEYS
is more efficient than filtering based on fields. Is there a way to do it in Langchain when creating a vector store retriever based on Redis?test-max-filter-size.zip
(in my tests, I went up to 500 000 chunk ids and it times out when using a filter over INKEYS)
Beta Was this translation helpful? Give feedback.
All reactions