The llm node is not fetching the output from python node . #2222
-
give me insights about why my llm node is not fetching output from my python file. whenever I provide some pdf in input and write prompt in hello.jinja2 file , it doen't answer my query. here is my flow:
Here is the content of my python node I have created to read the pdf. The inputs section will change based on the arguments of the tool function, after you save the codeAdding type to arguments and return value will help the system show the types properlyPlease update the function name/signature per need@tool
The llm always gives me useless answers that it needs the pdf or it is trying to retrieve the pdf etc. Please help me with this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In your llm node, please modify |
Beta Was this translation helpful? Give feedback.
In your llm node, please modify
text: ${python_read}
totext: ${python_read.output}
.Can refer to our example flow dag yamls:
promptflow/examples/flows/standard/web-classification/flow.dag.yaml at main · microsoft/promptflow