Skip to content

Dodelidoo-Labs/sensai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sensAI

Recursive Self Training Transformer (RSTT)

As opposed to a generative pre-trained transformer like the traditional GPTs, an RSTT recursively trains itself, and recursively improves its response until the best possible result is achieved: perfection, in the form of error-free response, continuosly improving.

In this POC, a chained solution is presented between GPT, GitHub, and Selenium.

Features

  • Generate code using GPT models based on a prompt
  • Create necessary files with correct names and write generated code to them
  • Deploy generated code to a server using automatically, using Git actions
  • Run the implementation with a Selenium instance
  • Perform visual inspections using computer vision
  • Inspect debug logs for troubleshooting
  • Loop until the desired implementation is complete and working
  • Finetune GPT Model with eventual optimizations extracted from the previous processes, to be used in the next loop

Requirements

To use this tool, you need to have the following dependencies installed:

  • Python 3.6+
  • Git
  • Selenium
  • OpenCV (for computer vision)
  • Any necessary web driver for Selenium (e.g., ChromeDriver)

You also need your own GitHub Repository with an action defined to deploy to your remote server. This involves as well creating the appropriate SSH keys, GitHub Action Secrets, and other repository variables.

Installation

  1. Clone the repository:

    git clone https://github.com/Dodelidoo-Labs/sensai.git
  2. Change into the app directory:

    cd sensai
  3. Install the required Python packages:

    pip install -r requirements.txt
  4. Download and configure the necessary web driver for Selenium. Please refer to the official Selenium documentation for specific instructions on setting up the web driver for your preferred browser.

  5. Make sure to have an .env file in the app directory with these contents (complete where necessary):

TOKEN=
BASE_URL=https://api.openai.com/v1
MODEL=gpt-3.5-turbo
MAX_TOKENS=1000
TEMPERATURE=0
FREQ_PENALTY=0
PRES_PENALTY=0
TOP_P=1.0
WORKING_DIR=

Usage

  1. Edit the variables in the sensai/app/.env file adequately, see above point 5

  2. Run the app:

    python sensai/app/main.py
  3. Provide a description of your goal when prompted, hit enter.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This project is licensed under the GPL3 License. See the LICENSE file for more details.

Acknowledgments

  • This tool utilizes the power of GPT models, Selenium, and computer vision libraries to simplify and expedite the code generation and deployment process.
  • We would like to thank the open-source community for their invaluable contributions.

Contact

For any questions or inquiries, please contact [email protected].

About

Recursive Self Training Transformer (RSTT)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages