Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Registrati
Accedi
OpenSource
/
dify
Segui
4
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
152
Wiki
Attività
Sfoglia il codice sorgente
feat: optimize web reader summary in 3.5 (
#933
)
tags/0.3.15
takatost
2 anni fa
parent
4ff1870a4b
commit
4c49ecedb5
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file
con
2 aggiunte
e
0 eliminazioni
Visualizzazione separata
Mostra Diff Stats
2
0
api/core/tool/web_reader_tool.py
+ 2
- 0
api/core/tool/web_reader_tool.py
Vedi File
@@ -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]
Write
Preview
Loading…
Annulla
Salva