q_ls
and top_k
ret_psg
retriever_search
multiple times in loops or branches and want to pass different data (for example, q_ls
the first time and subq_ls
the second time), you need a way to tell the pipeline that these variables are actually “synonyms”.
pipeline.yaml
using input:
and output:
mappings, without modifying the Server code.
retriever_search
originally expects an input parameter named query_list
, but here you actually use the variable name sub_q_ls
. By explicitly binding it with input:
, the mapping is completed without modifying the tool’s internal implementation.
ret_psg
, it will now be mapped to round1_result
for subsequent steps to use.
qa_rag_boxed
originally expects the input ret_psg
. Here, we explicitly map the previous step’s round1_result
as its input to achieve data binding.