Configuration¶
Model presets¶
SemanticMap reads its model registry from
src/mandol/core/semantic_map.py. Common presets:
Name |
Type |
Dim |
Notes |
|---|---|---|---|
|
local |
1024 |
Default text model |
|
local |
2560 |
Larger text model |
|
local |
4096 |
Larger text model |
|
cloud |
1024 |
SiliconFlow adapter |
|
local |
1024 |
BGE text model |
|
local |
384 |
Lightweight CPU-friendly option |
|
local |
1024 |
Text and image modalities |
|
local |
2048 |
Text and image modalities |
Environment variables¶
Runtime settings are centralized in mandol.utils.config_manager.settings.
The module reads the repository root .env file and system environment
variables.
Common keys:
SILICONFLOW_API_KEYSILICONFLOW_EMBEDDINGS_URLSILICONFLOW_RERANK_URLDEEPSEEK_API_KEYandDEEPSEEK_BASE_URLCLOSEAI_API_KEYandCLOSEAI_BASE_URLOPENAI_API_KEYandOPENAI_BASE_URLOPENROUTER_API_KEYandOPENROUTER_BASE_URLDASHSCOPE_API_KEYandDASHSCOPE_BASE_URLCSTCLOUD_API_KEYandCSTCLOUD_BASE_URLHF_TOKENorHUGGINGFACE_TOKENHF_ENDPOINTandHF_HOMERERANKER_BACKEND=native|vllmVLLM_API_URL,VLLM_API_KEY,VLLM_GPU_MEMORY_UTILIZATION,VLLM_TIMEOUT_SECONDSandVLLM_MAX_RETRIES
Optional runtime tuning¶
MANDOL_BM25_SPACY_MAX_PROCESSES limits spaCy worker processes during BM25
tokenization. MANDOLIN_MODEL_DIR selects the root directory for locally
fine-tuned quantification models. SKIP_AUTO_LOGGING=true disables Mandol’s
automatic root-logging setup when another application owns logging.
Use env.template as the authoritative environment-variable template. Pass
model names, index options and runtime parameters directly to SemanticMap,
SemanticGraph, retrieval classes and builder configuration objects.