Documentation
¶
Index ¶
- type BatchClient
- type BatchVectorizer
- func (v *BatchVectorizer) Object(ctx context.Context, object *models.Object, cfg moduletools.ClassConfig, ...) ([]float32, models.AdditionalProperties, error)
- func (v *BatchVectorizer) ObjectBatch(ctx context.Context, objects []*models.Object, skipObject []bool, ...) ([][]float32, map[int]error)
- func (v *BatchVectorizer) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig) ([]float32, 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 interface {
batch.BatchClient
VectorizeQuery(ctx context.Context, input []string,
cfg moduletools.ClassConfig) (*modulecomponents.VectorizationResult, error)
}
type BatchVectorizer ¶
type BatchVectorizer struct {
// contains filtered or unexported fields
}
func New ¶
func New(client BatchClient, batchVectorizer *batch.Batch, tokenizerFunc batch.TokenizerFuncType) *BatchVectorizer
func (*BatchVectorizer) Object ¶
func (v *BatchVectorizer) Object(ctx context.Context, object *models.Object, cfg moduletools.ClassConfig, cs objectsvectorizer.ClassSettings, ) ([]float32, models.AdditionalProperties, error)
func (*BatchVectorizer) ObjectBatch ¶
func (v *BatchVectorizer) ObjectBatch(ctx context.Context, objects []*models.Object, skipObject []bool, cfg moduletools.ClassConfig, ) ([][]float32, map[int]error)
func (*BatchVectorizer) Texts ¶
func (v *BatchVectorizer) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig, ) ([]float32, error)
type MetaProvider ¶
type TextVectorizer ¶
type TextVectorizer interface {
Object(ctx context.Context, object *models.Object,
cfg moduletools.ClassConfig) ([]float32, models.AdditionalProperties, error)
Texts(ctx context.Context, input []string,
cfg moduletools.ClassConfig) ([]float32, error)
}
type TextVectorizerBatch ¶
type TextVectorizerBatch interface {
Texts(ctx context.Context, input []string,
cfg moduletools.ClassConfig) ([]float32, error)
Object(ctx context.Context, object *models.Object,
cfg moduletools.ClassConfig, cs objectsvectorizer.ClassSettings) ([]float32, models.AdditionalProperties, error)
ObjectBatch(ctx context.Context, objects []*models.Object, skipObject []bool, cfg moduletools.ClassConfig) ([][]float32, map[int]error)
}
Click to show internal directories.
Click to hide internal directories.