github.com/weaviate/weaviate@v1.24.6/modules/qna-transformers/additional/models/models.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 models
    13  
    14  // Answer used in qna module to represent
    15  // the answer to a given question
    16  type Answer struct {
    17  	Result        *string  `json:"result,omitempty"`
    18  	Property      *string  `json:"property,omitempty"`
    19  	StartPosition int      `json:"startPosition,omitempty"`
    20  	EndPosition   int      `json:"endPosition,omitempty"`
    21  	Certainty     *float64 `json:"certainty,omitempty"`
    22  	Distance      *float64 `json:"distance,omitempty"`
    23  	HasAnswer     bool     `json:"hasAnswer,omitempty"`
    24  }