This repository was created for me to learn about Retrieval-Augmented Generation (RAG).
I have summarized it in this article, so please feel free to take a look if you're interested.
Run the following command to install the required dependencies:
pnpm install
To use the OpenAI API, you need to set your API key. Add your OpenAI API key to .env.local
file.
OPENAI_API_KEY=xxxxxxxxx
https://sdk.vercel.ai/docs/getting-started/nextjs-app-router#configure-openai-api-key
Once everything is set up, start the development server with the following command:
npm run dev