Return distinct result

let’s say I have embeded the same document twice so every chunk would bet existed twice with the same vector and same meta-data, how could I return the distinct result using such the given query?
Get {
sort: {path: “value”, order:desc},
limit:400 ) {

Hi @KarimNMG :wave:

You could use the group by feature for this I think. The syntax is a little tricky, but it allows you to group responses by the number of objects per group.

So you could specify the objects to be grouped by whatever the unique field is, and specify objectsPerGroup as 1 and groups as the maximum number of desired outputs.

Does that work?

Thanks @jphwang for your response I will try it then tell you.

Thanks @jphwang ! that’s really helped me.

1 Like