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
    • Available for Docs, Drive, and Slides.
    • These are the specific files that you add from 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.
  • Use contextual sources
    • Available for Sheets.
    • In Sheets, you can add specific tables or cell ranges as a source. When you ask, Gemini focuses its analysis on the selected tables or cell ranges.

Add a source from Drive

To add a source in Docs:

  1. At the top right corner, click Ask Gemini .
  2. At the bottom of the panel, click Add sources .
  3. Click Add from Drive.
  4. Select a file.
  5. Click Add.

To add a source in Drive or Slides:

  1. At the top right corner, click Ask Gemini .
  2. At the bottom of the panel, click Add sources .
  3. Select a file.
  4. Click Add.

What you can add as a source

  • Google Docs
  • Google Sheets
  • Google Slides
  • PDFs

Tips:

Use contextual sources in Sheets

Cell ranges

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.

Tip: Cell ranges are only for the sheet tab you are currently on.

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.

Get more help with sources in Docs, Drive & more

To get instructions for how to use Gemini and sources in Docs, Drive, and other Workspace apps that support sources, visit:

Search
Clear search
Close search
Main menu
6885469999703372127
true
Search Help Centre
false
true
true
true
true
true
99950
false
false
false
false