https://github.com/llegomark/google-search-grounding
A simple yet powerful search tool that leverages Google's Gemini AI with Search Grounding to provide comprehensive, up-to-date information on any topic. Built with the latest Google Gen AI SDK.
https://github.com/llegomark/google-search-grounding
gemini-ai gemini-api gemini-flash google-search
Last synced: 7 months ago
JSON representation
A simple yet powerful search tool that leverages Google's Gemini AI with Search Grounding to provide comprehensive, up-to-date information on any topic. Built with the latest Google Gen AI SDK.
- Host: GitHub
- URL: https://github.com/llegomark/google-search-grounding
- Owner: llegomark
- License: mit
- Created: 2025-02-11T10:48:24.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-11T13:39:28.000Z (8 months ago)
- Last Synced: 2025-02-24T06:54:53.506Z (7 months ago)
- Topics: gemini-ai, gemini-api, gemini-flash, google-search
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Grounding with Google Search
A simple yet powerful search tool that leverages Google's Gemini AI with Search Grounding to provide comprehensive, up-to-date information on any topic. Built with the latest Google Gen AI SDK (`google-genai`).
## 🌟 Features
- Uses Gemini 2.0 Flash model for fast, accurate responses
- Integrates Google Search grounding for real-time information
- Generates conversational, easy-to-understand research results
- Automatically saves results with unique identifiers
- Includes Manila time (GMT+8) timestamps
- Verifies search usage and grounding## 🚀 Quick Start
### Prerequisites
- Python 3.9 or higher
- Google AI Studio API key ([Get it here](https://aistudio.google.com/app/u/0/apikey))### Installation
1. Clone the repository:
```bash
git clone https://github.com/llegomark/google-search-grounding.git
cd google-search-grounding
```2. Install the required packages:
```bash
pip install google-genai python-dotenv pytz
```3. Create a `.env` file in the project root and add your API key:
```bash
GOOGLE_API_KEY=your_api_key_here
```### Usage
Run the script:
```bash
python research_tool.py
```Simply enter any topic you want to research, and the tool will:
- Generate comprehensive research using Gemini AI
- Ground the information using Google Search
- Save results automatically to `research_results/` directory
- Display results in the console