Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.32 KB

File metadata and controls

54 lines (40 loc) · 1.32 KB

Gemini File Search RAG Demo

A simple demo that shows how to use Google's Gemini API to ask questions about your documents (PDFs, text files, etc).

Quick Start

Prerequisites

Setup

  1. Create .env.local file in the root directory:
GEMINI_API_KEY=your-api-key-here

Run the App

Backend API:

uv run api/main.py

API runs at http://localhost:8000

Frontend:

cd frontend
npm install
npm run dev

Frontend runs at http://localhost:5173

Quick Demo (CLI)

uv run demo.py

Latency Testing

uv run latency_test.py

Important Links