dto

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultTargetCombinationType = Minimum

no weights are set for default, needs to be added if this is changed to something else

Variables

This section is empty.

Functions

This section is empty.

Types

type GetParams

type GetParams struct {
	Filters                 *filters.LocalFilter
	ClassName               string
	Pagination              *filters.Pagination
	Cursor                  *filters.Cursor
	Sort                    []filters.Sort
	Properties              search.SelectProperties
	NearVector              *searchparams.NearVector
	NearObject              *searchparams.NearObject
	KeywordRanking          *searchparams.KeywordRanking
	HybridSearch            *searchparams.HybridSearch
	GroupBy                 *searchparams.GroupBy
	TargetVector            string
	TargetVectorCombination *TargetCombination
	Group                   *GroupParams
	ModuleParams            map[string]interface{}
	AdditionalProperties    additional.Properties
	ReplicationProperties   *additional.ReplicationProperties
	Tenant                  string
	IsRefOrigin             bool // is created by ref filter
}

type GroupParams

type GroupParams struct {
	Strategy string
	Force    float32
}

type TargetCombination added in v1.26.0

type TargetCombination struct {
	// just one of these can be set, precedence in order
	Type    TargetCombinationType
	Weights map[string]float32
}

type TargetCombinationType added in v1.26.0

type TargetCombinationType int
const (
	Sum TargetCombinationType = iota
	Average
	Minimum
	ManualWeights
	RelativeScore
)

Jump to

Keyboard shortcuts

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