Git Product home page Git Product logo

the-compiler's Introduction

The-Compiler

Seed, Code, Harvest: Grow Your Own App with Tree of Thoughts!

the-compiler

Welcome to The Compiler, a novel child project under the Tree of Thoughts (ToT) paradigm. Implementation here This project is crafted with the intent of making autonomous programming not just a reality, but an effortless task for you.

In essence, The Compiler allows you to "grow" any program you can dream of. By providing a high-level specification of the product you would like, you can sit back and let The Compiler do the heavy lifting.

Agora, Creators United

The Compiler is brought to you by Agora, we're an community of creators united under the banner of Humanity. We utilize AI research as a means to solve Humanity's biggest obstacles like food production, planetary security, disease, and death

Join us and advance Humanity

Overview

The Compiler leverages the ToT framework and large language models (LLMs) to handle the programming process, from abstract specifications to a working program.

Here's a basic breakdown of the workflow:

  1. Input: You provide an abstract specification for the product you would like.
  2. Unit Tests Generation: We use an LLM on ToT to produce a suite of unit tests for the code.
  3. Run ToT: We run the Tree of Thoughts LLM on the given specification, using the generated unit tests as the evaluation score.
  4. Output: Ready to use program!

Usage

Get started with the beta:

git clone https://github.com/kyegomez/the-compiler.git

git clone https://github.com/kyegomez/tree-of-thoughts.git

pip install tree-of-thoughts

pip install transformers

pip install langchain

cp tree-of-thoughts/experiements/ -r ~.local/lib/python3.10/site-packages/

echo "export OPENAI_API_KEY=<yourapikey>" >> ~/.bashrc

echo "export OPENAI_API_BASE=https://api.openai.com/v1/" >> ~/.bashrc

source ~/.bashrc

python3 test.py

Architecture

The Compiler, leveraging the Tree of Thoughts paradigm, consists of several primary components, including the Specification Parser, Thought Decomposer, Thought Generator, State Evaluator, and the Search Algorithm.

  1. Specification Parser: This interprets your high-level input specifications and translates them into a format that the Thought Decomposer can understand and work with.

  2. Thought Decomposer: This component breaks down the programming problem into manageable "thoughts" or steps.

  3. Thought Generator: It generates potential thoughts or steps from the current state using two strategies, either sampling thoughts independently or proposing thoughts sequentially.

  4. State Evaluator: It evaluates the progress of different states towards solving the programming problem, acting as a heuristic for the Search Algorithm.

  5. Search Algorithm: This module determines which states to keep exploring and in which order. It employs either Breadth-First Search (BFS) or Depth-First Search (DFS), depending on the nature of the problem.

Roadmap

  • Integrate langchaina autogpt agent Tree of Thoughts class

  • Provide objectives to worker nodes

  • Provide access to terminal and other tools

Share The Compiler

If you find this project exciting and think others might benefit from it, feel free to share it. Use the buttons below to share it on various social media platforms:

Let's revolutionize the world of programming together with The Compiler!

the-compiler's People

Contributors

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