Log in
Log into community
Find answers from the community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Active
Updated 4 days ago
0
Follow
Using metadata filters to filter by dates
Using metadata filters to filter by dates
Active
0
Follow
d
daneeee
4 days ago
Β·
Is it possible to use Metadata filters to filter by dates? Looking at the schema there doesn't seem to be a way to easily match years in a timestamp
L
d
6 comments
Share
Open in Discord
L
Logan M
4 days ago
Hmm, very few vector stores support date filters, so it never got implemented
L
Logan M
4 days ago
Some vector stores allow you to pass in the filters using the actual vector db filter language (elastic search, qdrant, azure ai search)
d
daneeee
4 days ago
ok thanks for the info. I guess I'll have to make sure to separate the year in the metadata if thats something I'd be interesting in filtering on
d
daneeee
4 days ago
and yeah im using the postgres vector store so I guess im outta luck for a more expressive query language
L
Logan M
4 days ago
Would probably be an easy PR to sneak in a
pg_filters
kwarg, similar to qdrant
https://docs.llamaindex.ai/en/stable/examples/vector_stores/Qdrant_using_qdrant_filters/
L
Logan M
4 days ago
Not sure what the input would be actually... I guess a sqlalchemy
where
statement?
Add a reply
Sign up and join the conversation on Discord
Join on Discord