config
Declarative configuration helpers for composable Rago pipelines.
Classes:
-
Cache–Resolve a cache backend into step configuration.
-
DB–Resolve a vector database backend into step configuration.
-
Logs–Public alias for attaching logs declaratively.
Cache
Cache(
backend: str = 'file',
target_dir: Path | str = '.rago-cache',
)
Bases: ParametersBase
Resolve a cache backend into step configuration.
Methods:
-
apply–Merge additional configuration into this object.
-
process–Return the input unchanged for configuration-only objects.
Attributes:
-
params(dict[str, Any]) –Expose the underlying parameter mapping.
Source code in src/rago/config.py
20 21 22 23 24 25 26 27 28 29 30 | |
params
property
params: dict[str, Any]
Expose the underlying parameter mapping.
apply
apply(parameters: Any) -> None
Merge additional configuration into this object.
Source code in src/rago/base.py
86 87 88 | |
DB
DB(backend: str = 'faiss', **kwargs: Any)
Bases: ParametersBase
Resolve a vector database backend into step configuration.
Methods:
-
apply–Merge additional configuration into this object.
-
process–Return the input unchanged for configuration-only objects.
Attributes:
-
params(dict[str, Any]) –Expose the underlying parameter mapping.
Source code in src/rago/config.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
params
property
params: dict[str, Any]
Expose the underlying parameter mapping.
apply
apply(parameters: Any) -> None
Merge additional configuration into this object.
Source code in src/rago/base.py
86 87 88 | |
Logs
Logs(target: dict[str, Any] | None = None)
Bases: Logs
Public alias for attaching logs declaratively.
Methods:
-
apply–Merge additional configuration into this object.
-
process–Return the input unchanged for configuration-only objects.
Attributes:
-
params(dict[str, Any]) –Expose the underlying parameter mapping.
Source code in src/rago/extensions/logs.py
16 17 | |
params
property
params: dict[str, Any]
Expose the underlying parameter mapping.
apply
apply(parameters: Any) -> None
Merge additional configuration into this object.
Source code in src/rago/base.py
86 87 88 | |