Skip to main content

Module config

Module config 

Source
Expand description

Embedding configuration management.

Loads and saves embedding settings from ~/.savecontext/config.json, maintaining compatibility with the TypeScript MCP server.

Functionsยง

get_embedding_settings
Get embedding settings from config file.
is_embeddings_enabled
Check if embeddings are enabled.
load_config
Load the full SaveContext configuration.
reset_embedding_settings
Reset embedding settings (removes from config).
resolve_hf_endpoint
Resolve HuggingFace endpoint from config or environment.
resolve_hf_model
Resolve HuggingFace model from config or environment.
resolve_hf_token
Resolve HuggingFace token from config or environment.
resolve_ollama_endpoint
Resolve Ollama endpoint from config or environment.
resolve_ollama_model
Resolve Ollama model from config or environment.
save_config
Save the full SaveContext configuration.
save_embedding_settings
Save embedding settings (merges with existing config).