Closed yanggaome closed 3 months ago
Thanks @yanggaome for creating the bug. The evaluator_config
is used for mapping data (input data + data generated by target) to the evaluators input. However this error is happening when evaluate
API calls target (user_call
) with data (data_path
). For case where input data + target
are provided input data
should have all the fields needs by target
.
thanks @singankit , that answered my question! thank you
following up on this, for API calls target with data (user_call), i think this user_call only accepts inputs from data, is there a way to pass in additional variables, e.g. some configs?
here is the issue I created: https://github.com/microsoft/promptflow/issues/3526
Closing this bug in favor of #3526
Describe the bug A clear and concise description of the bug.
I am using evaluator_config to configure a column mapping for the data e.g. the data provide has
{"test_question":xxx}
in jsonl data file following the example: evaluatesafetyrisks I am usingHowever, this is still complaining it cannot find the question input.
Traceback (most recent call last): ... File "/anaconda/envs/azureml_py38/lib/python3.9/site-packages/promptflow/evals/evaluate/_evaluate.py", line 337, in evaluate _validate_columns(input_data_df, evaluators, target, evaluator_config) File "/anaconda/envs/azureml_py38/lib/python3.9/site-packages/promptflow/evals/evaluate/_evaluate.py", line 143, in _validate_columns _validate_input_data_for_evaluator(target, None, df, is_target_fn=True) File "/anaconda/envs/azureml_py38/lib/python3.9/site-packages/promptflow/evals/evaluate/_evaluate.py", line 81, in _validate_input_data_for_evaluator raise ValueError(f"Missing required inputs for target : {missing_inputs}.") ValueError: Missing required inputs for target : ['question'].
How To Reproduce the bug Steps to reproduce the behavior, how frequent can you experience the bug: 1.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Running Information(please complete the following information):
pf -v
: [e.g. 0.0.102309906]python --version
: [e.g. python==3.10.12]Additional context Add any other context about the problem here.