Git Product home page Git Product logo

requirements2architecture's Introduction

Method

Initial try

We gave each chat model the following prompts:

  1. I will give you some requirements. Please read them and answer with "ok"
  2. <... the requirements from https://github.com/panorama-research/mobstr-dataset/tree/master, omitted for license reasons ...>
  3. For these requirements, please extract the domain concepts of the system
  4. Please list the relations of these domain concepts to each other
  5. please combine the concepts and their relations into a plantuml diagram

You can see the exact responses in the respective files.

We then generated the PlantUML povided by the AI, and also created one manually from the information given.

Minor prompt engineering

After playing around with the prompts a bit, we applied some prompt engineering to see the impact on the results. We changed the prompts to the following:

  1. I will give you some requirements. Please read them and answer with "ok".
  2. <... the requirements from https://github.com/panorama-research/mobstr-dataset/tree/master, omitted for license reasons ...>
  3. You are a domain expert. Please extract all domain concepts related to this system. Do not attempt to model the system itself.
  4. Please list all relations of these domain concepts to each other. List one relation per line, output the concepts in PascalCase, like "DomainConceptA", and separate the related concepts in each line with "--". Do not explain the relations.
  5. Make the list exhaustive.

The direct generation of plantuml code does not seem to work well, so we skipped it in the second try. Instead, we generated the plantuml from the last output only, using only a few regex commands. We assume that this can be easily automated with a reasonable relability.

Results

GPT 3.5

Generated: gpt-original.png Handcrafted from the output gpt-crafted.png With prompt engineering gpt-output-2.png

LLaMA 2

Generated: llama-original.png Handcrafted from the output llama-crafted.png With prompt engineering llama-output-2.png

requirements2architecture's People

Contributors

qw3ry avatar

Stargazers

 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.