Loading...
Loading...
Get the RAG Starter Kit running on your local machine. The entire setup takes about five minutes if you already have the prerequisite accounts.
git clone https://github.com/nicholasgriffintn/rag-starter-kit.git
cd rag-starter-kitThe project uses Bun as its runtime and package manager. If you don't have it installed:
# Install Bun (if not already installed)
curl -fsSL https://bun.sh/install | bash
# Install all dependencies
bun installCopy the example environment file and fill in your API keys:
cp .env.example .envOpen .env in your editor and update these required values:
| Variable | Where to get it |
|---|---|
| DATABASE_URL | Create a free database at console.prisma.io. Copy the Accelerate connection string. |
| OPENROUTER_API_KEY | Sign up at openrouter.ai/keys and generate a key. Free models are available. |
| GOOGLE_GENERATIVE_AI_API_KEY | Get a free key at aistudio.google.com. Used for vector embeddings. |
| NEXTAUTH_SECRET | Generate one with: openssl rand -base64 32 |
| NEXTAUTH_URL | Set to http://localhost:7392 for local development. |
See the full environment variables reference for every available option.
Run the Prisma migrations to set up your database:
# Run database migrations
bun db:migrate
# Generate the Prisma client
bun db:generateIf you want some seed data to explore the UI:
bun db:seedbun devOpen http://localhost:7392 in your browser. Register an account, upload a document, and start chatting.
These are not required for local development but are recommended for production:
bun inngest:dev for a local dev server.