This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
-
Environment Variables: Copy
.env.exampleto.envand fill in your API keys:cp .env.example .env
-
API Keys Required:
-
Database: Make sure PostgreSQL with pgvector extension is running:
npm run db:up npm run db:migrate
-
Seed Database: Process and store your documents:
npm run db:seed
-
Chunk Docs: Process and store your documents (optional - chunks.json saved to repo):
npm run chunk-docs