mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-01 16:18:27 +00:00
feat:document summary set max iteration
This commit is contained in:
parent
67f41559a8
commit
be1e1cb160
@ -584,7 +584,7 @@ class KnowledgeService:
|
||||
return summary
|
||||
else:
|
||||
max_iteration = max_iteration if len(docs) > max_iteration else len(docs)
|
||||
for doc in docs:
|
||||
for doc in docs[0:max_iteration]:
|
||||
chat_param = {
|
||||
"chat_session_id": uuid.uuid1(),
|
||||
"current_user_input": doc,
|
||||
|
Loading…
Reference in New Issue
Block a user