Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Gemini API Examples

This folder contains a collection of examples for the Gemini API. These are advanced examples and might be quite complex as they often use one of more Gemini capabilities.

For introductions to those features it is recommended to start with the Quickstarts guides, and the Get started one in particular.

Table of contents

This is a collection of fun and helpful examples for the Gemini API.

Cookbook Description Features Open
Plotting and mapping Live Ask Gemini for complex graphs live Live API, Code execution Colab
Search grounding for research report Use grounding to improve the quality of your research report Grounding Colab
3D Spatial understanding Use Gemini 3D spatial abilities to understand 3D scenes and answer questions about them Multimodal, Spatial understanding Colab
Gradio and live API Use gradio to deploy your own instance of the Live API Live API Python Code
Invoice and Form Data Extraction Use the Gemini API to extract information from PDFs File API, Structured Outputs Colab


Some old examples are still using the legacy SDK, they should still work and are still worth checking to get ideas:

Integrations

  • Personalized Product Descriptions with Weaviate: Load data into a Weaviate vector DB, build a semantic search system using embeddings from the Gemini API, create a knowledge graph and generate unique product descriptions for personas using the Gemini API and Weaviate.

Folders

  • Prompting examples: A directory with examples of various prompting techniques.
  • JSON Capabilities: A directory with guides containing different types of tasks you can do with JSON schemas.
  • Automate Google Workspace tasks with the Gemini API: This codelabs shows you how to connect to the Gemini API using Apps Script, and uses the function calling, vision and text capabilities to automate Google Workspace tasks - summarizing a document, analyzing a chart, sending an email and generating some slides directly. All of this is done from a free text input.
  • Langchain examples: A directory with multiple examples using Gemini with Langchain.