Skip to content

Commit 91f34f1

Browse files
committed
addresscomments
1 parent cf89d1e commit 91f34f1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/backend/approaches/chatreadretrieveread.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ def run(self, history: Sequence[dict[str, str]], overrides: dict[str, Any]) -> A
105105

106106
chat_content = chat_completion.choices[0].message.content
107107

108-
msg_to_display = ''
109-
for msg in messages:
110-
msg_to_display += str(msg) + '\n\n'
108+
msg_to_display = '\n\n'.join([str(message) for message in messages])
111109

112110
return {"data_points": results, "answer": chat_content, "thoughts": f"Searched for:<br>{q}<br><br>Conversations:<br>" + msg_to_display.replace('\n', '<br>')}
113111

0 commit comments

Comments
 (0)