Giter VIP home page Giter VIP logo

generating_plc_code_with_llms's Introduction

generating_plc_code_with_llms

Dependencies

To install all required dependencies for both the application and the evaluation, run

pip install -r ./requirements.txt

Run Application

  • Set your OpenAI-API-Key to the environment variable OPENAI-KEY
    • To get your API-Key, go to following link.
    • To access the API, you may have to add a payment method and transfer some money.
  • To start the Application, run the App.py file.
  • Enter the desired functionality of your structured text.
  • You can enter multiple lines with the 'Enter'.
  • To submit your request, press the 'Enter'-key twice.
  • For better results, please send the variables you wish to use.

    VAR
    // your variables
    END_VAR

  • Enter quit any time to exit the program.

Run Evaluation

The Evaluation generates three times 21 structured text programmes with and without prompt optimization and saves them into Code#1 and Code#2. The file calculates the codeBERTScore, stops the time and saves them into there respective files.

  • Go to following links Code Llama, Platypus2, StableCode and download each file. This may take a while.
  • Save them to a folder names models above your current directory
  • Run the file

generating_plc_code_with_llms's People

Contributors

kilian-tran avatar jinaz avatar jerome-pfeiffer1 avatar

Stargazers

 avatar

Watchers

Christoph Hinze avatar Andreas Wortmann 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.