[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live) [AI SDK](/c/ai-sdk/62) # Best practices for streaming with UUIDs in a RAG flow using streamText 44 views · 0 likes · 1 post Rohit (@cipherohit) · 2025-11-05 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?**