I am trying to return objects grouped by a simple field and have had no luck. Any variation I have tried always seems to essentially ignore the group by and return according to the rest of the query. The “_additional” field is returned as None. What am I missing?
result = client.query.get("Chunks", ["text"]) \
.with_bm25(query="what is cybersecurity") \
.with_group_by(["page"],groups=2,objects_per_group=2) \
.with_additional(
"""
group {
id
groupedBy {
path
value
}
count
}
"""
) \
.with_limit(10) \
.do()