Skip to content

ygit/chat-with-pdf

Repository files navigation

Chat with PDF

This project allows users to upload a PDF file, generate a summary using AI, and interact with the AI to ask questions about the PDF content.

Features

  • Upload PDF files to Cloudflare R2
  • Generate summaries using Workers AI
  • Create vector embeddings and store them in Vectorize
  • Chat with AI to ask questions about the PDF content

Installation

  1. Clone the repository:
git clone https://github.com/ygit/chat-with-pdf
cd chat-with-pdf
  1. Install dependencies:
npm install
  1. Create an R2 bucket and update the binding in the wrangler.toml file. Follow the documentation to learn how to create a new bucket.

  2. Create a Vectorize database and update the bindings in the wrangler.toml file. Follow the documentation to learn how to do this.

Development

To start the development server, run:

npm run dev

Navigate to localhost:8787 to view the app.

Deployment

To deploy the project, use

npm run deploy

Contributions

Contributions are welcome. Please open an issue to report any bugs.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published