An AI-powered PDF chat built with Next.js 13, Langchain, and PineconeDB
Subscribe to my YouTube Channel for an upcoming video tutorial!
Demo.mp4
Built with:
- β Next.js 13
- β Shadcn-ui
- β Langchain TypeScript integration
- β PineconeDB as the knowledge store
- β Dark Mode with persistent theme-switching
- Create a free account and get an OPEN_AI key from platform.openai.com
- Create a free account and get access to PineconeDB
- And populate your
.env
file with the required information.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run prepare:data |
Splits your PDF file under the /docs folder into chunks, embeds them, uploads them to Pinecone |
npm run dev |
Starts the local dev server at localhost:3000 |
- Add sources to the streamed chat bubble
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.