Could I use the rewritten question in LLM ? #6347
Replies: 2 comments
-
Yes, you can use the rewritten question in LLM. Dify allows you to configure the LLM to handle various tasks, including question generation and text summarization. You can format the rewritten question for use in an LLM by customizing the model input prompts and settings. For example, you can set up a prompt like this: {
"prompt": "You need to decompose the user's input into 'subject' and 'intention' in order to accurately figure out what the user's input language actually is. Notice: the language type user use could be diverse, which can be English, Chinese, Español, Arabic, Japanese, French, and etc. MAKE SURE your output is the SAME language as the user's input! Your output is restricted only to: (Input language) Intention + Subject (short as possible). Your output MUST be a valid JSON.",
"variables": ["user_input"],
"opening_statement": "Hi! I'm here to help you understand and decompose your input into subject and intention. Please provide your input in any language, and I'll respond in the same language."
} To configure an LLM node in Dify, follow these steps:
For more detailed guidance, refer to the Dify documentation [1][2][3][4]. |
Beta Was this translation helpful? Give feedback.
-
It is critical to remove this restriction when enabling the memory of the LLM block. |
Beta Was this translation helpful? Give feedback.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Why does this place have to be 'sys. query'? I have already rewritten the question due to the matching requirements of vector search, so can't I use the rewritten question in LLM ?
2. Additional context or comments
No response
3. Can you help us with this feature?
Beta Was this translation helpful? Give feedback.
All reactions