ToolCall
When you only need a specific function of UltraRAG (such as data loading, encoding, retrieval, etc.) and do not need to run the full Pipeline, you can call it as a function viaToolCall.
script/api_usage_example.py
The usage method is consistent with ordinary Python functions; just pass in the corresponding parameters as needed.
script/api_usage_example.py
Only pass the parameters you wish to modify; other parameters will be automatically completed from the Server’s default parameter file.
PipelineCall
If you wish to run an entire UltraRAG Pipeline directly locally and obtain the execution results of all steps, you can usePipelineCall.
You need to first generate the
pipeline_parameter.yaml and parameter files for the corresponding Pipeline via UltraRAG’s build function.script/api_usage_example.py
final_result is the running result of the last step of the Pipeline, and all_steps_result contains the running results of all steps.