A simple demo that shows how to use Google's Gemini API to ask questions about your documents (PDFs, text files, etc).
- Python 3.12+
- Node.js and npm
- Gemini API key
- Create
.env.localfile in the root directory:
GEMINI_API_KEY=your-api-key-here
Backend API:
uv run api/main.pyAPI runs at http://localhost:8000
Frontend:
cd frontend
npm install
npm run devFrontend runs at http://localhost:5173
uv run demo.pyuv run latency_test.py- File Search Video Tutorial - YouTube walkthrough
- File Search Announcement - Official Google blog post
- File Search Documentation - Complete usage guide
- Generate Content API - API reference for content generation
- File Search Stores API - API reference for stores
- Documents API - API reference for documents