
A Next.js application, powered by the Vercel AI SDK, that uses retrieval-augmented generation (RAG) to reason and respond with information outside of the model's training data.
streamText functionuseChat hookTo get the project up and running, follow these steps:
Install dependencies:
Copy the example environment file:
Add your Vercel AI Gateway API key and PostgreSQL connection string to the .env file:
Migrate the database schema:
Start the development server:
Your project should now be running on http://localhost:3000.