WeaviateEx.API.Vectorizers.Img2VecNeural (WeaviateEx v0.7.4)

View Source

Img2Vec-Neural vectorizer configuration.

Uses neural networks to create vector embeddings from images. This module runs locally using ResNet-based models.

Example

Img2VecNeural.new(image_fields: ["image", "thumbnail"])

Summary

Functions

Parse configuration from API response.

Create a new Img2Vec-Neural configuration.

Convert configuration to API format.

Returns the vectorizer name for the API.

Types

t()

@type t() :: %WeaviateEx.API.Vectorizers.Img2VecNeural{
  image_fields: [String.t()] | nil
}

Functions

from_api(map)

@spec from_api(map()) :: t()

Parse configuration from API response.

new(opts \\ [])

@spec new(keyword()) :: t()

Create a new Img2Vec-Neural configuration.

Options

  • :image_fields - List of property names containing image data

to_api(config)

@spec to_api(t()) :: map()

Convert configuration to API format.

vectorizer_name()

@spec vectorizer_name() :: String.t()

Returns the vectorizer name for the API.