GithubHelp home page GithubHelp logo

swarno-coder / personalgpt Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 8.0 84 KB

Your own GPT-powered Personal Assistant to whom you can ORDER or INSTRUCT to do some task or search for something using your VOICE commands.

License: Apache License 2.0

Python 100.00%
easy-to-deploy easy-to-use gpt-3-5-turbo gpt-4 gpt4all llamacpp llm llm-agent llm-chain personal-assistant-engine

personalgpt's Introduction

PersonalGPT

Your own GPT-powered Personal Assistant to whom you can ORDER or INSTRUCT to do some task or search for something using your VOICE commands. Built with LangChain, GPT4All, LlamaCpp, Chroma and SentenceTransformers. -Also Supports OpenAI's GPT3, GPT4 model, Cohere.

This project is Highly Inspired by privateGPT for GPT assistance making but this project uses DeepLake VectorStores to store your dataset/files.

Installing dependencies

On Windows:

    pip install -r requirements.txt

On Linux / Mac:

    pip3 install -r requirements.txt

Setting Environment Variables

Open the PersonalGPT/env_vars.py

and edit the variables appropriately in the env_vars.py file.

MODEL_TYPE: supports LlamaCpp, GPT4All, OpenAI & Cohere
PERSIST_DIRECTORY: is the folder you want your vectorstore in
MODEL_PATH: Path to your GPT4All or LlamaCpp supported LLM
MODEL_N_CTX: Maximum token limit for the LLM model
MODEL_N_BATCH: Number of tokens in the prompt that are fed into the model at a time. Optimal value differs a lot depending on the model (8 works well for GPT4All, and 1024 is better for LlamaCpp)
EMBEDDINGS_MODEL_NAME: SentenceTransformers embeddings model name (see https://www.sbert.net/docs/pretrained_models.html)
TARGET_SOURCE_CHUNKS: The amount of chunks (sources) that will be used to answer a question
VOICE_MODEL=pyttsx3
VOICE_REC_ENGINE=SpeechRecognition
API_KEY=OpeAI or Cohere API Key

Instructions for ingesting your own dataset

Put any and all your files into the source_documents directory

The supported extensions are:

  • .csv: CSV,
  • .docx: Word Document,
  • .doc: 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,
  • .ppt: PowerPoint Document,
  • .txt: Text file (UTF-8),
  • .xls: Excel Spreadsheet
  • .xlsx: Excel Spreadsheet

Give the following command to ingest all the data.

Run PersonalGPT

On Windows:

    python run_PersonalGPT.py

On Linux / Mac:

    python3 run_PersonalGPT.py

Now Give Voice commands whatever you use

open browser
load my files
ask gpt
tell me a joke
open youtube

and many more

This module is free to use, modify, share

Contribution is open for everyone, if you find some issue feel free to pull an Issue request or you've fixed this then do a PR

Thank You, for reading this.

personalgpt's People

Contributors

swarno-coder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

personalgpt's Issues

[✨FEATURE] Add Llama 2 support in this project.

Currently, it works on OpenAI API and Cohere API but I want to add Llama 2 support in this module.

Rules:

  • You have to only work on supporting Llama2 support
  • You don't have to update or change project structure
  • After submitting the working screenshot it will get merged

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.