[PR #430] [MERGED] feat: upgrade langchain #22494

Closed
opened 2026-02-21 20:19:05 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/430
Author: @takatost
Created: 6/21/2023
Status: Merged
Merged: 6/25/2023
Merged by: @takatost

Base: mainHead: feat/upgrade-langchain


📝 Commits (10+)

  • 9e9d15e feat: replace llama-index to langchain in index build
  • 0d82aa8 feat: use callbacks instead of callback manager
  • fb5118f feat: support router chain using langchain index
  • 0578c1b feat: replace using new index builder
  • 4de6e95 feat: completed callback
  • bcaf227 feat: remove _generate for llm
  • c2f1be9 fix: model kwargs
  • 85a2514 fix: callback bug
  • ced9fc5 fix: some bugs
  • 71981ea fix: kw table bugs

📊 Changes

91 files changed (+2689 additions, -3139 deletions)

View changed files

📝 api/app.py (+1 -2)
📝 api/commands.py (+35 -0)
📝 api/config.py (+2 -0)
📝 api/controllers/console/datasets/data_source.py (+11 -10)
📝 api/controllers/console/datasets/file.py (+2 -28)
📝 api/controllers/console/version.py (+7 -2)
📝 api/core/__init__.py (+0 -20)
📝 api/core/agent/agent_builder.py (+8 -11)
📝 api/core/callback_handler/agent_loop_gather_callback_handler.py (+1 -29)
📝 api/core/callback_handler/dataset_tool_callback_handler.py (+1 -50)
📝 api/core/callback_handler/index_tool_callback_handler.py (+8 -21)
📝 api/core/callback_handler/llm_callback_handler.py (+31 -85)
📝 api/core/callback_handler/main_chain_gather_callback_handler.py (+12 -70)
📝 api/core/callback_handler/std_out_callback_handler.py (+36 -9)
📝 api/core/chain/chain_builder.py (+2 -4)
📝 api/core/chain/llm_router_chain.py (+6 -4)
📝 api/core/chain/main_chain_builder.py (+10 -8)
📝 api/core/chain/multi_dataset_router_chain.py (+62 -16)
📝 api/core/chain/sensitive_word_avoidance_chain.py (+7 -2)
📝 api/core/chain/tool_chain.py (+12 -3)

...and 71 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify/pull/430 **Author:** [@takatost](https://github.com/takatost) **Created:** 6/21/2023 **Status:** ✅ Merged **Merged:** 6/25/2023 **Merged by:** [@takatost](https://github.com/takatost) **Base:** `main` ← **Head:** `feat/upgrade-langchain` --- ### 📝 Commits (10+) - [`9e9d15e`](https://github.com/langgenius/dify/commit/9e9d15ecf96b8980e775912d2a6d2f5ecbd05c20) feat: replace llama-index to langchain in index build - [`0d82aa8`](https://github.com/langgenius/dify/commit/0d82aa8f06c14c0ecfe43b0818b3c5ae0907d2ff) feat: use callbacks instead of callback manager - [`fb5118f`](https://github.com/langgenius/dify/commit/fb5118f0c87e86c197f6d1f7c293584a33e556c8) feat: support router chain using langchain index - [`0578c1b`](https://github.com/langgenius/dify/commit/0578c1b6e5b8a531c28e9a2e9603706b5bec17fa) feat: replace using new index builder - [`4de6e95`](https://github.com/langgenius/dify/commit/4de6e9555f6e7fcad20dff4ce5da5fc79c993864) feat: completed callback - [`bcaf227`](https://github.com/langgenius/dify/commit/bcaf2274195649c7cd9eadc94456ef56de973896) feat: remove _generate for llm - [`c2f1be9`](https://github.com/langgenius/dify/commit/c2f1be9d8f86368fdef21a99e974bff599510cb7) fix: model kwargs - [`85a2514`](https://github.com/langgenius/dify/commit/85a25148134f96af7012b8c395ea96b92a4209b5) fix: callback bug - [`ced9fc5`](https://github.com/langgenius/dify/commit/ced9fc525b5a4b24aed60164d7689dbce2711d2e) fix: some bugs - [`71981ea`](https://github.com/langgenius/dify/commit/71981eac22eb1545a388c694af475a7b82d3cc9a) fix: kw table bugs ### 📊 Changes **91 files changed** (+2689 additions, -3139 deletions) <details> <summary>View changed files</summary> 📝 `api/app.py` (+1 -2) 📝 `api/commands.py` (+35 -0) 📝 `api/config.py` (+2 -0) 📝 `api/controllers/console/datasets/data_source.py` (+11 -10) 📝 `api/controllers/console/datasets/file.py` (+2 -28) 📝 `api/controllers/console/version.py` (+7 -2) 📝 `api/core/__init__.py` (+0 -20) 📝 `api/core/agent/agent_builder.py` (+8 -11) 📝 `api/core/callback_handler/agent_loop_gather_callback_handler.py` (+1 -29) 📝 `api/core/callback_handler/dataset_tool_callback_handler.py` (+1 -50) 📝 `api/core/callback_handler/index_tool_callback_handler.py` (+8 -21) 📝 `api/core/callback_handler/llm_callback_handler.py` (+31 -85) 📝 `api/core/callback_handler/main_chain_gather_callback_handler.py` (+12 -70) 📝 `api/core/callback_handler/std_out_callback_handler.py` (+36 -9) 📝 `api/core/chain/chain_builder.py` (+2 -4) 📝 `api/core/chain/llm_router_chain.py` (+6 -4) 📝 `api/core/chain/main_chain_builder.py` (+10 -8) 📝 `api/core/chain/multi_dataset_router_chain.py` (+62 -16) 📝 `api/core/chain/sensitive_word_avoidance_chain.py` (+7 -2) 📝 `api/core/chain/tool_chain.py` (+12 -3) _...and 71 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-21 20:19:05 -05:00
yindo closed this issue 2026-02-21 20:19:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22494