Skip to main content
During experiments, we often need to perform parallel or batch experiments on the same Pipeline using different hyperparameter configurations. UltraRAG provides a flexible parameter file mechanism that supports quick configuration switching without modifying the main Pipeline.

Step 1: Compile Pipeline

Consistent with the regular running process, first compile the Pipeline:
ultrarag build examples/rag_full.yaml

Step 2: Run

After modifying the corresponding fields in the generated parameter file, execute the following command directly to run:
ultrarag run examples/rag_full.yaml

Step 3: Create New Parameter File

If you want to test different parameter combinations on the same Pipeline, you can create a new parameter file, for example examples/parameter/rag_full_parameter_new.yaml (the file name can be customized). Then, when running the command, specify the configuration file using the --param argument:
ultrarag run examples/rag_full.yaml --param examples/parameter/rag_full_parameter_new.yaml
In this way, the system will execute the same Pipeline using the new parameter file, making it easy to perform parallel and batch comparisons of multiple experiments.