Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomProvider ¶
type CustomProvider struct {
// contains filtered or unexported fields
}
CustomProvider is a generic OpenAI-compatible embedding provider. Works with OpenRouter, Together AI, Voyage AI, Mistral, Cohere, Azure OpenAI, Fireworks, Anyscale, Groq, DeepInfra, and any other API that implements the OpenAI /v1/embeddings endpoint.
func NewCustom ¶
func NewCustom(baseURL, apiKey, model string, dims int, headers map[string]string) *CustomProvider
func (*CustomProvider) Dimensions ¶
func (p *CustomProvider) Dimensions() int
func (*CustomProvider) EmbedBatch ¶
type GeminiProvider ¶
type GeminiProvider struct {
// contains filtered or unexported fields
}
func (*GeminiProvider) Close ¶
func (p *GeminiProvider) Close() error
func (*GeminiProvider) Dimensions ¶
func (p *GeminiProvider) Dimensions() int
func (*GeminiProvider) EmbedBatch ¶
type OllamaProvider ¶
type OllamaProvider struct {
// contains filtered or unexported fields
}
func NewOllama ¶
func NewOllama(baseURL, model string, dims int) *OllamaProvider
func (*OllamaProvider) Dimensions ¶
func (p *OllamaProvider) Dimensions() int
func (*OllamaProvider) EmbedBatch ¶
type OpenAIProvider ¶
type OpenAIProvider struct {
// contains filtered or unexported fields
}
func NewOpenAI ¶
func NewOpenAI(apiKey, model, baseURL string) *OpenAIProvider
func (*OpenAIProvider) Dimensions ¶
func (p *OpenAIProvider) Dimensions() int
func (*OpenAIProvider) EmbedBatch ¶
Click to show internal directories.
Click to hide internal directories.