Hey all, I shared this idea a few months ago over in
#thinking-together:
https://futureofcoding.slack.com/archives/C5T9GPWFL/p1700418506013839
We just open sourced this concept we've been working on for programming with LLMs we're calling Blueprints. It is kind of an alternative to coding copilots. It allows you to capture patterns/sections/chunks/classes/etc of your code to store as a "blueprint" then use those blueprints as a base template for generating something new - in your particular style. Think about it similarly to how when you work on a new feature, a lot of the time there's similar code in your codebase that you look at and modify for this new use case you're working on.
The way it works is that when you capture a blueprint, the server generates a description with GPT4 along with vector embeddings of that description so that the next time you want to do something you just need to describe it, it finds the closest description, and uses the description+code to prompt for the new code generation.
Would love feedback or to chat if this sounds interesting to anyone!
Repo here:
https://github.com/sublayerapp/blueprints
Short demo of it in action here:
https://www.loom.com/share/727e449a764e4362b28a74460db84655