Versions in this module Expand all Collapse all v0 v0.0.1 Jan 20, 2025 Changes in this version + const QuantizeTypeInt8 + type Client interface + Create func(ctx context.Context, collectionName string, configs ...CollectionConfig) (Response, error) + CreateServing func(ctx context.Context, collectionName string, configs ...CollectionConfig) (Response, error) + Delete func(ctx context.Context, collectionName string) (Response, error) + Desc func(ctx context.Context, collectionName string) (CollectionDescResponse, error) + GetCollection func(collectionName string) Collection + List func(ctx context.Context) (CollectionListResponse, error) + Stats func(ctx context.Context, collectionName string) (CollectionStatsResponse, error) + func NewClient(ctx context.Context, clientName ...string) Client + type Collection interface + Create func(ctx context.Context, partitionName string) (Response, error) + CreateServing func(ctx context.Context, partitionName string) (Response, error) + Delete func(ctx context.Context, partitionName string) (Response, error) + Desc func(ctx context.Context, partitionName string) (PartitionDescResponse, error) + GetPartition func(partitionName ...string) Partition + List func(ctx context.Context) (PartitionListResponse, error) + Stats func(ctx context.Context, partitionName string) (PartitionStatsResponse, error) + type CollectionConfig func(*collectionCreateRequest) + func WithDataType(dataType DataType) CollectionConfig + func WithDimension(dimension int) CollectionConfig + func WithExtraParams(configs ...ExtraParamsConfig) CollectionConfig + func WithFieldSchema(name string, fieldType FieldType) CollectionConfig + func WithMetric(metric Metric) CollectionConfig + func WithVectorSchema(name string, dimension int, configs ...VectorSchemaConfig) CollectionConfig + type CollectionDescResponse interface + GetOutput func() CollectionMeta + type CollectionListResponse interface + GetOutput func() []string + type CollectionMeta interface + GetDataType func() DataType + GetDimension func() int + GetFieldsSchema func() map[string]FieldType + GetMetric func() Metric + GetName func() string + GetPartitionStatus func() map[string]Status + GetStatus func() Status + GetVectorsSchema func() map[string]VectorSchema + type CollectionStats interface + GetIndexCompleteness func() float64 + GetPartitions func() map[string]PartitionStats + GetTotalDocCount func() int64 + type CollectionStatsResponse interface + GetOutput func() CollectionStats + type DataType string + const DataTypeFloat + const DataTypeInt + type Doc interface + GetFields func() map[string]any + GetId func() string + GetScore func() float32 + GetSparseVector func() map[int32]float32 + GetVector func() []float32 + GetVectors func() map[string][]float32 + type DocOp string + const DocOpDelete + const DocOpInsert + const DocOpUpdate + const DocOpUpsert + type DocOpResult interface + GetCode func() int + GetDocOp func() DocOp + GetId func() string + GetMessage func() string + type DocumentConfig func(*doc) + func WithField(name string, value any) DocumentConfig + func WithId(id string) DocumentConfig + func WithSchemaVector(name string, vector ...float32) DocumentConfig + func WithSparseVector(key int32, value float32) DocumentConfig + func WithVector(vector ...float32) DocumentConfig + type DocumentsConfig func(*documentsWriteRequest, func(*doc) bool) + func WithDocument(configs ...DocumentConfig) DocumentsConfig + type DocumentsGroupQueryConfig func(*documentsGroupQueryRequest) + func GroupQueryWithCount(groupCount int) DocumentsGroupQueryConfig + func GroupQueryWithFilter(filter string) DocumentsGroupQueryConfig + func GroupQueryWithId(id string) DocumentsGroupQueryConfig + func GroupQueryWithIncludeVector(includeVector bool) DocumentsGroupQueryConfig + func GroupQueryWithOutputFields(fields ...string) DocumentsGroupQueryConfig + func GroupQueryWithSchemaVector(vectorField string) DocumentsGroupQueryConfig + func GroupQueryWithSparseVector(key int32, value float32) DocumentsGroupQueryConfig + func GroupQueryWithTopk(groupTopk int) DocumentsGroupQueryConfig + func GroupQueryWithVector(vector ...float32) DocumentsGroupQueryConfig + type DocumentsGroupQueryResponse interface + GetOutput func() []Group + type DocumentsQueryConfig func(*documentsQueryRequest) + func QueryWithFilter(filter string) DocumentsQueryConfig + func QueryWithId(id string) DocumentsQueryConfig + func QueryWithIncludeVector(includeVector bool) DocumentsQueryConfig + func QueryWithOutputFields(fields ...string) DocumentsQueryConfig + func QueryWithRrfRanker(rankConstant int) DocumentsQueryConfig + func QueryWithSchemaVector(name string, vector []float32, configs ...VectorQueryConfig) DocumentsQueryConfig + func QueryWithSparseVector(key int32, value float32) DocumentsQueryConfig + func QueryWithTopk(topk int) DocumentsQueryConfig + func QueryWithVector(vector ...float32) DocumentsQueryConfig + func QueryWithVectorQueryParam(configs ...VectorQueryConfig) DocumentsQueryConfig + func QueryWithWeightedRanker(weights map[string]float32) DocumentsQueryConfig + type DocumentsQueryResponse interface + GetOutput func() []Doc + GetUsage func() ResponseUsage + type DocumentsReadResponse interface + GetOutput func() map[string]Doc + GetUsage func() ResponseUsage + type DocumentsWriteResponse interface + GetOutput func() []DocOpResult + GetUsage func() ResponseUsage + type ExtraParamsConfig func(*extraParams) + func WithAutoId(autoId string) ExtraParamsConfig + func WithQuantizeType(quantizeType QuantizeType) ExtraParamsConfig + type FieldType string + const FieldTypeBool + const FieldTypeFloat + const FieldTypeInt + const FieldTypeString + type Group interface + GetDocs func() []Doc + GetGroupId func() string + type Metric string + const MetricCosine + const MetricDotproduct + const MetricEuclidean + type Partition interface + Drop func(ctx context.Context, ids ...string) (DocumentsWriteResponse, error) + DropAll func(ctx context.Context) (DocumentsWriteResponse, error) + Get func(ctx context.Context, ids ...string) (DocumentsReadResponse, error) + GroupQuery func(ctx context.Context, field string, configs ...DocumentsGroupQueryConfig) (DocumentsGroupQueryResponse, error) + Insert func(ctx context.Context, configs ...DocumentsConfig) (DocumentsWriteResponse, error) + Query func(ctx context.Context, configs ...DocumentsQueryConfig) (DocumentsQueryResponse, error) + Update func(ctx context.Context, configs ...DocumentsConfig) (DocumentsWriteResponse, error) + Upsert func(ctx context.Context, configs ...DocumentsConfig) (DocumentsWriteResponse, error) + type PartitionDescResponse interface + GetOutput func() Status + type PartitionListResponse interface + GetOutput func() []string + type PartitionStats interface + GetTotalDocCount func() int64 + type PartitionStatsResponse interface + GetOutput func() PartitionStats + type QuantizeType string + type Response interface + GetCode func() int + GetMessage func() string + GetRequestId func() string + type ResponseUsage interface + GetReadUnits func() int + GetWriteUnits func() int + type Status string + const StatusDropping + const StatusError + const StatusInitialized + const StatusServing + type VectorQueryConfig func(*vectorQuery) + func QueryWithEf(ef int) VectorQueryConfig + func QueryWithLinear(isLinear bool) VectorQueryConfig + func QueryWithNumCandidates(numCandidates int) VectorQueryConfig + func QueryWithRadius(radius float32) VectorQueryConfig + type VectorSchema interface + GetDataType func() DataType + GetDimension func() int + GetMetric func() Metric + GetQuantizeType func() QuantizeType + type VectorSchemaConfig func(*vectorSchemaParam) + func WithVectorDataType(dataType DataType) VectorSchemaConfig + func WithVectorMetric(metric Metric) VectorSchemaConfig + func WithVectorQuantizeType(quantizeType QuantizeType) VectorSchemaConfig