Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 832 Bytes

File metadata and controls

28 lines (17 loc) · 832 Bytes
Image

Introduction

This is a simple and efficient document Q&A sample app based on Google Gemini File Search.

Run Locally

Prerequisites: Node.js

  1. Install dependencies: npm install
  2. Set the GEMINI_API_KEY in .env.local to your Gemini API key
  3. Run the app: npm run dev

Session persistency

After the first file upload, you will find the Gemini File Store name in .config.local.

If you ever want to start fresh, delete .config.local to force a brand-new File Search store.

Sample screenshot

Image