qbiocode.apps.quvine.api.config module#

Config loading/merging for the QuVINE embedding API.

The API reuses the same Hydra/OmegaConf YAML schema the pipeline uses (configs/config.yaml). Unlike the CLI, the API does not need the Hydra runtime – it simply loads a base DictConfig and deep-merges overrides.

Summary#

Functions:

load_config

Build the OmegaConf config the API operates on.

Reference#

load_config(config=None, overrides=None, default_path=None)[source]#

Build the OmegaConf config the API operates on.

Parameters:
  • config (Union[DictConfig, dict, str, None]) – One of * None – load the packaged default config. * a str/path – load that YAML file. * a dict – treat as a full config. * a DictConfig – used as-is (a deep copy is made).

  • overrides (Union[dict, list, DictConfig, None]) – Deep-merged on top of config. Accepts a dict, a DictConfig, or a list of Hydra-style "a.b=c" dotlist strings.

  • default_path (Optional[str]) – Explicit path to use instead of auto-discovery when config is None.

Return type:

DictConfig

Returns:

A resolved-on-access DictConfig.