milvus

package
v2.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MilvusModel

type MilvusModel struct {
	// contains filtered or unexported fields
}

func NewMilvusModel

func NewMilvusModel(name string) *MilvusModel

func (*MilvusModel) Init

func (m *MilvusModel) Init(conf *recconf.AlgoConfig) error

func (*MilvusModel) Run

func (m *MilvusModel) Run(algoData interface{}) (response interface{}, err error)

type MilvusRequest

type MilvusRequest struct {
	TopK           int
	CollectionName string
	VectorField    string
	OutputFields   []string
	Vectors        []entity.Vector
	Partitions     []string
	Expr           string
	MetricType     entity.MetricType
	SearchParams   *MilvusSearchParams
}

func NewMilvusRequest

func NewMilvusRequest() *MilvusRequest

func (*MilvusRequest) AppendVectors

func (r *MilvusRequest) AppendVectors(vectors []float32)

func (*MilvusRequest) SetMetricType

func (r *MilvusRequest) SetMetricType(metricType string)

func (*MilvusRequest) SetSearchParams

func (r *MilvusRequest) SetSearchParams(params map[string]interface{})

type MilvusSearchParams

type MilvusSearchParams struct {
	// contains filtered or unexported fields
}

func (*MilvusSearchParams) Params

func (sp *MilvusSearchParams) Params() map[string]interface{}

Jump to

Keyboard shortcuts

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