Documentation
¶
Index ¶
- type AzureConfig
- func (a *AzureConfig) ChatAPIKey() string
- func (a *AzureConfig) ChatAPIVersion() string
- func (a *AzureConfig) ChatEndpoint() string
- func (a *AzureConfig) ChatModel() string
- func (a *AzureConfig) EmbedAPIKey() string
- func (a *AzureConfig) EmbedAPIVersion() string
- func (a *AzureConfig) EmbedEndpoint() string
- func (a *AzureConfig) EmbedModel() string
- type AzureServiceConfig
- type CommunityConfig
- type Config
- type IndexingConfig
- type LLMConfig
- type OllamaConfig
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureConfig ¶
type AzureConfig struct {
// Shared defaults — used when chat/embed-specific values are not set.
Endpoint string `mapstructure:"endpoint"`
APIKey string `mapstructure:"api_key"`
APIVersion string `mapstructure:"api_version"`
Chat AzureServiceConfig `mapstructure:"chat"`
Embed AzureServiceConfig `mapstructure:"embed"`
}
AzureConfig supports shared defaults with per-service overrides. Top-level fields (endpoint, api_key, api_version) are shared defaults. Chat/Embed sub-configs override specific fields when set.
Env vars (prefix DOCSCONTEXT):
DOCSCONTEXT_LLM_AZURE_ENDPOINT — shared endpoint DOCSCONTEXT_LLM_AZURE_API_KEY — shared API key DOCSCONTEXT_LLM_AZURE_API_VERSION — shared API version DOCSCONTEXT_LLM_AZURE_CHAT_ENDPOINT — chat-specific endpoint DOCSCONTEXT_LLM_AZURE_CHAT_API_KEY — chat-specific API key DOCSCONTEXT_LLM_AZURE_CHAT_MODEL — chat model name DOCSCONTEXT_LLM_AZURE_EMBED_ENDPOINT — embedding-specific endpoint DOCSCONTEXT_LLM_AZURE_EMBED_API_KEY — embedding-specific API key DOCSCONTEXT_LLM_AZURE_EMBED_MODEL — embedding model name
func (*AzureConfig) ChatAPIKey ¶
func (a *AzureConfig) ChatAPIKey() string
func (*AzureConfig) ChatAPIVersion ¶
func (a *AzureConfig) ChatAPIVersion() string
func (*AzureConfig) ChatEndpoint ¶
func (a *AzureConfig) ChatEndpoint() string
func (*AzureConfig) ChatModel ¶
func (a *AzureConfig) ChatModel() string
func (*AzureConfig) EmbedAPIKey ¶
func (a *AzureConfig) EmbedAPIKey() string
func (*AzureConfig) EmbedAPIVersion ¶
func (a *AzureConfig) EmbedAPIVersion() string
func (*AzureConfig) EmbedEndpoint ¶
func (a *AzureConfig) EmbedEndpoint() string
func (*AzureConfig) EmbedModel ¶
func (a *AzureConfig) EmbedModel() string
type AzureServiceConfig ¶
type CommunityConfig ¶
type Config ¶
type Config struct {
DataDir string `mapstructure:"data_dir"`
LLM LLMConfig `mapstructure:"llm"`
Indexing IndexingConfig `mapstructure:"indexing"`
Community CommunityConfig `mapstructure:"community"`
Server ServerConfig `mapstructure:"server"`
}
type IndexingConfig ¶
type IndexingConfig struct {
ChunkSize int `mapstructure:"chunk_size"`
ChunkOverlap int `mapstructure:"chunk_overlap"`
BatchSize int `mapstructure:"batch_size"`
Workers int `mapstructure:"workers"`
ExtractGraph bool `mapstructure:"extract_graph"`
ExtractClaims bool `mapstructure:"extract_claims"`
MaxGleanings int `mapstructure:"max_gleanings"`
}
type LLMConfig ¶
type LLMConfig struct {
Provider string `mapstructure:"provider"`
Azure AzureConfig `mapstructure:"azure"`
Ollama OllamaConfig `mapstructure:"ollama"`
}
type OllamaConfig ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.