• Stars
    star
    395
  • Rank 106,725 (Top 3 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created about 1 year ago
  • Updated 12 months 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,864
star
2

NNfSiX

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

GANTheftAuto

Python
843
star
4

socialsentiment

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

Carla-RL

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

ChatGPT-at-Home

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

ChatGPT-API-Basics

Jupyter Notebook
292
star
8

BCI

Brain-Computer interface stuff
Python
285
star
9

nnfs_book

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

BLOOM_Examples

Some quick BLOOM LLM examples
Jupyter Notebook
258
star
11

nnfs

Neural Networks from Scratch
Python
177
star
12

Falcon-LLM

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

SC2RL

Reinforcement Learning + Starcraft 2
Python
139
star
14

Simple-kNN-Gzip

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

QuantumComputing

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

cyberpython2077

Using Python to Play Cyberpunk 2077
Python
122
star
17

GPT-Journey

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

OpenAssistant_API_Pythia_12B

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

neural-net-internals-visualized

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

reddit_spam_detector_bot

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

Together-API-Basics

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

sentdebot

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

NEAT-samples

samples of neat code
Python
50
star
24

Lambda-Cloud

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

LLM-Finetuning

Some helpers and examples for creating an LLM fine-tuning dataset
Jupyter Notebook
46
star
26

uarm

uArm Things
Python
29
star
27

satisfunctions

Fighting arthritis from Satisfactory one function at a time.
Python
23
star
28

PyGTA5_Reboot

Python Plays GTA V Reboot
18
star
29

TTSentdex9000

I am a human just like you!
16
star
30

chatbotrnd

working with chatbot response scoring.
Python
14
star
31

HF-Cache-Cleanup

cleanup cached models.
Python
10
star
32

cellvolution

Evolutionary cell-based simulation
Python
1
star