-
Notifications
You must be signed in to change notification settings - Fork 2k
Url Context #897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Url Context #897
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of Changes
Hello @Giom-V, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request introduces and integrates the new "URL context" tool into the Gemini API Cookbook, specifically within the Grounding.ipynb
quickstart guide. This enhancement allows Gemini models to directly process and leverage content from various online sources like web pages, PDFs, and images by simply providing their URLs, thereby enriching the model's understanding and response generation.
Highlights
- New URL Context Tool Integration: The
Grounding.ipynb
notebook now features comprehensive demonstrations of how to use theurl_context
tool. This includes examples for grounding Gemini models with content from website URLs, PDF URLs, and image URLs, significantly expanding the model's ability to incorporate external, live information. - Enhanced Grounding Notebook: The
quickstarts/Grounding.ipynb
notebook has undergone substantial updates. These include the addition of internal anchor links for easier navigation between different grounding methods (Google Search, YouTube, and the new URL context), streamlined SDK setup instructions, updated model references to the latest Gemini 2.5 variants, and refreshed example outputs to reflect current model behavior and capabilities. - Documentation Update: The
README.md
file has been modified to highlight the newly introduced "url context" tool within the "Recently Added Guides" section, ensuring visibility and discoverability for users exploring grounding techniques. A minor formatting adjustment was also made.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments or fill out our survey to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces extensive examples for the new url_context
tool in the Grounding.ipynb
notebook, demonstrating how to ground Gemini's responses using websites, PDFs, and images. The changes are well-structured and provide valuable examples of combining url_context
with other features like JSON mode and Google Search. The README.md
file is also updated to reflect this new capability. My review includes a couple of suggestions to ensure the notebook aligns with the repository's style guide and Python best practices.
No description provided.