• Stars
    star
    407
  • Rank 106,183 (Top 3 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Giving LLMs like GPT-4 the ability to plan and execute terminal commands

TermGPT

Giving LLMs like GPT-4 the ability to plan and execute terminal commands

Video explanation and usage examples: https://youtu.be/O4EmRi0_CI4

The notebook also breaks down how the script works.

Usage

Run with $ python3 TermGPT.py You will need to create a .env file similar to https://github.com/Sentdex/TermGPT/blob/main/.env.example, or set OPENAI_API_KEY manually.

From here, you make your programming/development request. The script will run and query GPT-4 for a series of terminal commands to run to achieve this objective. This is including, but not limited to: reading files, writing code, reading websites, running code, running terminal commands...etc.

The proposed commands are stored to a list and then presented back to the user again in bold red text, prior to running. After reviewing these commands, you can opt to run them, or not.

Future work

  • I would like to primarily find an open source model that can yield similar performance to GPT-4 in this realm.
  • Simplify and add more natural language. Most likely, starting "prompts" will need higher and lower level understanding. Rather than doing something like --r [FILENAME], I would like to have a higher level pass via the LLM to determine if any files should be read, allowing for a pure "natural language" approach, along with likely far more generalization.

More Repositories

1

pygta5

Explorations of Using Python to play Grand Theft Auto 5.
Python
3,883
star
2

NNfSiX

Neural Networks from Scratch in various programming languages
C++
1,407
star
3

GANTheftAuto

Python
842
star
4

socialsentiment

Sentiment Analysis application created with Python and Dash, hosted at socialsentiment.net
Python
464
star
5

Carla-RL

Reinforcement Learning codebase for self-driving car in Carla
Python
363
star
6

ChatGPT-at-Home

ChatGPT @ Home: Large Language Model (LLM) chatbot application, written by ChatGPT
Python
316
star
7

BCI

Brain-Computer interface stuff
Python
295
star
8

ChatGPT-API-Basics

Jupyter Notebook
289
star
9

nnfs_book

Sample code from the Neural Networks from Scratch book.
Python
283
star
10

BLOOM_Examples

Some quick BLOOM LLM examples
Jupyter Notebook
259
star
11

nnfs

Neural Networks from Scratch
Python
179
star
12

Falcon-LLM

Helper scripts and examples for exploring the Falcon LLM models
Jupyter Notebook
170
star
13

Simple-kNN-Gzip

A simplistic linear and multiprocessed approach to sentiment analysis using Gzip Normalized Compression Distances with k nearest neighbors
Jupyter Notebook
142
star
14

SC2RL

Reinforcement Learning + Starcraft 2
Python
141
star
15

QuantumComputing

Collection of Tutorials and other Quantum Computer programming related things.
Jupyter Notebook
136
star
16

cyberpython2077

Using Python to Play Cyberpunk 2077
Python
121
star
17

GPT-Journey

Building a text and image-based journey game powered by, and with, GPT 3.5
Python
82
star
18

OpenAssistant_API_Pythia_12B

Creating and Using an Open Assistant API locally (Pythia 12B GPT model)
Jupyter Notebook
76
star
19

neural-net-internals-visualized

Visualizing some of the internals of a neural network during training and inference.
Jupyter Notebook
68
star
20

reddit_spam_detector_bot

Bot that detects spam/affiliate marketing authors, and posts some stats on their threads.
Python
59
star
21

Together-API-Basics

Some information for working with the Together inference API for Open Source AI models
Jupyter Notebook
57
star
22

LLM-Finetuning

Some helpers and examples for creating an LLM fine-tuning dataset
Jupyter Notebook
54
star
23

sentdebot

Code for Sentdebot in the Sentdex discord channel (discord.gg/sentdex)
Python
53
star
24

Lambda-Cloud

Helpers and such for working with Lambda Cloud
Python
51
star
25

NEAT-samples

samples of neat code
Python
51
star
26

uarm

uArm Things
Python
29
star
27

cellvolution

Evolutionary cell-based simulation
Python
24
star
28

satisfunctions

Fighting arthritis from Satisfactory one function at a time.
Python
22
star
29

PyGTA5_Reboot

Python Plays GTA V Reboot
18
star
30

TTSentdex9000

I am a human just like you!
15
star
31

chatbotrnd

working with chatbot response scoring.
Python
13
star
32

HF-Cache-Cleanup

cleanup cached models.
Python
11
star