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

View Source

Text2Vec-JinaAI vectorizer configuration.

Uses Jina AI's embedding models for text vectorization.

Example

Text2VecJinaAI.new(
  model: "jina-embeddings-v2-base-en",
  dimensions: 768
)

Summary

Functions

Parse configuration from API response.

Create a new Text2Vec-JinaAI configuration.

Convert configuration to API format.

Returns the vectorizer name for the API.

Types

t()

@type t() :: %WeaviateEx.API.Vectorizers.Text2VecJinaAI{
  base_url: String.t() | nil,
  dimensions: pos_integer() | nil,
  model: String.t() | nil,
  vectorize_collection_name: boolean()
}

Functions

from_api(map)

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

Parse configuration from API response.

new(opts \\ [])

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

Create a new Text2Vec-JinaAI configuration.

Options

  • :model - Jina model name (e.g., "jina-embeddings-v2-base-en", "jina-embeddings-v3")
  • :dimensions - Output dimensions
  • :base_url - Custom API endpoint
  • :vectorize_collection_name - Include collection name (default: true)

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.