Documentation ¶
Index ¶
Constants ¶
View Source
const ( VectorColumnName = "vector" TopKExpansion = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MilvusSearchHandler ¶
type MilvusSearchHandler struct {
// contains filtered or unexported fields
}
MilvusSearchHandler implements Handler interface{}
func NewMilvusSearchHandler ¶
func NewMilvusSearchHandler( client client.Client, vectorDim int, metricType entity.MetricType, nProbe int, collectionName string) MilvusSearchHandler
NewMilvusSearchHandler returns a new MilvusSearchHandler
func (MilvusSearchHandler) Search ¶
func (h MilvusSearchHandler) Search(ctx context.Context, query []float32, topK int) ([]ProductImage, error)
Search implements Handler interface{}
type ProductImage ¶
Click to show internal directories.
Click to hide internal directories.