GithubHelp home page GithubHelp logo

jariass2 / privatellama Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nanospeck/privatellama

0.0 0.0 0.0 283 KB

Interact privately with your documents using the power of LLAMA 2, 100% privately, no data leaks

License: MIT License

JavaScript 53.78% Python 39.68% CSS 6.54%

privatellama's Introduction

PrivateLLAMA (LLAMA 2)

Create a QnA chatbot on your documents without relying on the internet by utilizing the capabilities of local LLMs. Ensure complete privacy and security as none of your data ever leaves your local execution environment. Seamlessly process and inquire about your documents even without an internet connection. Inspired from SamurAIGPT

pgpt

Contents

Getting started

Code is up, โญ (Star) the repo meanwhile to receive updates

Follow Akhil on twitter for updates

Requirements

  • Python 3.8 or later
  • NodeJS v18.12.1 or later (nvm install 18.12.1 to upgrade)
  • Minimum 16GB of memory

How to run

  1. Go to client folder and run the below commands

    npm install   
    npm run dev
  2. Copy the example.env template into .env

    cp example.env .env
  3. Go to server folder and run the below commands (feel free to use virtual env)

    pip install -r requirements.txt # for some it might be pip3 instead of pip
    python privateLLAMA.py # for some it might be python3 instead of python
  4. Open http://localhost:3000, click on download model to download the required model initially

  5. Upload any document of your choice and click on Ingest data. Ingestion is fast

  6. Now run any query on your data. Data querying is slow and thus wait for sometime

  7. IMPORTANT: If there are errors in model processing download the model manually from here and replace the file in folder /models

Support

Reach out Akhil on twitter to get support

Data

The supported extensions for documents are:

  • .csv: CSV,
  • .docx: Word Document,
  • .enex: EverNote,
  • .eml: Email,
  • .epub: EPub,
  • .html: HTML File,
  • .md: Markdown,
  • .msg: Outlook Message,
  • .odt: Open Document Text,
  • .pdf: Portable Document Format (PDF),
  • .pptx : PowerPoint Document,
  • .txt: Text file (UTF-8),

privatellama's People

Contributors

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