How to properly get answer chunks vs context chunks #28043
Replies: 1 comment 8 replies
-
I found a similar discussion that might be relevant to your issue: Answer chunks not coming in with JsonOutputParser [1]. This discussion addresses issues with chunked responses and might provide insights into handling context and answer chunks separately. In your code, the issue of context chunks appearing in answer chunks could be due to how the streaming and chunk accumulation logic is implemented. Here are a few suggestions to help you troubleshoot and potentially resolve the issue:
By refining these areas, you should be able to better manage the separation of context and answer chunks in your streaming responses. |
Beta Was this translation helpful? Give feedback.
-
I have the following code which uses openan and streaming responses. However sometimes the context chunk comes in the answer chunks.
Any idea why?
Beta Was this translation helpful? Give feedback.
All reactions