Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: optimize web reader summary in 3.5 (#933)

takatost4c49ecedb5ee
diff --git a/api/core/tool/web_reader_tool.py b/api/core/tool/web_reader_tool.py
index bc27f64cabb..474305ef715 100644
--- a/api/core/tool/web_reader_tool.py
+++ b/api/core/tool/web_reader_tool.py
@@ -88,6 +88,8 @@ class WebReaderTool(BaseTool):
texts = character_splitter.split_text(page_contents)
docs = [Document(page_content=t) for t in texts]
+ docs = docs[1:]
+
# only use first 5 docs
if len(docs) > 5:
docs = docs[:5]