Upload Layer¶
The upload layer persists an EvaluationOutput to a running MLflow server —
runs table, metrics, assessments, and optionally the captured traces as a JSON
artifact.
upload_to_mlflow¶
ragpill.upload.upload_to_mlflow
¶
Persist an :class:EvaluationOutput to an MLflow server.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
evaluation
|
EvaluationOutput
|
Output of :func: |
required |
mlflow_settings
|
MLFlowSettings | None
|
Server connection + experiment info. When omitted, a
default :class: |
None
|
model_params
|
dict[str, str] | None
|
Optional model parameters to log for reproducibility. |
None
|
upload_traces
|
bool
|
When |
False
|
Example
See Also
execute_dataset: Phase 1.
evaluate_results: Phase 2.
Source code in src/ragpill/upload.py
See Also¶
- Execution Layer — capture traces (with or without a server).
- Evaluation Layer — produce the
EvaluationOutput. - Layered Architecture Guide — the
"disconnected execution + upload later" workflow uses
upload_traces=True.