Skip to main content
Version: latest

agrag.ingestion.settings.effective_mode

effective_mode(settings:ExtractionSettings, llm_available:bool) -> Literal['gliner', 'hybrid', 'llm', 'client']

Return the run mode for one extraction run.

Client work stays active whether or not a server LLM is configured, so the graph never degrades it. Hybrid degrades to GLiNER when no LLM is available.

Parameters:

  • settings (ExtractionSettings) – Settings for the run.
  • llm_available (bool) – Whether an LLM extractor can serve the run.

Returns:

  • Literal['gliner', 'hybrid', 'llm', 'client'] – The mode the run uses.