Replies: 1 comment
-
Dify doesn't have a built-in feature to guarantee Persian-only chat titles; the sidebar just displays whatever title is generated by the LLM prompt on the backend. The best way to enforce Persian output is through careful prompt engineering. In your prompt, make it explicit: ask the LLM to "output only in Persian" and "do not use Arabic or any other language." For example, you can add:
If you still get non-Persian results, you can add a post-processing step (manual or automated) to check the language and re-generate the title if needed. There’s no backend or frontend setting in Dify that enforces Persian output for chat titles—prompt design is your main control point. You can update your prompt in the Dify app configuration or workflow where you set up the chat title generation logic. For strict enforcement, you could develop a custom backend extension to validate and regenerate titles until they are in Persian, but this would require additional coding. Recent updates to Dify have improved prompt handling and configuration flexibility, so you have more control over how prompts are set up, but language enforcement for chat titles is still not automatic—it's all about how you write the prompt source. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
i want every chat in chat page has a persian title.
each title can be some keywords in user query.
sometimes the title is arabic or in other language.
how can i have a true title in persian in sidebar.
in llm what i write?
i write this prompot in LLM:
Task 2: Generating an Extractive Conversation Title
3. Combine these exact keywords, in a logical order, to form the title. Do not add any new words or change the original words.
Beta Was this translation helpful? Give feedback.
All reactions