Documentation
¶
Index ¶
- type BatchClient
- type BatchVectorizer
- func (v *BatchVectorizer[T]) Object(ctx context.Context, object *models.Object, cfg moduletools.ClassConfig, ...) (T, models.AdditionalProperties, error)
- func (v *BatchVectorizer[T]) ObjectBatch(ctx context.Context, objects []*models.Object, skipObject []bool, ...) ([]T, map[int]error)
- func (v *BatchVectorizer[T]) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig) (T, error)
- type MetaProvider
- type TextVectorizer
- type TextVectorizerBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchClient ¶
type BatchClient[T dto.Embedding] interface { batch.BatchClient[T] VectorizeQuery(ctx context.Context, input []string, cfg moduletools.ClassConfig) (*modulecomponents.VectorizationResult[T], error) }
type BatchVectorizer ¶
func New ¶
func New[T dto.Embedding](client BatchClient[T], batchVectorizer *batch.Batch[T], tokenizerFunc batch.TokenizerFuncType) *BatchVectorizer[T]
func (*BatchVectorizer[T]) Object ¶
func (v *BatchVectorizer[T]) Object(ctx context.Context, object *models.Object, cfg moduletools.ClassConfig, cs objectsvectorizer.ClassSettings, ) (T, models.AdditionalProperties, error)
func (*BatchVectorizer[T]) ObjectBatch ¶
func (v *BatchVectorizer[T]) ObjectBatch(ctx context.Context, objects []*models.Object, skipObject []bool, cfg moduletools.ClassConfig, ) ([]T, map[int]error)
func (*BatchVectorizer[T]) Texts ¶
func (v *BatchVectorizer[T]) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig, ) (T, error)
type MetaProvider ¶
type TextVectorizer ¶
type TextVectorizer[T dto.Embedding] interface { Object(ctx context.Context, object *models.Object, cfg moduletools.ClassConfig) (T, models.AdditionalProperties, error) Texts(ctx context.Context, input []string, cfg moduletools.ClassConfig) (T, error) }
type TextVectorizerBatch ¶
type TextVectorizerBatch[T dto.Embedding] interface { Texts(ctx context.Context, input []string, cfg moduletools.ClassConfig) (T, error) Object(ctx context.Context, object *models.Object, cfg moduletools.ClassConfig, cs objectsvectorizer.ClassSettings) (T, models.AdditionalProperties, error) ObjectBatch(ctx context.Context, objects []*models.Object, skipObject []bool, cfg moduletools.ClassConfig) ([]T, map[int]error) }
Click to show internal directories.
Click to hide internal directories.