vectorizer

package
v1.23.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassSettings

type ClassSettings interface {
	PropertyIndexed(property string) bool
	VectorizePropertyName(propertyName string) bool
	VectorizeClassName() bool
}

type ObjectVectorizer

type ObjectVectorizer struct{}

func New

func New() *ObjectVectorizer

func (*ObjectVectorizer) TextsOrVector

func (v *ObjectVectorizer) TextsOrVector(ctx context.Context, className string,
	schema interface{}, objDiff *moduletools.ObjectDiff,
	icheck ClassSettings,
) (string, []float32, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL