Documentation
¶
Index ¶
- type BatchCLIPVectorizer
- func (v *BatchCLIPVectorizer[T]) Object(ctx context.Context, obj *models.Object, cfg moduletools.ClassConfig) (T, models.AdditionalProperties, error)
- func (v *BatchCLIPVectorizer[T]) Objects(ctx context.Context, objects []*models.Object, cfg moduletools.ClassConfig) ([]T, models.AdditionalProperties, error)
- func (v *BatchCLIPVectorizer[T]) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig) (T, error)
- func (v *BatchCLIPVectorizer[T]) VectorizeImage(ctx context.Context, id, image 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 BatchCLIPVectorizer ¶
func (*BatchCLIPVectorizer[T]) Object ¶
func (v *BatchCLIPVectorizer[T]) Object(ctx context.Context, obj *models.Object, cfg moduletools.ClassConfig, ) (T, models.AdditionalProperties, error)
func (*BatchCLIPVectorizer[T]) Objects ¶
func (v *BatchCLIPVectorizer[T]) Objects(ctx context.Context, objects []*models.Object, cfg moduletools.ClassConfig, ) ([]T, models.AdditionalProperties, error)
func (*BatchCLIPVectorizer[T]) Texts ¶
func (v *BatchCLIPVectorizer[T]) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig, ) (T, error)
func (*BatchCLIPVectorizer[T]) VectorizeImage ¶
func (v *BatchCLIPVectorizer[T]) VectorizeImage(ctx context.Context, id, image string, cfg moduletools.ClassConfig, ) (T, error)
type Client ¶
type Client[T dto.Embedding] interface { VectorizeImages(ctx context.Context, images []string, cfg moduletools.ClassConfig, ) (*modulecomponents.VectorizationCLIPResult[T], error) VectorizeQuery(ctx context.Context, texts []string, cfg moduletools.ClassConfig, ) (*modulecomponents.VectorizationCLIPResult[T], error) Vectorize(ctx context.Context, texts, images []string, cfg moduletools.ClassConfig, ) (*modulecomponents.VectorizationCLIPResult[T], error) }
type Vectorizer ¶
type Vectorizer[T dto.Embedding] interface { VectorizeImage(ctx context.Context, id, image string, cfg moduletools.ClassConfig, ) (T, error) 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.