You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Hi,
I'm using dify and i would like to improve my workflow by adding a 1-shot prompting.
The workflow is very simple
dify workflow
Upload file (pdf)
Extract data from pdf -> output "text"
Send output "text" to ollama model & Ask question (extract invoice id, customer reference etc..)
Return json
For the moment, it is OK and the result is as expected but i would like to into the context a sample file IN and sample Output json.
I have tried to add 2 variables in first step (sample file & output sample file) but i obtain a issue (file required (event i upload it), or error "type unknown")
Is my idea correct? Is somebody has an idea to manage it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Hi,
I'm using dify and i would like to improve my workflow by adding a 1-shot prompting.
The workflow is very simple
dify workflow
For the moment, it is OK and the result is as expected but i would like to into the context a sample file IN and sample Output json.
I have tried to add 2 variables in first step (sample file & output sample file) but i obtain a issue (file required (event i upload it), or error "type unknown")
Is my idea correct? Is somebody has an idea to manage it?
thanks
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions