Open yanggaome opened 3 months ago
+1 on the ability to pass nested fields to any flow as a column mapping. I believe the general case is directly tied to this bug, but I am happy to open an independent issue if preferred.
Say my input data looks like:
{
"foo": {
"bar": "baz"
}
}
Then I would love to be able to pass a column mapping of:
column_mapping:
input: ${data.foo.bar}
The reason I don't want to pass ${data.foo}
and then parse out "bar" in my own code is:
Thx for the feedback! We need a standard way to allow complex json mapping. Something like json path. If you have a suggestion of an industry standard, definitely let us know. We’ll estimate and come back to this.
do we have a solution or work around for this ?
Describe the bug A clear and concise description of the bug.
I am using promptflow evaluate API where I provide a target call
using
target.outputs.outputA
does not work, it will complain cannot find "answer" I can only usetarget.outputs
. I understand this may not be a bug, it may be a feature requestIs there a way to support this?
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]{ "promptflow": "1.13.0", "promptflow-azure": "1.13.0", "promptflow-core": "1.13.0", "promptflow-devkit": "1.13.0", "promptflow-evals": "0.3.1", "promptflow-tracing": "1.13.0" }
Executable '/anaconda/envs/azureml_py38/bin/python' Python (Linux) 3.9.19 | packaged by conda-forge | (main, Mar 20 2024, 12:50:21) [GCC 12.3.0]
Additional context Add any other context about the problem here.