Documentation
¶
Overview ¶
Package embedding provides concrete Embedder implementations for generating text embedding vectors. Supports OpenAI, Google, and OpenAI-compatible endpoints (Ollama, LiteLLM, etc.).
Embedders satisfy the resume.Embedder interface and can be used for resume embedding, query embedding, and semantic similarity search.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Provider name: "openai", "google", "openai-compat", "litellm", "none"
Provider string `toml:"provider" json:"provider"`
// Model name (e.g., "text-embedding-3-small", "text-embedding-004")
Model string `toml:"model" json:"model"`
// APIKey for the embedding provider
APIKey string `toml:"api_key" json:"api_key"`
// BaseURL for custom endpoints (OpenAI-compatible providers)
BaseURL string `toml:"base_url" json:"base_url"`
}
Config holds configuration for creating an Embedder.
Click to show internal directories.
Click to hide internal directories.