Coder Social home page Coder Social logo

au2mater / mygpts Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 1.67 MB

Allow everyone in your organisation to create their own personlized GPT Chat Assistants with custom "rules" and knowledge sources, using a simple graphic user interface and without any coding.

License: GNU General Public License v3.0

Python 99.96% Batchfile 0.04%

mygpts's Introduction

MyGPTs 🗨️

A simple user interface for easily creating, sharing and chatting with assistants based on GPT models.

Creating and sharing custom chatbots has never been easier! The goal of this app is to allow everyone in an organization to create their own personalized GPT Chat Assistants with custom "rules" and knowledge sources (RAG), using a simple graphic user interface and without any coding.
Setting up the app might require some technical knowledge. If you already have access to an OpenAi API, Azure OpenAi API or have LM Studio running locally, this can be done in a few minutes.
When the app is launched, everyone with access to the app can create, share and chat with their own custom made assistants.

Oprah meme: You get a GPT! You get a GPT! Everyone gets a GPT!

Table of contents

Features

Assistants

  • Allow anyone to create and edit their own GPT Chat Assistants
  • Add documents and websites to the assistant's knowledge base (Drag and drop RAG).
  • No coding required

Models
APIs currently supported:

  • Azure OpenAi
  • OpenAi
  • Local models served using LM Studio
  • Any Chat API compatible with openai-python library

Privacy
This app runs locally on your server.
Besides the optional OpenAi or Azure API calls, no data is collected.
The only external data transfer happens when using OpenAi and Azure OpenAi APIs.
If you want full privacy, use an open-source local model through LM Studio. In this case everything should run on-premise and no data will leave your organisation.
Knowledge sources are indexed in a local vector database using a locally downloaded open-source embeddings model.

Languages
User interface languages currently supported:

  • Danish

Knowledge base sources currently supported
PDF, DOC, DOCX, MD, TXT, and web URLs

Installation

Docker

Prerequisites

Before you can run this application, you need to have the following installed on your server or local machine:

Setup

  1. Clone the repository to your local machine or download as a zip file and extract it.
  2. In a terminal: Navigate to the project directory in your terminal, the folder named 'MYGPTS'. For windows and linux:
cd <path to project directory>/MYGPTS
  1. Build the docker image: For windows and linux:
docker build -t mygpts:latest .

Local virtual environment

Prerequisites

Before you can run this application, you need to have the following installed on your server or local machine:

pixi install pipenv

Setup

  1. Clone the repository to your local machine or download as a zip file and extract it.
  2. In a terminal: Navigate to the project directory in your terminal, the folder named 'MYGPTS'. For windows:
cd <path to project directory>/MYGPTS
  1. Install the project dependencies using Pipenv by running the following command:
pipenv install
  1. Activate the virtual environment:
pipenv shell
  1. With the environment still activated, run the following command to setup the databases:
python scripts\setup.py

Congrats! 🎉 You're ready to run the app.

Running the app

  1. Start the app:
    a. If your using docker, run the docker image:
    docker run -p 8501:8501 mygpts:latest
    b. If you're using a local virtual environment, in the scripts folder, run the the start_app.bat file.

A server should start up on port 8501 and a browser tab should open with the app interface.

  1. In the browser tab, add /?admin to the url and press enter.


    Example: http://localhost:8501/MyGPTs/?admin

  2. You will now be presented with an admin interface where you can add your model APIs to the app.
    Click the 'Tilføj ny model' button and fill out the form.
    To start creating and sharing assistants press the 'Mine assistenter' button.

Start building and sharing your GPTs.

Prototype in Beta

Please note that this app is currently in beta and is still a prototype. Breaking changes may occur as I continue to improve and refine the functionality. I appreciate your understanding and feedback as I work towards a stable release.

Version: 0.3.4

Built using Streamlit, LangChain and ChromaDB.

Screenshots

Screenshot of assistant builder.


Screenshot of assistant builder.


Screenshot of chat interface.

mygpts's People

Contributors

au2mater avatar nanoqdev avatar

Stargazers

 avatar  avatar  avatar Morten Ingemann Zeiner avatar Alexandre Roberto de Oliveira avatar  avatar

Watchers

Morten Ingemann Zeiner avatar  avatar

Forkers

nanoqdev

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.