filmov
tv
Function Calling in Gemini: A Framework for Connecting LLMs to Real-Time Data

Показать описание
Function calling is a powerful built-in feature of Gemini that gives developers structured outputs and full control when connecting large language models (LLMs) to real-time data in external systems via APIs. Function calling is an intuitive way to build generative AI applications that can access real-time information in databases, CRMs, document repositories, customer support platforms, and other types of systems.
In this session, we’ll give an overview of function calling and show you how to define functions, tools, and parameters that enable Gemini to interact with external systems. We’ll show sample code and apps that can interact with BigQuery via natural language prompts, handle RAG operations to retrieve and summarize documents from vector databases, or (optionally) integrate with OSS frameworks such as LangChain and LlamaIndex.
We'll also discuss best practices to follow when using function calling, including how to write descriptive function and parameter definitions, how to work with structured outputs, how to handle API calls and function responses, and how to work with function calling in text and chat modalities. By the end of this session, you’ll have a good understanding of how function calling in Gemini works and how you can use it to build apps that interact with your own APIs and services.
We’ll cover the following topics:
- How function calling solves limitations in LLMs and generative models
- The benefits of using function calling vs. traditional approaches
- How to use function calling and how it works at runtime
- Interacting with SQL databases, vector databases, and other systems
- How to get started with function calling with your own systems
In this session, we’ll give an overview of function calling and show you how to define functions, tools, and parameters that enable Gemini to interact with external systems. We’ll show sample code and apps that can interact with BigQuery via natural language prompts, handle RAG operations to retrieve and summarize documents from vector databases, or (optionally) integrate with OSS frameworks such as LangChain and LlamaIndex.
We'll also discuss best practices to follow when using function calling, including how to write descriptive function and parameter definitions, how to work with structured outputs, how to handle API calls and function responses, and how to work with function calling in text and chat modalities. By the end of this session, you’ll have a good understanding of how function calling in Gemini works and how you can use it to build apps that interact with your own APIs and services.
We’ll cover the following topics:
- How function calling solves limitations in LLMs and generative models
- The benefits of using function calling vs. traditional approaches
- How to use function calling and how it works at runtime
- Interacting with SQL databases, vector databases, and other systems
- How to get started with function calling with your own systems
Комментарии