Giter Site home page Giter Site logo

farmgpt-formula-backend's Introduction

FarmGPT-Formula-Backend

Environment

  • Python 3.9.16

API Document

Setup

  1. Write ./config.json

    • copy ./config.json.example and rename it to ./config.json
    • fill in the values
  2. Copy ./data/formula_table.example.json and rename it to ./data/formula_table.json

    • If you have your own formula table, skip this step
  3. Copy ./data/variable_class_table.example.json and rename it to ./data/variable_class_table.json

    • If you have your own variable class table, skip this step
  4. Install dependencies

    pip install -r requirements.txt

Run

Development

  • port
    • 80
python app.py

Production

  • port
    • 4667
docker-compose up

Add new formula

  1. Add new formula to your own file which format like ./data/formula_template.md

    • Example:
      ===
      
      ---
      illustrate:
      {description about this formula}
      
      ---
      
      formula:
      
      {math formula display with latex, and input variable name should like "x_1, x_2"}
      example: $out = x_1 + x_2$
      
      ---
      variable:
      {description about variable}
      example:
      
      $x_1$ = Description about $x_1$
      
      $x_2$ = Description about $x_2$
      
      ---
      chore:
      
      {other information about this formula that might be useful in the future} 
      
      ---
      variable_name:
      
      {the real variable name in the formula}
      example:
      
      $x_1$ = $C_{I}(i)$
      
      $x_2$ = $R_{K}(i)$
      
      ---
      
      ===
  2. python ./add_formula_to_table.py --data_path <your own file>

farmgpt-formula-backend's People

Contributors

roykesydon avatar

Stargazers

yrtc99 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.