Documentation
¶
Overview ¶
Package llm provides LLM provider integration using the iris SDK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmbeddingProvider ¶
func NewEmbeddingProvider(providerType string) (core.EmbeddingProvider, error)
NewEmbeddingProvider creates an iris embedding provider based on the provider type. Returns the provider cast to core.EmbeddingProvider, or an error if the provider doesn't support embeddings.
func NewProvider ¶
NewProvider creates an iris provider based on the provider type. API keys are read from standard environment variables: - openai: OPENAI_API_KEY - anthropic: ANTHROPIC_API_KEY - gemini: GEMINI_API_KEY or GOOGLE_API_KEY - voyageai: VOYAGEAI_API_KEY - ollama: no API key required (local)
Types ¶
type EmbeddingProvider ¶
type EmbeddingProvider = core.EmbeddingProvider
EmbeddingProvider is an alias for core.EmbeddingProvider.
type ProviderType ¶
type ProviderType string
ProviderType identifies the LLM provider.
const ( ProviderOpenAI ProviderType = "openai" ProviderAnthropic ProviderType = "anthropic" ProviderGemini ProviderType = "gemini" ProviderOllama ProviderType = "ollama" ProviderVoyageAI ProviderType = "voyageai" )
Click to show internal directories.
Click to hide internal directories.