Skip to content

samgregson/GHPT-experiments

Repository files navigation

Lint and Test

GHPT-experiments

This is inspired by GHPT: https://github.com/enmerk4r/GHPT

The aim is to "flow engineer" a Large Language Model (LLM) powered program to generate Grasshopper3d scripts based on a user prompt as input.

This repo goes as far as generating JSON formatted string which can be ingested by a custom Grasshopper component. The JSON string structure is aligned with the structure in the original GHPT repo (see above).

A modified GHPT version (saved in a separate branch) can be found here:

https://github.com/samgregson/GHPT/tree/llm-result-as-input

This allows JSON input to be used directly to allow for testing the output of the colab notebook to aid development and test validity of generated JSON.

image

Get Started (in VS Code)

  • clone repo
  • run pip install -r requirements.txt to install dependancies
  • run pip install jupyter to install dependancies
  • run pip install -e . to install the project module
  • set up OPENAI_API_KEY in .env file (assuming you have set one up)

Built With

Contributing

There are two ways to contribute to the notebook files, via Google Colab or locally in and IDE such as VS Code

  1. clone the repository
  2. create a new branch with suitable name to reflect the changes you will make

Colab

  1. open the colab notebook in google colab
  2. modify the notebook as required
  3. "save a copy in github"

image 6. select the correct branch and write a suitable commit message (not as below)

image

  1. make a pull request

Local

  1. modify any file
  2. push changes to your new branch
  3. make a pull request

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published