How does dify implement functions similar to LangChain's LLMRouterChain #777

Closed
opened 2026-02-21 17:28:23 -05:00 by yindo · 1 comment
Owner

Originally created by @tonychen0716 on GitHub (Dec 5, 2023).

Originally assigned to: @takatost on GitHub.

Description of the new feature / enhancement

I previously used LLMRouterChain from Langchain to implement encapsulation of multiple prompts and routing style calls. Now I hope to switch to Dify as a whole. May I ask how I can implement it

Scenario when this would be used?

More complex scenarios require the use of different Prompts and knowledge bases based on user input

Supporting information

No response

Originally created by @tonychen0716 on GitHub (Dec 5, 2023). Originally assigned to: @takatost on GitHub. ### Description of the new feature / enhancement I previously used LLMRouterChain from Langchain to implement encapsulation of multiple prompts and routing style calls. Now I hope to switch to Dify as a whole. May I ask how I can implement it ### Scenario when this would be used? More complex scenarios require the use of different Prompts and knowledge bases based on user input ### Supporting information _No response_
yindo added the 💪 enhancement label 2026-02-21 17:28:23 -05:00
yindo closed this issue 2026-02-21 17:28:23 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 20, 2023):

Close due to it's no longer active, if you have any questions, you can reopen it.

@github-actions[bot] commented on GitHub (Dec 20, 2023): Close due to it's no longer active, if you have any questions, you can reopen it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#777