Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Storage StorageConfig `yaml:"storage"`
Embedding EmbeddingConfig `yaml:"embedding"`
}
func LoadFromPath ¶
type CustomEmbedConfig ¶
type CustomEmbedConfig struct {
BaseURL string `yaml:"base_url"` // Required. e.g. https://openrouter.ai/api/v1
APIKey string `yaml:"api_key"`
Model string `yaml:"model"` // Required. e.g. openai/text-embedding-3-small
Dims int `yaml:"dims"` // Required. Must match model output dimensions
Headers map[string]string `yaml:"headers"` // Optional extra HTTP headers
}
type EmbeddingConfig ¶
type EmbeddingConfig struct {
Provider string `yaml:"provider"` // openai | gemini | ollama | custom
OpenAI OpenAIEmbedConfig `yaml:"openai"`
Gemini GeminiEmbedConfig `yaml:"gemini"`
Ollama OllamaEmbedConfig `yaml:"ollama"`
Custom CustomEmbedConfig `yaml:"custom"`
}
type GeminiEmbedConfig ¶
type OllamaEmbedConfig ¶
type OpenAIEmbedConfig ¶
type PgvectorConfig ¶
type ServerConfig ¶
type ServerConfig struct {
Transport string `yaml:"transport"` // stdio | http
}
type StorageConfig ¶
type StorageConfig struct {
Backend string `yaml:"backend"` // pgvector | sqlite
Pgvector PgvectorConfig `yaml:"pgvector"`
}
Click to show internal directories.
Click to hide internal directories.