Skip to main content

Module config

Module config 

Source
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
EmbeddingRuntime
Embedding runtime wrapper supporting local and remote embeddings

Enums§

EmbeddingModelChoice
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_override is 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)