chat-pdf Svelte Themes

Chat Pdf

Proyecto de astro y svelte en el cual se chatea con IA sobre el documento pdf pasado, basado en el proyecto de midudev: https://github.com/midudev/chat-with-pdf

Chat PDF

A simple chat application that allows users to upload PDF files and ask questions about the content.

Prerequisites

  • Node.js (v18 or higher)
  • npm (v9 or higher)

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/chat-pdf.git
    
  2. Navigate to the project directory:
    cd chat-pdf
    
  3. Install dependencies:
    npm install
    

Configuration

  1. Create a .env file in the root directory:
    • Linux/Mac:
      touch .env
      
    • Windows:
      type nul > .env
      
  2. Add the following environment variables:
    VITE_GEMINI_API_KEY=your_gemini_api_key_here
    VITE_CLOUDINARY_API_KEY=your_cloudinary_api_key_here
    VITE_CLOUDINARY_SECRET=your_cloudinary_secret_here
    

Running the Project

Start the development server:

npm run dev

Testing

Run the test suite:

npm test

Top categories

Loading Svelte Themes