Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 2 months ago
0
Follow
Filtering in Query Engine using ismatch
Filtering in Query Engine using ismatch
Inactive
0
Follow
n
neutel_
2 months ago
Β·
Hi, is there any way to filter in a query_engine using a ismatch like u can do in the normal search? i need to do a regex filter like "search.ismatch('/,.{group},./', 'groups', 'full', 'any')", the field groups is a comma separated field.
W
n
7 comments
Share
Open in Discord
W
WhiteFang_Jr
2 months ago
This example is for Qdrant Metadata filtering:
https://docs.llamaindex.ai/en/stable/examples/vector_stores/Qdrant_metadata_filter/#qdrant-vector-store-metadata-filter
W
WhiteFang_Jr
edited 2 months ago
For filtering llamaindex provides the following operators:
https://github.com/run-llama/llama_index/blob/227145fb94fcaa4da02d559fc81843fcb2af2b57/llama-index-core/llama_index/core/vector_stores/types.py#L63
You can check which one suits your need
n
neutel_
2 months ago
does the TEXT_MATCH do like regex or lucene parsing cause i dont want it to do partial matches.
also didnt understood the qdrant filtering
n
neutel_
2 months ago
MetadataFilter(key="groups", value="group1", operator=FilterOperator.TEXT_MATCH )
groups = "group1,group2"
like this
n
neutel_
2 months ago
?
n
neutel_
2 months ago
@WhiteFang_Jr
W
WhiteFang_Jr
2 months ago
Hey, not really sure how filters are matched you'll probably have to check it
Add a reply
Sign up and join the conversation on Discord
Join on Discord