Skip to content

Commit ca9cedb

Browse files
srbalakrpamelafox
andauthored
Update app/backend/approaches/chatreadretrieveread.py
Co-authored-by: Pamela Fox <[email protected]>
1 parent 501c6ca commit ca9cedb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/backend/approaches/chatreadretrieveread.py

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

106106
chatContent = chatCompletion.choices[0].message.content
107107

108-
return {"data_points": results, "answer": chatContent, "thoughts": f"Searched for:<br>{q}<br><br>Prompt:<br>" + prompt.replace('\n', '<br>')}
108+
return {"data_points": results, "answer": chat_content, "thoughts": f"Searched for:<br>{q}<br><br>Prompt:<br>" + prompt.replace('\n', '<br>')}
109109

110110
def get_chat_history_as_text(self, history: Sequence[dict[str, str]], include_last_turn: bool=True, approx_max_tokens: int=1000) -> str:
111111
history_text = ""

0 commit comments

Comments
 (0)