core
Rago core pipeline.
Classes:
-
Rago–Composable Rago pipeline.
Rago
Rago(
retrieval: StepBase | None = None,
augmented: StepBase | None = None,
generation: StepBase | None = None,
)
Bases: Pipeline
Composable Rago pipeline.
Methods:
-
process–Run this pipeline when embedded as a step.
-
prompt–Run the pipeline and return the primary result value.
-
run–Run all configured steps for the given query and source.
Attributes:
-
logs(dict[str, dict[str, Any]]) –Expose step logs using stable public names when possible.
Source code in src/rago/core.py
16 17 18 19 20 21 22 23 24 25 | |
logs
property
logs: dict[str, dict[str, Any]]
Expose step logs using stable public names when possible.
process
Run this pipeline when embedded as a step.
Source code in src/rago/base.py
137 138 139 140 141 142 143 144 145 146 | |
prompt
prompt(
query: str,
source: Any = None,
data: Any = None,
**kwargs: Any,
) -> Any
Run the pipeline and return the primary result value.
Source code in src/rago/base.py
242 243 244 245 246 247 248 249 250 251 252 253 254 255 | |
run
run(
query: str = '',
source: Any = None,
data: Any = None,
**kwargs: Any,
) -> Output
Run all configured steps for the given query and source.
Source code in src/rago/base.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | |