Takeaways
By the end of this module, you will be able to apply the necessary configuration steps to establish a functional RAG chatbot development environment by:- Cloning and setting up the Vercel AI SDK RAG Starter repository
- Configuring PostgreSQL database in the cloud with Vercel
- Setting up thedevelopment environment with proper tooling
- Understanding the project structure
Lessons
2.1 Repository Setup
Clone the starter repository and understand its structure and dependencies.
2.2 Database Setup
Configure PostgreSQL with pgvector extension and run database migrations.
2.3 Development Environment
Start the development server and explore the project structure.
Prerequisites
Before starting this module, ensure you have the following tools installed:Git
Git
Version control system for managing your code repository.
Node.js 18+
Node.js 18+
JavaScript runtime environment for running the application.
Code Editor (Cursor Recommended)
Code Editor (Cursor Recommended)
AI-powered code editor built on VS Code for enhanced development experience.
Command Line Tools
Command Line Tools
Basic familiarity with terminal/command prompt operations.
Key technologies used
Next.js 14
React framework with App Router for building the web application
PostgreSQL
Relational database with pgvector extension for vector storage
Drizzle ORM
Type-safe database ORM for TypeScript
Vercel AI SDK
Toolkit for building AI-powered applications
Resources
Repository:
https://github.com/vercel/ai-sdk-rag-starter