Learn how to use sources with Google Workspace with Gemini

When you use Gemini in Workspace apps like Docs and Drive, you use sources to tell Gemini exactly which information to use in its response.

Sources are files, documents, or contextual info that Gemini uses to provide more relevant and focused answers to your prompts.

With sources, Gemini can:

  • Find information: Get tailored responses or ask for data points found in your files.
  • Summarize documents: Get a summary or extract key points from a file you have as a source.
  • Compare facts between files: Use multiple source files to compare data, insights, or findings across them.

Understand your sources

When you interact with Gemini, you can manage the content that it can access to inform its response. You can:

Add a source from Drive

You can add specific files in Drive when you want Gemini to prioritize these files before it consults other options. When you add a source, it remains active for your entire conversation, providing consistent context for Gemini's responses.

Add a source in Docs, Gmail, or Slides
  1. Go to:
  2. At the top right corner, click Ask Gemini .
  3. At the bottom of the panel, click Add sources .
  4. Click Add from Drive.
  5. Select a file.
  6. Click Add.
Add a source in Drive
  1. Go to drive.google.com.
  2. At the top right, click Ask Gemini .
  3. In the left panel, under "Your sources" or "Project sources," click Add.
  4. Select the files, folders, or emails you want to add as sources.
  5. Click Add.

Learn how to manage your sources and search settings in Drive.

Add a source in Sheets
  1. Go to sheets.google.com.
  2. At the top right, click Ask Gemini .
  3. At the bottom of the panel, click Sheet .
    • If your sheet is not empty, click Sources .
  4. Click Add from Drive.
  5. Select a file.
  6. Click Add.

Understand what you can add as a source

  • Google Docs
  • Google Sheets
  • Google Slides
  • PDFs

Tips:

Manage source settings

Important:

  • Gemini only searches the sources you have selected, but may use any app data enabled by an administrator as well as activity from across Workspace apps to prioritize the most relevant information from available sources. Some sources are on by default, and you can disable them in your source settings at any time.
  • Gemini can reference sources from a previous turn in your current conversation. To exclude a source you had previously included, start a new conversation and go to your source settings to select the sources you want.
Manage source settings in Docs, Gmail, or Slides
  1. Go to:
  2. At the top right corner, click Ask Gemini .
    • In Docs, you can also add sources from the bottom bar.
  3. Click Add sources .
  4. Click Gemini search settings.
  5. Turn specific search locations on or off:
    • Drive search
    • Gmail search
    • Chat search
    • Web search
Manage source settings in Drive
  1. Go to drive.google.com.
  2. At the top right corner, click Ask Gemini .
  3. In the left panel, toggle on Let Gemini search for sources. This enables Gemini to pull broader context from across Google Workspace.
  4. If you want to limit locations, leave the primary toggle on but uncheck specific locations:
    • Select Drive to search your wider Drive content beyond pinned sources.
    • Select Chat, Calendar, or Gmail to search recent communications and meeting schedules.
    • Select Web to search the internet for supplemental public data.

Tip: When you start a conversation from scratch, search settings for Drive, Gmail, Chat, and Calendar are turned on by default. Gemini uses this wider context to answer questions. Web search remains off by default.

Learn how to manage your sources and search settings in Drive.

Manage source settings in Sheets
  1. Go to sheets.google.com.
  2. At the top right, click Ask Gemini .
  3. At the bottom of the panel, click Sheet .
    • If your sheet is not empty, click Sources .
  4. Click Gemini search settings.
  5. Turn specific search locations on or off:
    • Drive search
    • Gmail search
    • Chat search
    • Web search

Use cell ranges as a source in Sheets

In Sheets, if you want Gemini to use a specific range or table in the file instead of the entire sheet:

  1. Highlight the cell range in your sheet.
  2. Ask Gemini a question that references the range.

Tips:

  • Cell ranges are only for the sheet tab you are currently on.
  • Gemini in Sheets might automatically select existing sources, such as other Sheet tabs. If you want to ask a question only about your selected cell range, make sure to deselect the other sources first.

Check sources that contribute to Gemini’s response

After Gemini generates a response, you can review a list of the files that contributed to its answer. Below the response from Gemini, select Sources to find the list of sources.

For all requests that you make to Gemini, there’s a limited processing capacity, often referred to as a context window. If you have too many sources, or include sources with too much text, they may exceed this capacity. In these cases, Gemini might base its response on some, but not all, of the content.

Even when Gemini shows sources, it can still get things wrong. For example:

  • Gemini might miss a source it used, or it may cite a document that is not directly used for a specific piece of information.
  • In some cases, Gemini can make up a source, presenting it as factual even if it wasn't part of the request.

Make sure to double-check the response and verify information with the listed sources, and with other sources you trust, before you rely on the generated content.

Search
Clear search
Close search
Main menu
8846994690654551088
true
Search Help Center
false
true
true
true
true
true
17
false
false
false
false
false