Skip to content

Commit

Permalink
Add support for Group
Browse files Browse the repository at this point in the history
  • Loading branch information
antas-marcin committed Nov 26, 2024
1 parent 8f7ae87 commit 5a04c7b
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.weaviate.client.v1.graphql.model;

import com.google.gson.annotations.SerializedName;
import java.util.List;
import java.util.Map;
import lombok.Getter;

Expand All @@ -21,17 +22,47 @@ public static class Additional {
Float[] vector;
Map<String, Float[]> vectors;
Generate generate;
Group group;

@Getter
public static class Generate {
String singleResult;
String groupedResult;
String error;
Debug debug;

@Getter
public static class Debug {
String prompt;
}
}

@Getter
public static class Group {
public String id;
public GroupedBy groupedBy;
public Integer count;
public Float maxDistance;
public Float minDistance;
public List<GroupHit> hits;

@Getter
public static class GroupedBy {
public String value;
public String[] path;
}

@Getter
public static class GroupHit {
// Properties go here
AdditionalGroupHit _additional;

@Getter
public static class AdditionalGroupHit {
String id;
Float distance;
}
}
}
}
}

0 comments on commit 5a04c7b

Please sign in to comment.