Code Monkey home page Code Monkey logo

chatpdf's Introduction

ChatPDF

The repository on application built for question answering on uploaded PDF using Retrieval Augmented Generation.

LLM - TheBloke/Llama-2-7B-Chat-GGML

Language model Framework - Langchain

VectorDB - ChromaDB

Frontend - Streamlit

The application makes use of the quantized Llama 2 as the backend LLM. Quantization can dramatically reduce the memory and computation required to run the model by decreasing the precision of the model's parameters and activations. As a result, running the model on hardware with constrained resources could be achieved using quantized model. It used the Langchain framework for the data processing and content retrieval from the vector store whereas streamlit is used for the frontend framework. The application lets you upload any type of PDFs after which the backend code extracts the content from it which is converted to embeddings. The embeddings are stored in Faiss vector store for the similarity matching based on the prompts. When a prompt is sent, it fetches the results from the vector store on similarity search and combines with the relevant document contents which is then send to the LLM for the text generation.

Retrieval Augmented Generation Workflow

RAG Workflow

Application Screenshot

Screenshot of the Application

chatpdf's People

Contributors

anwarbabukm avatar

Watchers

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