weaviate / weaviate

Weaviate is an open-source vector database that stores both objects and vectors, allowing for the combination of vector search with structured filtering with the fault tolerance and scalability of a cloud-native database​.
https://weaviate.io/developers/weaviate/
BSD 3-Clause "New" or "Revised" License
10.68k stars 736 forks source link

Support `groupBy` in `hybrid` search queries #3408

Closed danielknode closed 1 month ago

danielknode commented 1 year ago

Using groupBy within a Get query to back out to a higher "Document" granularity when doing searches is an extremely helpful concept that drastically simplifies crazy client-side code. However, right now, hybrid search is not supported with groupBy. It is limited to near<Media> searches. From my perspective, hybrid searches are almost always superior to vector searches. So this causes a situation where users need to choose which feature is more valuable to them since they are mutually exclusive.

Feature request: Add support for using groupBy for hybrid searches.

rryan2 commented 11 months ago

please

gopidon commented 11 months ago

+1. In version 1.21.2, this combination was erroring out. In 1.21.4, there is no error but looks like groupBy is ignored when combined with hybrid.

dudanogueira commented 1 month ago

Hi! This was added in 1.25+ https://weaviate.io/developers/weaviate/search/hybrid#group-results

Closing this issue! Thanks!