mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-11 13:12:18 +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
|
return summary
|
||||||
else:
|
else:
|
||||||
max_iteration = max_iteration if len(docs) > max_iteration else len(docs)
|
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_param = {
|
||||||
"chat_session_id": uuid.uuid1(),
|
"chat_session_id": uuid.uuid1(),
|
||||||
"current_user_input": doc,
|
"current_user_input": doc,
|
||||||
|
Loading…
Reference in New Issue
Block a user