Hi everyone,
I’m working on a RAG feature where my model retrieves related chunks (from tool use) and then generates a final response based on them using streamText.
The Problem: My retrieved chunks include image URLs, but these URLs use UUIDs (e.g., .../f81d4fae-7dec...jpg). When I feed this context back to the LLM, it tries to include the image in its response but often messes up the UUID (misplacing letters/numbers), which breaks the image rendering.
What’s the best way to handle this during streaming?