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{}
Click to show internal directories.
Click to hide internal directories.