Giter Club home page Giter Club logo

pdf-chat-app's Introduction

๐Ÿค—๐Ÿ’ฌ LLM Chat App

This project is a language model (LLM) powered chatbot, designed to comprehend and respond to questions based on an uploaded PDF file. It is built using Streamlit, LangChain, and HuggingFace LLM models.

About the App

The app uses the HuggingFace Instruct embeddings to understand the content of the PDF and answer the user's queries. The document is split into chunks and embeddings are created for each chunk. These embeddings are then stored and used to answer any queries related to the document.

If you upload a PDF, the application will:

  1. Extract the text from the PDF.
  2. Split the text into chunks.
  3. Compute embeddings for each chunk.
  4. Store these embeddings for later use.
  5. Accept user queries related to the PDF.
  6. Search for the most relevant chunks to the query.
  7. Use the LLM to generate a response to the query.

Usage

To use the chatbot:

  1. Clone this repository.
  2. Replace "HUGGINGFACEHUB_API_TOKEN" with your HuggingFace API token in the app.py file.
  3. Run the Streamlit app using the command streamlit run app.py.
  4. Upload a PDF file using the file uploader in the Streamlit app.
  5. Ask a question related to your PDF file in the provided text input field.

pdf-chat-app's People

Contributors

willygru avatar

Watchers

 avatar Kostas Georgiou 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.