Log in
Log into community
Find answers from the community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Inactive
Updated 2 years ago
0
Follow
Ensure nodes appear
Ensure nodes appear
Inactive
0
Follow
At a glance
a
aleks_wordcab
2 years ago
Β·
Is there any way to ensure certain nodes always appear in a vector-search query? For example, in call transcripts, sometimes you want the first and last chunks to be included.
L
a
5 comments
Share
Open in Discord
L
Logan M
2 years ago
Hmm you could maybe do something sneaky if you subclass a new retriever or query engine π€
a
aleks_wordcab
2 years ago
Sneaky is good! @Logan M
a
aleks_wordcab
2 years ago
Yeah I'll check those out, and if you have any suggestions / code samples, these would be helpful as well
L
Logan M
2 years ago
Here's an example of a custom retriever
You can do anything you want here, as long as you return nodes πͺ
https://github.com/jerryjliu/llama_index/blob/main/examples/query/CustomRetrievers.ipynb
a
aleks_wordcab
2 years ago
@Logan M sweet thank you π
Add a reply
Sign up and join the conversation on Discord
Join on Discord