langtest.utils.custom_types.helpers.build_qa_prompt#
- build_qa_prompt(input_data: dict, dataset_name: str | None = None, **kwargs)#
Builds the prompt data for a question-answering model.
- Parameters:
input_data (Dict[str, Union[str, List[str]]]) – The input data generated by ‘build_qa_input’.
dataset_name (str) – The name of the dataset.
**kwargs – Additional keyword arguments.
- Returns:
The prompt data with keys ‘template’ and ‘input_variables’.
- Return type:
Dict[str, Union[str, List[str]]]