Documentation ¶
Index ¶
- func DumpTexts(ctx context.Context, collectionName, namespace string) (map[string]string, error)
- func GetLabels(ctx context.Context, collectionName, namespace, key string) ([]string, error)
- func GetNamespaces(ctx context.Context, collectionName string) ([]string, error)
- func GetText(ctx context.Context, collectionName, namespace, key string) (string, error)
- func GetVector(ctx context.Context, collectionName, namespace, searchMethod, key string) ([]float32, error)
- func Initialize(ctx context.Context)
- func Shutdown(ctx context.Context)
- type CollectionClassificationLabelObject
- type CollectionClassificationResult
- type CollectionClassificationResultObject
- type CollectionMutationResult
- func Delete(ctx context.Context, collectionName, namespace, key string) (*CollectionMutationResult, error)
- func NewCollectionMutationResult(collection, operation, status string, keys []string, err string) *CollectionMutationResult
- func Upsert(ctx context.Context, collectionName, namespace string, keys, texts []string, ...) (*CollectionMutationResult, error)
- type CollectionSearchResult
- func NewCollectionSearchResult(collection, searchMethod, status string, ...) *CollectionSearchResult
- func Search(ctx context.Context, collectionName string, namespaces []string, ...) (*CollectionSearchResult, error)
- func SearchByVector(ctx context.Context, collectionName string, namespaces []string, ...) (*CollectionSearchResult, error)
- type CollectionSearchResultObject
- type SearchMethodMutationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamespaces ¶
func Initialize ¶
Types ¶
type CollectionClassificationLabelObject ¶
func NewCollectionClassificationLabelObject ¶
func NewCollectionClassificationLabelObject(label string, confidence float64) *CollectionClassificationLabelObject
type CollectionClassificationResult ¶
type CollectionClassificationResult struct { Collection string SearchMethod string Status string LabelsResult []*CollectionClassificationLabelObject Cluster []*CollectionClassificationResultObject Error string }
func ClassifyText ¶
func ClassifyText(ctx context.Context, collectionName, namespace, searchMethod, text string) (*CollectionClassificationResult, error)
func NewCollectionClassificationResult ¶
func NewCollectionClassificationResult(collection, searchMethod, status string, labelsResult []*CollectionClassificationLabelObject, cluster []*CollectionClassificationResultObject, err string) *CollectionClassificationResult
type CollectionClassificationResultObject ¶
type CollectionClassificationResultObject struct { Key string Labels []string Distance float64 Score float64 }
func NewCollectionClassificationResultObject ¶
func NewCollectionClassificationResultObject(key string, labels []string, distance, score float64) *CollectionClassificationResultObject
type CollectionMutationResult ¶
type CollectionMutationResult struct { Collection string Operation string Status string Keys []string Error string }
func Delete ¶
func Delete(ctx context.Context, collectionName, namespace, key string) (*CollectionMutationResult, error)
func NewCollectionMutationResult ¶
func NewCollectionMutationResult(collection, operation, status string, keys []string, err string) *CollectionMutationResult
type CollectionSearchResult ¶
type CollectionSearchResult struct { Collection string SearchMethod string Status string Objects []*CollectionSearchResultObject Error string }
func NewCollectionSearchResult ¶
func NewCollectionSearchResult(collection, searchMethod, status string, objects []*CollectionSearchResultObject, err string) *CollectionSearchResult
type CollectionSearchResultObject ¶
type CollectionSearchResultObject struct { Namespace string Key string Text string Labels []string Distance float64 Score float64 }
func ComputeDistance ¶
func ComputeDistance(ctx context.Context, collectionName, namespace, searchMethod, key1, key2 string) (*CollectionSearchResultObject, error)
func NewCollectionSearchResultObject ¶
func NewCollectionSearchResultObject(namespace, key, text string, labels []string, distance, score float64) *CollectionSearchResultObject
type SearchMethodMutationResult ¶
type SearchMethodMutationResult struct { Collection string SearchMethod string Operation string Status string Error string }
func NewSearchMethodMutationResult ¶
func NewSearchMethodMutationResult(collection, searchMethod, operation, status, err string) *SearchMethodMutationResult
func RecomputeIndex ¶
func RecomputeIndex(ctx context.Context, collectionName, namespace, searchMethod string) (*SearchMethodMutationResult, error)
Click to show internal directories.
Click to hide internal directories.