GithubHelp home page GithubHelp logo

atzamis / askpdf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nachocp/askpdf

0.0 0.0 0.0 458 KB

This repository includes a LLM and a streamlit application for asking questions to a PDF.

Python 93.95% Dockerfile 6.05%

askpdf's Introduction

Interactive PDF Q&A: A Retrieval-Augmented Generation Approach

Overview

This application leverages Retrieval-Augmented Generation (RAG) to enable users to interact with their PDF documents by asking questions and receiving relevant answers. The system integrates several technologies to load, process, and query documents efficiently.

Key Components

  • Langchain: Framework for orchestrating Large Language Models (LLMs).
  • PyPDF: Library for loading and processing PDF documents.
  • FAISS: Library for efficient similarity search and clustering of dense vectors.
  • Streamlit: Framework for building the interactive web application.

Prerequisites

Ensure you have Docker installed on your machine.

## How to Run the Application

  1. Clone the Repository.
git clone https://github.com/NachoCP/AskPDF.git
cd AskPDF
  1. Build the Docker Image.
docker build . -t chat-app
  1. Run the Docker Container.
docker run -d -p 8000:8000 --name chat-app chat-app
  1. Access the Application. Open your web browser and navigate to http://localhost:8000 to start interacting with your PDFs.

## Usage

  1. Upload your PDF documents via the web interface.
  2. Enter your OpenAI API key when prompted.
  3. Ask questions about the content of the uploaded PDFs.
  4. Receive responses generated by the LLM based on the content of your documents.

askpdf's People

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.