Documentation ¶
Index ¶
- Constants
- func Init(bc base.Component) *component
- type BatchUpsertInput
- type BatchUpsertOutput
- type CreateCollectionInput
- type CreateCollectionOutput
- type CreateCollectionReq
- type CreateCollectionResp
- type CreateIndexInput
- type CreateIndexOutput
- type CreateIndexReq
- type CreateIndexResp
- type CreatePartitionInput
- type CreatePartitionOutput
- type CreatePartitionReq
- type CreatePartitionResp
- type Data
- type DataDescribe
- type DeleteInput
- type DeleteOutput
- type DeleteReq
- type DeleteResp
- type DescribeCollection
- type DescribeCollectionReq
- type DescribeCollectionResp
- type DropCollectionInput
- type DropCollectionOutput
- type DropCollectionReq
- type DropCollectionResp
- type DropIndexInput
- type DropIndexOutput
- type DropIndexReq
- type DropIndexResp
- type DropPartitionInput
- type DropPartitionOutput
- type DropPartitionReq
- type DropPartitionResp
- type Field
- type LoadCollectionReq
- type LoadCollectionResp
- type ReleaseCollectionReq
- type ReleaseCollectionResp
- type Result
- type SearchInput
- type SearchOutput
- type SearchReq
- type SearchResp
- type UpsertInput
- type UpsertOutput
- type UpsertReq
- type UpsertResp
Constants ¶
View Source
const ( TaskVectorSearch = "TASK_VECTOR_SEARCH" TaskUpsert = "TASK_UPSERT" TaskBatchUpsert = "TASK_BATCH_UPSERT" TaskDelete = "TASK_DELETE" TaskCreateCollection = "TASK_CREATE_COLLECTION" TaskDropCollection = "TASK_DROP_COLLECTION" TaskCreatePartition = "TASK_CREATE_PARTITION" TaskDropPartition = "TASK_DROP_PARTITION" TaskCreateIndex = "TASK_CREATE_INDEX" TaskDropIndex = "TASK_DROP_INDEX" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BatchUpsertInput ¶
type BatchUpsertOutput ¶
type BatchUpsertOutput struct {
Status string `json:"status"`
}
type CreateCollectionInput ¶
type CreateCollectionInput struct { CollectionName string `json:"collection-name"` Dimension int `json:"dimension"` MetricType string `json:"metric-type"` IDType string `json:"id-type"` AutoID bool `json:"auto-id"` PrimaryFieldName string `json:"primary-field-name"` VectorFieldName string `json:"vector-field-name"` Schema map[string]any `json:"schema"` IndexParams map[string]any `json:"index-params"` Params map[string]any `json:"params"` }
type CreateCollectionOutput ¶
type CreateCollectionOutput struct {
Status string `json:"status"`
}
type CreateCollectionReq ¶
type CreateCollectionReq struct { CollectionNameReq string `json:"collectionName"` DimensionReq int `json:"dimension"` MetricTypeReq string `json:"metricType"` IDTypeReq string `json:"idType"` AutoIDReq bool `json:"autoID"` PrimaryFieldNameReq string `json:"primaryFieldName"` VectorFieldNameReq string `json:"vectorFieldName"` SchemaReq map[string]any `json:"schema"` IndexParamsReq map[string]any `json:"indexParams"` ParamsReq map[string]any `json:"params"` }
type CreateCollectionResp ¶
type CreateIndexInput ¶
type CreateIndexOutput ¶
type CreateIndexOutput struct {
Status string `json:"status"`
}
type CreateIndexReq ¶
type CreateIndexResp ¶
type CreatePartitionInput ¶
type CreatePartitionOutput ¶
type CreatePartitionOutput struct {
Status string `json:"status"`
}
type CreatePartitionReq ¶
type CreatePartitionResp ¶
type DataDescribe ¶
type DataDescribe struct {
Fields []Field `json:"fields"`
}
type DeleteInput ¶
type DeleteOutput ¶
type DeleteOutput struct {
Status string `json:"status"`
}
type DeleteResp ¶
type DescribeCollection ¶
type DescribeCollection struct {
CollectionName string `json:"collection-name"`
}
type DescribeCollectionReq ¶
type DescribeCollectionReq struct {
CollectionNameReq string `json:"collectionName"`
}
type DescribeCollectionResp ¶
type DescribeCollectionResp struct { Code int `json:"code"` Message string `json:"message"` Data DataDescribe `json:"data"` }
type DropCollectionInput ¶
type DropCollectionInput struct {
CollectionName string `json:"collection-name"`
}
type DropCollectionOutput ¶
type DropCollectionOutput struct {
Status string `json:"status"`
}
type DropCollectionReq ¶
type DropCollectionReq struct {
CollectionNameReq string `json:"collectionName"`
}
type DropCollectionResp ¶
type DropIndexInput ¶
type DropIndexOutput ¶
type DropIndexOutput struct {
Status string `json:"status"`
}
type DropIndexReq ¶
type DropIndexResp ¶
type DropPartitionInput ¶
type DropPartitionOutput ¶
type DropPartitionOutput struct {
Status string `json:"status"`
}
type DropPartitionReq ¶
type DropPartitionResp ¶
type LoadCollectionReq ¶
type LoadCollectionReq struct {
CollectionNameReq string `json:"collectionName"`
}
type LoadCollectionResp ¶
type ReleaseCollectionReq ¶
type ReleaseCollectionReq struct {
CollectionNameReq string `json:"collectionName"`
}
type ReleaseCollectionResp ¶
type SearchInput ¶
type SearchInput struct { CollectionName string `json:"collection-name"` PartitionName string `json:"partition-name"` Vector []float32 `json:"vector"` Filter string `json:"filter"` Limit int `json:"limit"` VectorField string `json:"vector-field"` Offset int `json:"offset"` GroupingField string `json:"grouping-field"` Fields []string `json:"fields"` SearchParams map[string]any `json:"search-params"` }
type SearchOutput ¶
type SearchReq ¶
type SearchReq struct { CollectionName string `json:"collectionName"` PartitionName string `json:"partitionName"` Data [][]float32 `json:"data"` Filter string `json:"filter"` Limit int `json:"limit"` AnnsField string `json:"annsField"` Offset int `json:"offset"` GroupingField string `json:"groupingField"` OutputFields []string `json:"outputFields"` SearchParams map[string]any `json:"searchParams"` }
type SearchResp ¶
type UpsertInput ¶
type UpsertOutput ¶
type UpsertOutput struct {
Status string `json:"status"`
}
type UpsertResp ¶
Click to show internal directories.
Click to hide internal directories.