github.com/weaviate/weaviate@v1.24.6/entities/additional/group.go (about)

     1  //                           _       _
     2  // __      _____  __ ___   ___  __ _| |_ ___
     3  // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
     4  //  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
     5  //   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
     6  //
     7  //  Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
     8  //
     9  //  CONTACT: hello@weaviate.io
    10  //
    11  
    12  package additional
    13  
    14  import "github.com/go-openapi/strfmt"
    15  
    16  type Group struct {
    17  	ID          int                      `json:"id"`
    18  	GroupedBy   *GroupedBy               `json:"groupedBy"`
    19  	MinDistance float32                  `json:"minDistance"`
    20  	MaxDistance float32                  `json:"maxDistance"`
    21  	Count       int                      `json:"count"`
    22  	Hits        []map[string]interface{} `json:"hits"`
    23  }
    24  
    25  type GroupedBy struct {
    26  	Value string   `json:"value"`
    27  	Path  []string `json:"path"`
    28  }
    29  
    30  type GroupHitAdditional struct {
    31  	ID       strfmt.UUID `json:"id"`
    32  	Vector   []float32   `json:"vector"`
    33  	Distance float32     `json:"distance"`
    34  }