Skip to main content
Version: latest

agrag.ingestion.extract.load_extraction_llm_settings

load_extraction_llm_settings() -> ExtractionLLMSettings | None

Return extraction LLM settings, or None when no endpoint is configured.

EXTRACTION_LLM_* is read first. Only a missing client list falls back to LLM_BASE_URL, LLM_API_KEY and LLM_MODEL_ID.

Returns:

  • ExtractionLLMSettings | None – Settings for the configured endpoint, or None when neither source is set.

Raises:

  • SettingsError – The configured client list cannot be decoded.
  • ValidationError – A supplied setting is invalid.