rag.core.backends.registry¶

Dispatch ingest/query to the selected orchestration backend.

Functions¶

get_backend(→ rag.core.backends.protocol.RagBackend)

Return the backend implementation for strategy.

Module Contents¶

rag.core.backends.registry.get_backend(*, strategy: rag.core.strategy.RagStrategy) rag.core.backends.protocol.RagBackend[source]¶

Return the backend implementation for strategy.

Parameters:

strategy (RagStrategy) – Orchestration library.

Returns:

Concrete backend (imported lazily).

Return type:

RagBackend

Raises:

ValueError – If strategy has no backend.