Skip to content

A simple app to chat with your pdfs using langchain and openai

Notifications You must be signed in to change notification settings

mezamateoj/pdf-chat

Repository files navigation

Banner

GitHub code size in bytes GitHub last commit GitHub commit activity month GitHub license

📌 Overview

pdf-chat is a simple app that enables users to chat with their PDFs using langchain and openai. It relies on essential dependencies such as AWS SDK, Next.js, Pinecone, React Query, and more.

🔍 Table of Contents

📁 Project Structure

├── .eslintrc.json
├── .gitignore
├── README.md
├── components.json
├── drizzle.config.ts
├── next.config.js
├── package-lock.json
├── package.json
├── postcss.config.js
├── public
│   ├── next.svg
│   └── vercel.svg
├── src
│   ├── app
│   │   ├── api
│   │   │   ├── chat
│   │   │   │   └── route.ts
│   │   │   ├── create-chat
│   │   │   │   └── route.ts
│   │   │   ├── delete-chat
│   │   │   │   └── route.ts
│   │   │   ├── get-messages
│   │   │   │   └── route.ts
│   │   │   ├── stripe
│   │   │   │   └── route.ts
│   │   │   └── webhook
│   │   │       └── route.ts
│   │   ├── chat
│   │   │   └── [chat_id]
│   │   │       └── page.tsx
│   │   ├── favicon.ico
│   │   ├── globals.css
│   │   ├── layout.tsx
│   │   ├── page.tsx
│   │   ├── sign-in
│   │   │   └── [[...sign-in]]
│   │   │       └── page.tsx
│   │   └── sign-up
│   │       └── [[...sign-up]]
│   │           └── page.tsx
│   ├── components
│   │   ├── ChatComponent.tsx
│   │   ├── ChatSideBar.tsx
│   │   ├── FileUpload.tsx
│   │   ├── MessageList.tsx
│   │   ├── PDFViewer.tsx
│   │   ├── Provider.tsx
│   │   ├── SubButton.tsx
│   │   └── ui
│   │       ├── button.tsx
│   │       ├── input.tsx
│   │       └── progress.tsx
│   ├── lib
│   │   ├── context.ts
│   │   ├── db
│   │   │   ├── index.ts
│   │   │   └── schema.ts
│   │   ├── embeddings.ts
│   │   ├── pinecone.ts
│   │   ├── s3-server.ts
│   │   ├── s3.ts
│   │   ├── stripe.ts
│   │   ├── subscription.ts
│   │   └── utils.ts
│   └── middleware.ts
├── tailwind.config.js
├── tailwind.config.ts
└── tsconfig.json

📝 Project Summary

💻 Stack

⚙️ Setting Up

Your Environment Variable

  • Step 1

  • Step 2

🚀 Run Locally

1.Clone the pdf-chat repository:

git clone https://github.com/mezamateoj/pdf-chat

2.Install the dependencies with one of the package managers listed below:

pnpm install
bun install
npm install
yarn install

3.Start the development mode:

pnpm dev
bun dev
npm run dev
yarn dev

🙌 Contributors

☁️ Deploy

[Chat PDF](https://ai-pdfchat.vercel.app/)

About

A simple app to chat with your pdfs using langchain and openai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published