Chat with a pdf document! Utilizes RAG (Retrieval Augmented Generation) to retrieve relevant context, then answers user question based on the provided context and chat history.
- Framework: Next.js 14 (App Router)
- Chat functionality: Vercel AI SDK, LangChain.js
- Generative model: OpenAI
- Vector database: Pinecone
- Component library: shadcn/ui
- Styling: Tailwind CSS
Run the following command to clone the repo:
git clone https://github.com/DraganAleksic99/chat-with-pdf.git
cd chat-with-pdf
npm i
cp .env.example .env
npm run seed
npm run dev
You can now visit http://localhost:3000.