Expand description
CLI configuration and environment handling
This module provides configuration loading from environment variables, tracing initialization, and embedding runtime management for semantic search.
Structs§
- CliConfig
- CLI configuration loaded from environment variables and config file
- Embedding
Runtime - Embedding runtime wrapper supporting local and remote embeddings
Enums§
- Embedding
Model Choice - Supported embedding models for semantic search
Functions§
- init_
tracing - Initialize tracing/logging based on verbosity level
- load_
embedding_ runtime - Load embedding runtime (fails if unavailable)
- load_
embedding_ runtime_ for_ mv2 - Load embedding runtime by auto-detecting from MV2 vector dimension.
- load_
embedding_ runtime_ with_ model - Load embedding runtime with an optional model override.
If
model_overrideis provided, it will be used instead of the config’s embedding_model. - resolve_
llm_ context_ budget_ override - Resolve LLM context budget override from CLI or environment
- try_
load_ embedding_ runtime - Try to load embedding runtime (returns None if unavailable)
- try_
load_ embedding_ runtime_ for_ mv2 - Try to load embedding runtime for MV2 with auto-detection (returns None if unavailable)
- try_
load_ embedding_ runtime_ with_ model - Try to load embedding runtime with model override (returns None if unavailable)