from Hacker News

Show HN: YAML to Django Using ChatGPT

by lofties on 5/24/23, 2:15 PM with 1 comments

Like most of us, I've been obsessively playing with various LLMs. This lead me to an idea, can we take a YAML file with loosely defined models, and turn this into a full-fledged Django application using LLMs? As it turns out we can!
  • by verdverm on 5/24/23, 6:13 PM

    As you'll likely have found out, or will, this is difficult to scale, keep reliable, and ensure correctness.

    I've written a tool to go from declarative config to code: https://github.com/hofstadter-io/hof

    We are using LLMs to write the JSON or Yaml part to be the input to hof, which can now interface with OpenAI and Google models directly now. This opens up the possibility to have modules for code gen'n anything with an LLM interface with all the prompts packaged along side it

    There are interesting intersections of LLM and declarative code gen for sure!