Giter VIP home page Giter VIP logo

justragit's Introduction

Retrieval-Augmented Generation (RAG) Project

The Retrieval-Augmented Generation (RAG) Project is designed to transform how we interact with document data, offering a streamlined approach to analyze, vectorize, and comprehend files using state-of-the-art technologies. At the heart of RAG is Weaviate, an AI-powered vector database that facilitates efficient document vectorization. The project leverages the Langchain framework for creating robust data pipelines and Streamlit for crafting interactive user interfaces.

Key Features

  • PDF Upload: Securely upload PDF documents to be processed.
  • Text Extraction: Utilize advanced algorithms to extract text from PDFs, breaking down content into manageable segments.
  • Chunk Storage: Efficiently store extracted text chunks in Weaviate, ensuring quick retrieval and organization.
  • Embeddings Retrieval: Generate and retrieve document embeddings, enabling deep semantic search and analysis.
  • LLM Integration: Seamlessly integrate with Large Language Models for enhanced comprehension and generation tasks.

Getting Started

Prerequisites

Ensure you have Python 3.x installed on your machine. This project relies on several advanced Python libraries, including Langchain, Weaviate, and Streamlit, to provide a comprehensive document analysis and vectorization solution.

Installation

  1. Clone the Repository

    Start by cloning the RAG project repository to your local machine:

    git clone <repository-url>
  2. Install Dependencies

    Navigate to the project directory and install the required Python libraries:

    cd path/to/rag-proect[justRagit]
    pip install -r requirements.txt
  3. Usage: Indexing

Once installation is complete, you're ready to run the main application:

python src/main.py --pdf_file="path/to/your/document.pdf"
  1. Usage: Embedding and Retrieval

Retrive text data based on given query. Uses gpt-3.5-turbo-0613 model to generate answer index two sample files from directory named 'pdf' returns the answers based on top 5

  1. Running GUI

use streamlit run gui.py

DEMO

Video for first miletone : Watch the video

Video for second milestone: https://www.youtube.com/watch?v=HD_PS3HMkCk

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.