Documentation
¶
Index ¶
- type BatchTextVectorizer
- func (v *BatchTextVectorizer[T]) Object(ctx context.Context, obj *models.Object, cfg moduletools.ClassConfig) (T, models.AdditionalProperties, error)
- func (v *BatchTextVectorizer[T]) Objects(ctx context.Context, objs []*models.Object, cfg moduletools.ClassConfig) ([]T, models.AdditionalProperties, error)
- func (v *BatchTextVectorizer[T]) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig) (T, error)
- type Client
- type Vectorizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchTextVectorizer ¶
func (*BatchTextVectorizer[T]) Object ¶
func (v *BatchTextVectorizer[T]) Object(ctx context.Context, obj *models.Object, cfg moduletools.ClassConfig, ) (T, models.AdditionalProperties, error)
func (*BatchTextVectorizer[T]) Objects ¶
func (v *BatchTextVectorizer[T]) Objects(ctx context.Context, objs []*models.Object, cfg moduletools.ClassConfig, ) ([]T, models.AdditionalProperties, error)
func (*BatchTextVectorizer[T]) Texts ¶
func (v *BatchTextVectorizer[T]) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig, ) (T, error)
type Client ¶
type Client[T dto.Embedding] interface { Vectorize(ctx context.Context, input []string, cfg moduletools.ClassConfig, ) (*modulecomponents.VectorizationResult[T], *modulecomponents.RateLimits, int, error) VectorizeQuery(ctx context.Context, input []string, cfg moduletools.ClassConfig, ) (*modulecomponents.VectorizationResult[T], error) }
type Vectorizer ¶
type Vectorizer[T dto.Embedding] interface { Texts(ctx context.Context, input []string, cfg moduletools.ClassConfig, ) (T, error) Object(ctx context.Context, obj *models.Object, cfg moduletools.ClassConfig, ) (T, models.AdditionalProperties, error) Objects(ctx context.Context, objs []*models.Object, cfg moduletools.ClassConfig, ) ([]T, models.AdditionalProperties, error) }
func NewWithAltNames ¶
Click to show internal directories.
Click to hide internal directories.