Skip to content

Commit e504269

Browse files
log when we receive chunk from the llm
1 parent 1eacd23 commit e504269

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/rag_system.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def answer_query_stream(self, query):
159159

160160
collected_messages = []
161161
for chunk in stream:
162+
logging.info(f"Received chunk: {chunk}")
162163
content = chunk['choices'][0]['delta'].get('content', '')
163164
collected_messages.append(content)
164165
yield content

0 commit comments

Comments
 (0)