neokd / NeoGPT

Chat effortlessly, execute commands, and interpret code with Llama3, Phi3, and more - your local AI assistant. Enjoy seamless interaction while ensuring ultimate privacy
https://neogpt.dev
MIT License
68 stars 62 forks source link
chatgpt llama3 mistral ollama phi3 python

NeoGPT 🚀

[![GitHub license](https://img.shields.io/github/license/neokd/NeoGPT?style=flat-round&color=blue&logo=github)](https://github.com/neokd/NeoGPT/blob/main/LICENSE) [![GitHub issues](https://img.shields.io/github/issues/neokd/NeoGPT?style=flat-round&color=green&logo=github)](https://github.com/neokd/NeoGPT/issues) [![GitHub stars](https://img.shields.io/github/stars/neokd/NeoGPT?style=flat-round&color=yellow&logo=github)](https://github.com/neokd/NeoGPT/stargazers) [![GitHub forks](https://img.shields.io/github/forks/neokd/NeoGPT?style=flat-round&color=orange&logo=github)](https://github.com/neokd/NeoGPT/network) [![Google Collab](https://img.shields.io/badge/Colab-F9AB00?style=flat-round&logo=googlecolab&labelColor=525252)](https://colab.research.google.com/drive/1ngzHdvoHfbSXZaeW5dBA__W4oHGLTQhV?usp=sharing)

Currently We are in the development phase and are in progress of removing langchain as a dependency from the existing codebase. We are also working on adding more features to the CLI .

Documentation | Discord

Intro Image


pip install neogpt

Not working? Read our setup guide here

$ neogpt

Introduction

NeoGPT is an AI assistant that transforms your local workspace into a powerhouse of productivity from your CLI. With features like code interpretation, multi-RAG support, vision models, and LLM integration, NeoGPT redefines how you work and create. Join the revolution and experience a new era of efficiency with NeoGPT.

NeoGPT is continuously evolving, and your feedback shapes its future. Join our Discord community to stay up to date with the latest developments.

Table of Contents

Getting Started

  1. Installation: Clone this repository and install the necessary dependencies.

      git clone https://github.com/neokd/NeoGPT.git
      cd NeoGPT/neogpt
      pip install -r requirements.txt
  2. Building Database Currently NeoGPT supports local files and Youtube videos. To build the database add your local files to the documents directory and URL in the builder.url file. Then run the builder script.

       python main.py --build

    This will create a database file in the neogpt/db folder. You can also specify the database to use by using --db flag. Supported databases are:

    • Chroma (default)
    • FAISS

    Currently the database is built using 2 papers as reference:

  3. Run NeoGPT: Run the CLI to start using NeoGPT. Requires Python v3.10. You can use the --help flag to view the available commands and options.

    python main.py

    You can also use --ui flag to run the Streamlit UI.

    python main.py --ui
  4. Project Documentation: To view the project documentation, run the following command in your terminal or command prompt (Development ⚠️)

    cd docs
    npm i mintlify
    mintlify dev

Features

Quick Start

pip install https://github.com/neokd/NeoGPT/releases/download/v0.1.0/neogpt-0.1.0-py3-none-any.whl

Terminal

After installing the package, you can run the CLI by typing the following command in your terminal.

$ neogpt

Python

from neogpt import db_retriever

chain = db_retriever()

chain.invoke("What operating system are we on?")

Commands

Code Interpreter

To use the Interpreter, type the following command in your terminal.

$ neogpt --interpreter

Build Vector Database

To build the vector database, type the following command in your terminal.

$ neogpt --build

Run Streamlit UI

To run the Streamlit UI, type the following command in your terminal.

$ neogpt --ui

Change Your LLM

Offline LLM

To change your LLM, type the following command in your terminal.

$ neogpt --model ollama/bakllava

Online LLM

To change your LLM, type the following command in your terminal.

Warning: Add your API key to the .env file before running the command.

$ neogpt --model together/mistralai/Mistral-7B-Instruct-v0.2

Magic Commands

Contributing

We welcome contributions to NeoGPT! If you have ideas for new features or improvements, please open an issue or submit a pull request. For more information, see our contributing guide.

License

This project is licensed under the MIT License - see the LICENSE file for details. Let's innovate together! 🤖✨