Coder Social home page Coder Social logo

tmp's Introduction

NO CODE SOFTWARE FROM GRAPHS

Task & Pbm

Automatised code generation from diagrams using Large Language Models:

  • The basis for the code is a combination of diagrams with nodes described with natural language snippets and test data
  • Automatised code generation is realised in interaction with large language models

Solution

In a nutshell:

  1. Diagram structure is being parsed.

  2. A conversation with the language model is used to generate the necessary code snippets.

  3. Data snippets are used to stabilise the code, by looping over the errors and asking the language model to improve.

Simple Task

We choose as simple task the transformation of any latine characters into their next character in the alphabet. Other characters are just simply filtered out.

examples:

  • abc -> bcd
  • z -> a
  • nmkza rfa -> omlab sgb

Diagrams

The task above has been implemented in lucidchart into the following subdiagrams:

ls resources/FullDemo.p* resources/FullDemo.pdf resources/FullDemo.jpg

Alt text

Notice that Transliteration is the entry point.

Run

  1. Parse the diagram and create a computerised version: julia build.jl --path-lucidchart-csv resources/FullDemoWithTest.csv --brain-entry transliteration --path-model resources/FullDemoWithTest.dat

  2. run or and generate code (if files not available in /snippets): julia run.jl --path-model resources/FullDemoWithTest.dat --text "abcdz hgq"

Test Data

Test Data is used to finetune the generated code and make sure it works as expected. See Test Data in: resources/FUllDemoWithTestData.csv.

tmp's People

Contributors

gilgameshjw avatar

Watchers

 avatar

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.