Skip to content

Interactive rubiks cube solver with LLMs (AGI House Open Source Hackathon 2nd Place)

Notifications You must be signed in to change notification settings

davidheineman/cube-search

Repository files navigation

Rubiks Cube Solver with LLMs

Search is seen as a pre-requisite to reasoning, where a base model proposes a few valid states and a discriminator guides states to explore. One small step in that direction is easy-to-verify explore/exploit tasks. I think cube solving is a good test-bed, and this interface allows testing multiple solution "paths" simultaneously. LLMs perform poorly! While they understand the task, they lack any heuristic towards solving it.

This interface plugs into the OpenAI API and explores different "branches" of cube solutions, giving the model 12 actions to perform on the cube (L, L', R, R', U, U', D, D', F, F', B, B'), verifying it makes a valid action, and re-prompting with the new cube.


You can automatically expands paths as well:

Credits

Setup

# Run React front-end in first terminal:
npm install
npm run dev

# Run Flask backend in second terminal:
cd api
pip install -r requirements.txt
python execute.py

About

Interactive rubiks cube solver with LLMs (AGI House Open Source Hackathon 2nd Place)

Resources

Stars

Watchers

Forks