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 last year
0
Follow
How can I rank my retrieved documents
How can I rank my retrieved documents
Inactive
0
Follow
b
big_ol_tender
last year
·
How can I rank my retrieved documents (from weaviate) by date (date is stored as a property in weaviate with each doc)
L
b
3 comments
Share
Open in Discord
L
Logan M
last year
Depends on what you mean by rank?
We can sort and filter by date using node-postprocessors
https://gpt-index.readthedocs.io/en/latest/examples/node_postprocessor/RecencyPostprocessorDemo.html
https://gpt-index.readthedocs.io/en/latest/examples/node_postprocessor/TimeWeightedPostprocessorDemo.html#define-recency-postprocessors
b
big_ol_tender
last year
How do I specify the name of the weaviate property to the fixedrecencypostprocessor? Does it only work if the field is called “date”? Also I’m not passing in documents, I’m using an existing weaviatev vector store
L
Logan M
last year
That's fine, the node post processor works on nodes once they are retrieved
There is a date_key kwarg in the init that you can set to match whichever metadat field your date is stored in
Add a reply
Sign up and join the conversation on Discord
Join on Discord