vectorizer

package
v1.24.26 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: BSD-3-Clause Imports: 5 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
	Properties() []string
}

type ObjectVectorizer

type ObjectVectorizer struct{}

func New

func New() *ObjectVectorizer

func (*ObjectVectorizer) TextsOrVector

func (v *ObjectVectorizer) TextsOrVector(ctx context.Context, className string,
	comp moduletools.VectorizablePropsComparator, icheck ClassSettings, targetVector string,
) (string, []float32)

func (*ObjectVectorizer) TextsOrVectorWithTitleProperty added in v1.24.0

func (v *ObjectVectorizer) TextsOrVectorWithTitleProperty(ctx context.Context, className string,
	comp moduletools.VectorizablePropsComparator, icheck ClassSettings, titlePopertyName string,
	targetVector string,
) (string, string, []float32)

Jump to

Keyboard shortcuts

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