---
title: "Discussion on \"Fixing the Vercel AI SDK Bug That Dropped Gemini File Search Citations in streamText\" | Hashnode"
description: "Discussion on \"Fixing the Vercel AI SDK Bug That Dropped Gemini File Search Citations in streamText\". Why streamText in @ai-sdk/google dropped Gemini File Search and RAG citations, how the merged fix dedupes sources by identity, and how to upgrade."
url: "https://hashnode.com/posts/fixing-the-vercel-ai-sdk-bug-that-dropped-gemini-file-search-citations-in-streamtext/6af70509aa71f2c49b36ffe4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fixing the Vercel AI SDK Bug That Dropped Gemini File Search Citations in streamText](https://mahmadmanzoor.hashnode.dev/fixing-the-vercel-ai-sdk-bug-that-dropped-gemini-file-search-citations-in-streamtext?utm_source=hashnode&utm_medium=feed)

Why streamText in @ai-sdk/google dropped Gemini File Search and RAG citations, how the merged fix dedupes sources by identity, and how to upgrade.

16h ago · 12 min read · mahmadmanzoor.hashnode.dev  
Read the article

-   [#opensource](https://hashnode.com/tag/opensource)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#gemini](https://hashnode.com/tag/gemini)
-   [#rag](https://hashnode.com/tag/rag)
-   [#vercel-ai-sdk](https://hashnode.com/tag/vercel-ai-sdk)

## Written by

[Muhammad Ahmad](https://hashnode.com/@mahmadmanzoor)

@mahmadmanzoor · Lahore, Pakistan

  
[View profile](https://hashnode.com/@mahmadmanzoor)

AI Product Engineer @ RipeSeed. Shipping LLM features, agents and evals in production.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
