weaviate / typescript-client

Official Weaviate TypeScript Client
https://www.npmjs.com/package/weaviate-client
BSD 3-Clause "New" or "Revised" License
65 stars 23 forks source link

Support `groupby` operations in `bm25` and `hybrid` queries #125

Closed tsmith023 closed 4 months ago

tsmith023 commented 5 months ago

The capability of grouping the results of a bm25 or hybrid search by a property will be coming in 1.25 through https://github.com/weaviate/weaviate/pull/4477

The v2 GraphQLGetter builder method should therefore be refactored to allow calling withGroupBy alongside withBm25 and withHybrid

If this is already permitted by the client in that the query will be sent regardless of whether the server can support the feature, then no changes need to be made as the client will simply work with the new Weaviate version and this issue can be closed