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:
- At the top right corner, click Ask Gemini
.
- At the bottom of the panel, click Add sources
.
- Click Add from Drive.
- Select a file.
- Click Add.
To add a source in Drive or Slides:
- At the top right corner, click Ask Gemini
.
- At the bottom of the panel, click Add sources
.
- Select a file.
- Click Add.
What you can add as a source
- Google Docs
- Google Sheets
- Google Slides
- PDFs
Tips:
- To add a file, you need permission to view it. You can only use files you have permission to view in Drive as sources. If you don’t have access to the file, you get this alert: “You need access to some files.” Learn how to get permission to open a file or folder.
- Before you can add a PDF as a source, upload it to Drive. Learn how to upload files and folders to Google Drive.
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:
- Highlight the cell range in your sheet.
- 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: