Skip to content

Commit 797aa60

Browse files
Fix: keyword extraction (infiniflow#14177)
### What problem does this PR solve? Fix: keyword extraction ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
1 parent c3bf8d9 commit 797aa60

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

api/db/services/dialog_service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,7 @@ async def async_chat(dialog, messages, stream=True, **kwargs):
594594
)
595595

596596
if prompt_config.get("keyword", False):
597-
questions[-1] += await keyword_extraction(chat_mdl, questions[-1])
598-
597+
questions[-1] = questions[-1] + "," + await keyword_extraction(chat_mdl, questions[-1])
599598
refine_question_ts = timer()
600599

601600
thought = ""

0 commit comments

Comments
 (0)