https://github.com/draganaleksic99/chat-with-pdf
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.
https://github.com/draganaleksic99/chat-with-pdf
generative-ai langchain-js nextjs pinecone rag shadcn-ui tailwindcss typescript vercel-ai-sdk
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/draganaleksic99/chat-with-pdf
- Owner: DraganAleksic99
- Created: 2024-04-18T17:30:47.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-23T22:45:37.000Z (5 months ago)
- Last Synced: 2025-03-08T22:46:21.703Z (about 2 months ago)
- Topics: generative-ai, langchain-js, nextjs, pinecone, rag, shadcn-ui, tailwindcss, typescript, vercel-ai-sdk
- Language: TypeScript
- Homepage: https://dub.sh/chat-with-pdf
- Size: 1.62 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat-With-Pdf
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.
## Stack
- Framework: [Next.js](https://nextjs.org/) 14 (App Router)
- Chat functionality: [Vercel AI SDK](https://sdk.vercel.ai/docs/introduction), [LangChain.js](https://js.langchain.com/docs/get_started/introduction)
- Generative model: [OpenAI](https://openai.com/)
- Vector database: [Pinecone](https://docs.pinecone.io/home)
- Component library: [shadcn/ui](https://ui.shadcn.com/)
- Styling: [Tailwind CSS](https://tailwindcss.com/)## Quickstart
### 1. Clone this repository
Run the following command to clone the repo:
```
git clone https://github.com/DraganAleksic99/chat-with-pdf.git
```### 2. Install dependencies
```
cd chat-with-pdf
npm i
```### 3. Fill out secrets
```
cp .env.example .env
```### 4. Seed database
```
npm run seed
```### 5. Run app locally
```
npm run dev
```### Open in your browser
You can now visit http://localhost:3000.