additional

package
v1.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertaintyToDist

func CertaintyToDist(certainty float64) (dist float64)

func CertaintyToDistPtr

func CertaintyToDistPtr(maybeCertainty *float64) (distPtr *float64)

func DistToCertainty

func DistToCertainty(dist float64) (certainty float64)

Types

type Classification

type Classification struct {
	BasedOn          []string        `json:"basedOn"`
	ClassifiedFields []string        `json:"classifiedFields"`
	Completed        strfmt.DateTime `json:"completed,omitempty"`
	ID               strfmt.UUID     `json:"id,omitempty"`
	Scope            []string        `json:"scope"`
}

type Group added in v1.19.0

type Group struct {
	ID          int                      `json:"id"`
	GroupedBy   *GroupedBy               `json:"groupedBy"`
	MinDistance float32                  `json:"minDistance"`
	MaxDistance float32                  `json:"maxDistance"`
	Count       int                      `json:"count"`
	Hits        []map[string]interface{} `json:"hits"`
}

type GroupHitAdditional added in v1.19.0

type GroupHitAdditional struct {
	ID       strfmt.UUID `json:"id"`
	Vector   []float32   `json:"vector"`
	Distance float32     `json:"distance"`
}

type GroupedBy added in v1.19.0

type GroupedBy struct {
	Value string   `json:"value"`
	Path  []string `json:"path"`
}

type Properties

type Properties struct {
	Classification     bool                   `json:"classification"`
	RefMeta            bool                   `json:"refMeta"`
	Vector             bool                   `json:"vector"`
	Vectors            []string               `json:"vectors"`
	Certainty          bool                   `json:"certainty"`
	ID                 bool                   `json:"id"`
	CreationTimeUnix   bool                   `json:"creationTimeUnix"`
	LastUpdateTimeUnix bool                   `json:"lastUpdateTimeUnix"`
	ModuleParams       map[string]interface{} `json:"moduleParams"`
	Distance           bool                   `json:"distance"`
	Score              bool                   `json:"score"`
	ExplainScore       bool                   `json:"explainScore"`
	IsConsistent       bool                   `json:"isConsistent"`
	Group              bool                   `json:"group"`

	// The User is not interested in returning props, we can skip any costly
	// operation that isn't required.
	NoProps bool `json:"noProps"`

	// ReferenceQuery is used to indicate that a search
	// is being conducted on behalf of a referenced
	// property. for example: this is relevant when a
	// where filter operand is passed in with a path to
	// a referenced class, rather than a path to one of
	// its own props.
	//
	// The reason we need this indication is that
	// without it, the sub-Search which is
	// conducted to extract the reference propValuePair
	// is conducted with the pagination set to whatever
	// the QueryMaximumResults. if this value is set low
	// relative to the number of objects being searched,
	// weaviate will be unable to find enough results to
	// make any comparisons, and erroneously returns
	// empty, or with fewer results than expected.
	ReferenceQuery bool `json:"-"`
}

type ReplicationProperties

type ReplicationProperties struct {
	// ConsistencyLevel indicates how many nodes should
	// respond to a request before it is considered
	// successful. Can be "ONE", "QUORUM", or "ALL"
	//
	// This is only relevant for a replicated
	// class
	ConsistencyLevel string

	// NodeName is the node which is expected to
	// fulfill the request
	NodeName string
}

ReplicationProperties are replication-related handles and configurations which allow replication context to pass through different layers of abstraction, usually initiated via client requests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL