Giter Site home page Giter Site logo

eli's Introduction

ELI - Your AI-powered Personal Coding Assistant

โš ๏ธ - You need a OpenAI auth token to make Eli work. You can find more here OpenAI

๐Ÿ“ฆ - Check out Eli on PyPI (PIP)

Eli is a CLI-based Personal AI assistant that is powered by the GPT-3 / GPT-4 versions supported by MindsDB. Made especially for terminal users like Arch-ers [pun intended] . Btw this application was written in Arch Linux.

Installation

Make sure you have pip and python >= 3.6 installed on your machine and follow the steps.

1. Setup the package

Option A - Download from PyPI archive
pip install -U eli-pa
Option B - Download from GitHub archive
pip install git+http://github.com/AvaterClasher/eli.git

โš ๏ธ: Eli is POSIX-friendly. For it to properly work on Windows please run Eli through a Wsl instance.

2. Set the MINDSDB_EMAIL_ADDRESS environment variable

Once you got the package installed on your system, it's time to add the MINDSDB_EMAIL_ADDRESS environment variable. Create an account on mindsdb.com, train your GPT model and replace your email with <EMAIL> in the following options.

> If you use the default bash shell
echo "export MINDSDB_EMAIL_ADDRESS=<EMAIL>" >> ~/.bashrc
> If you use ZSH
echo "export MINDSDB_EMAIL_ADDRESS=<EMAIL>" >> ~/.zshrc

๐Ÿ’ก: Read the article for more information about training your MindsDB model.

3. Set your MindsDB account password

Now, it's time to set your account's password. Simply run eli with the --auth option and enter your MindsDB account password.

eli --auth

You're all set to go. :)

Usage

Use eli followed by your question and it'll process the phrase and responses back the content in Markdown.

$ eli where is london located

London is the capital city of the United Kingdom and is located in the southeastern part of England, in the region known as Greater London.
It is situated along the River Thames and is one of the most populous and culturally significant cities in the world.
$ eli tell me a programming joke

Why do programmers prefer iOS development over Android development?
Because on iOS, you only have to deal with one "byte."
$ eli add annotations to this file: $(cat file.py)

To add annotations to the given Python function, you can include comments and
docstrings to provide more information about the function's purpose and usage.
Here's an example:

    def factorial(n):
    """
    Calculate the factorial of a non-negative integer.
    """
    if n < 0:
        raise ValueError("Factorial is not defined for negative numbers")
    return 1 if n == 0 else n * factorial(n - 1)

# Example usage:
number = 5
result = factorial(number)
print(f"The factorial of {number} is {result}")

Tech Stack

License

Eli is being licensed under the MIT License.

eli's People

Contributors

avaterclasher avatar

Stargazers

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