Giter Club home page Giter Club logo

headlong's Introduction

Headlong is a framework for human users to create and curate high quality chain-of-thought datasets and use them in AI Agents. screenshot of Headlong webapp

Architectural Parts

The webapp frontend is in packages/webapp - it's a vite Typescript project.

The webapp depends on a thought_server (found in packages/thought_server) which is written in Python and wraps LLMs for thought generation.

The environment is in packages/env - it's a node daemon written in Typescript. you should run this in a docker container or EC2 instance.

The environment uses GPT4 function calling to use tools, including a terminalServer that itself wraps ht (headless terminal).

The webapp communicates with the environment via a Supabase thoughts table and Supabase's realtime system.

install and run

### == ht ==
# Download latest ht binary from https://github.com/andyk/ht/releases/latest
# and make sure it is on your path.

### == thought server ==
# in a new terminal 
cd packages/thought_server
# You need python >= 3.10 since we use the `match` syntax. 
virtualenv venv
. ./venv/bin/activate
pip install -r requirements.txt
# make sure you create or get a copy of thinkers.yaml and put it into ./
. ./launch.sh

### == headlong UI webapp ==
cd packages/webapp
npm install
npm run dev

## By default your webapp will connect to the main env running in EC2
## via supabase realtime. If you want to override that and use a local
## env, then you'll need to run the terminalServer and env locally.
## We strongly recommend you run these in a docker instance.

### == terminal server ==
# in a new terminal 
cd packages/env
npm install
npm run terminalServer

### == env daemon ==
# in a new terminal 
cd packages/env
npm run env

headlong's People

Contributors

andyk avatar recarroll avatar justin-iteratively avatar justin-fiedler avatar

Stargazers

Zack Ankner avatar  avatar  avatar  avatar Andrei Surugiu avatar Chad Norvell avatar wolfi3 avatar Moustafa AbdelBaky avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

recarroll

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.