Coder Social home page Coder Social logo

mauridev777 / pdf-insight Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abhii-07/pdf-insight

0.0 0.0 0.0 547 KB

PDFInsights is an AI-powered chat application that allows users to interact with PDF documents. This application enables users to ask questions and get insights from PDF documents using natural language, making it a valuable tool for students, researchers, and professionals

Home Page: https://pdf-insight.vercel.app

JavaScript 0.75% TypeScript 95.17% CSS 4.09%

pdf-insight's Introduction

PDFInsights ๐Ÿ“š๐Ÿ’ฌ

PDFInsights is an AI-powered chat application that allows users to interact with PDF documents. This application enables users to ask questions and get insights from PDF documents using natural language, making it a valuable tool for students, researchers, and professionals.

Features ๐Ÿš€

  • PDF Document Interaction: Users can upload PDF documents and interact with their content using natural language queries.

  • Real-time Chat: PDFInsights provides a real-time chat interface that allows users to have a conversation with the AI assistant.

  • User Authentication: User accounts can be created and authenticated using Clerk, ensuring a secure and personalized experience.

  • Subscription Model: PDFInsights offers a subscription model to unlock premium features.

Technologies Used ๐Ÿ› ๏ธ

  • Frontend: Next.js, Tailwind CSS, Clerk.js, React Query

  • Backend: Pinecone AI, OpenAI

  • Database: PineconeDB

  • AI Integration: Pinecone AI for document embedding and retrieval

Getting Started ๐Ÿ

Prerequisites ๐Ÿ“‹

  • Node.js and npm (Node Package Manager) installed on your machine
  • Clerk API Key and Environment Configuration
  • Pinecone API Key and Environment Configuration
  • PDF document files for testing

Installation ๐Ÿ’ป

  1. Clone this repository:
git clone https://github.com/your-username/PDFInsights.git
cd PDFInsights
  1. Install the project dependencies:
npm install
  1. Set up the environment variables:

    • Create a .env file in the project root directory and add the following:
    # Clerk Configuration
    NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your-clerk-publishable-key
    CLERK_SECRET_KEY=your-clerk-secret-key
    NEXT_PUBLIC_CLERK_SIGN_IN_URL=your-clerk-sign-in-url
    NEXT_PUBLIC_CLERK_SIGN_UP_URL=your-clerk-sign-up-url
    NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=your-clerk-after-sign-in-url
    NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=your-clerk-after-sign-up-url
    
    # Pinecone Configuration
    PINECONE_ENVIRONMENT=your-pinecone-environment
    PINECONE_API_KEY=your-pinecone-api-key
    
    # MongoDB Configuration
    DATABASE_URL=your-mongodb-uri
    
    # Other Configuration (e.g., server port)
    PORT=3000
    
    # Amazon S3 Configuration
    NEXT_PUBLIC_S3_ACCESS_KEY_ID=your-s3-access-key-id
    NEXT_PUBLIC_S3_SECRET_ACCESS_KEY=your-s3-secret-access-key
    NEXT_PUBLIC_S3_BUCKET_NAME=your-s3-bucket-name
    
    # OpenAI Configuration
    OPENAI_API_KEY=your-openai-api-key
    
    # Stripe Configuration
    STRIPE_API_KEY=your-stripe-api-key
    NEXT_BASE_URL=your-next-base-url
  2. Start the application:

npm run dev

The application should now be running on http://localhost:3000.

Usage ๐Ÿ“

  1. Visit the application in your web browser.
  2. Sign in or create an account using Clerk.
  3. Upload a PDF document to start a conversation with the AI assistant.
  4. Ask questions or provide queries about the document content.
  5. Get real-time responses and insights from the AI assistant.

Screenshots ๐Ÿ“ท

Screenshot (285)

Screenshot (284)

Acknowledgments ๐Ÿ™

  • Clerk - For user authentication and management.
  • Pinecone AI - For AI-powered document interaction.
  • React - For building the frontend user interface.
  • Tailwind CSS - For styling the application.

pdf-insight's People

Contributors

abhii-07 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.