Documentation
¶
Overview ¶
Package jina implements the Jina AI embedding backend.
Supports jina-clip-v2 (multimodal: text + image, 1024d), jina-embeddings-v3 (text-only, 1024d with MRL).
Index ¶
Constants ¶
View Source
const ( DefaultModel = "jina-clip-v2" DefaultDimensions = 1024 )
Variables ¶
This section is empty.
Functions ¶
func ModelInfos ¶ added in v0.16.0
ModelInfos returns i18n metadata for Jina embedding models.
Types ¶
type Config ¶
type Config struct {
APIKey string
BaseURL string
Model string
Dimensions int
RPM int
HTTPClient *http.Client
}
Config configures the Jina embedding engine.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine implements embed.EmbedEngine for Jina AI.
func (*Engine) Dimensions ¶
func (*Engine) Embed ¶
Embed produces a vector for text or image content. Jina CLIP v2 supports both text and image in a unified vector space.
func (*Engine) EmbedBatch ¶
EmbedBatch embeds multiple requests sequentially.
func (*Engine) EmbedCapabilities ¶
func (e *Engine) EmbedCapabilities() embed.Capability
EmbedCapabilities implements embed.Describer.
Click to show internal directories.
Click to hide internal directories.