Code Monkey home page Code Monkey logo

adding-private-data-to-llms's Introduction

Open In Colab

Adding Private Data to LLMs

LLMs have stunned the world with their capacity to create realistic images, code, and dialogue. Undoubtedly, ChatGPT has taken the world by storm. Millions are using it. But while it's great for general-purpose knowledge, it only knows information it was trained on, which is pre-2021 generally available internet data. It lacks awareness of your private data and remains uninformed about recent data sources. Thus, to improve them in that regard, we can provide them with information that we retrieved from a search step. This makes them more factual and gives a better ability to provide the model with up-to-date information, without the need to retrain these massive models. This is precisely what a retrieval-augmented LLM or Retrieval-Augmented Generation (RAG) system is. Indeed, this repository will precisely outline the creation of an RAG system and elucidate the optimization steps involved.

Table of Contents

RAG

Tech Stack

  • LangChain
  • LlamaIndex
  • Azure OpenAI
  • Gradio

Installation

  1. Clone the Github repository

    git clone https://github.com/zekaouinoureddine/Adding-Private-Data-to-LLMs.git
  2. Requirements Cd to the project directory and ensure that you have Python 3 installed, along with the necessary dependencies.

    cd Adding-Private-Data-to-LLMs
    pip install -r requirements.txt
  3. Run the Gradio app

    python rag.py

Visit http://127.0.0.1:7860 on your machine to test the app. You should see something like the following:

Useful Links

Blog Plateform Language Notebook
Ask Your Own Data Hiberus Blog ES Open In Colab
Ask Your Own Data Medium EN Open In Colab
Ask Your Web Pages Hiberus Blog ES Open In Colab
Ask Your Web Pages Medium EN Open In Colab

Contact

If you like it, give it a โญ, then follow me on:


Back To The Top

adding-private-data-to-llms's People

Contributors

zekaouinoureddine 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.