Is it possible to perform a fusion query when with_payload
is true?
#4904
-
Based on #4476 (comment) it seems like it should be possible to do something like this, a fusion query where I specify client.query('test', {
prefetch: [
{
query: sparse,
using: 'sparse',
limit: 20
},
{
query: embedding,
using: 'dense',
limit: 20
}
],
query: {
fusion: 'rrf',
with_payload: true
}
}); However, this doesn't return the payload in the result. Is there a way to perform this kind of 'hybrid' query, apply fusion, and receive the payload all at once? |
Beta Was this translation helpful? Give feedback.
Answered by
chrisvariety
Aug 17, 2024
Replies: 1 comment
-
Figured it out in case anyone else has this same problem: client.query('test', {
prefetch: [
{
query: sparse,
using: 'sparse',
limit: 20
},
{
query: embedding,
using: 'dense',
limit: 20
}
],
query: {
fusion: 'rrf'
},
with_payload: true
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chrisvariety
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out in case anyone else has this same problem: