• Stars
    star
    255
  • Rank 159,729 (Top 4 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Prompt Description Language [POC]

Prompt Description Language (V0.1.1 POC)

Description

PDL (Prompt Description Language) format provides an extensible way to describe the behavior and characteristics of prompts. Inspired by json/yaml/toml/markdown designs, PDL aims to minimize the token count compared to json/yaml/toml/markdown.

Basic Syntax Description

The basic rules of the PDL structure are as follows:

  • {} represents a structure, and . is also used to express hierarchical structure.
  • @ represents a reference to a specified structure field.
  • import signifies the importation of the structure referenced by @.
  • In Key: Value key-value pairs, the Key generally does not need to be enclosed in quotes (unless it contains other special characters, in which case single or double quotes can be used). Value can take the following forms:
    • Key: "value"
    • Key: ["v1", "v2"]
    • Key: {k1: 'v1', k2: 'v2', k3: 'v3', ...}
    • Key: {'1/3': 'v1', '2/3': 'v2', '3/3': 'v3'}
    • Key: "<Value>"
    • Key: "<Value>" / None
  • Key [ v1, v2, ...], used to define a sequence.

Usage Case`

Example:Mr.Trans

TODO

Despite its advantages in design, PDL still has some potential drawbacks or limitations:

  • Complexity: The syntax of PDL can be relatively complex, especially for those unfamiliar with programming or scripting languages. This may make it difficult to create and modify PDL files, especially for complex model behaviors.
  • Lack of documentation and tutorials: Since PDL is a specialized language that is not widely used, there may be a lack of sufficient tutorials and documentation, which can increase the difficulty for new users to learn and use it.
  • Scalability and flexibility: Although PDL is designed to be an extensible language, it may still encounter situations where it cannot accommodate certain specific needs, especially when dealing with uncommon or unusual AI model behaviors.
  • Tool support: Due to PDL not being a widely adopted language, there may be a lack of corresponding development and debugging tools, which can impact development efficiency and quality.
  • Readability and maintainability: If a PDL file becomes too large or its structure becomes overly complex, it can affect its readability and maintainability. This is particularly true when lacking proper documentation and comments, which can make subsequent maintenance work difficult.

Based on actual use cases and requirements, there may be additional specific challenges and issues that need to be addressed.

More Repositories

1

tao-of-rust-codes

《Rust编程之道》随书源码
Rust
1,187
star
2

inviting-rust

Rust实战视频课程代码示例
Rust
350
star
3

rustchat

Develop GPT as a "magic" system for assisting Rust learning. move to https://github.com/Illumine-Labs/RustChat
201
star
4

the-tao-of-rust-programming-v2

Rust 编程之道【新版/第二版】
JavaScript
109
star
5

actix-workshop-rustconasia2019

RustConAsia 2019大会workshop
Rust
65
star
6

star-rust

Inventory of the world’s outstanding Rust open source projects, which are different from awesome-rust.
64
star
7

rust-code-reading-club

Rust 源码阅读俱乐部
60
star
8

The-Rust-Way-of-Programming

Write a Rust programming book in English, dedicated to Rust-loving friends around the world.
51
star
9

rust-code-review-guidelines

Rust Code Review Guidelines , RCRG
26
star
10

real-world-rust-design-pattern

Real World Rust Design Pattern
26
star
11

hp-tidb-course

High Performance TiDB 课程学习记录
Shell
20
star
12

proc_codegen

觉•学社内部过程宏直播代码示例
Rust
19
star
13

rails_markitup

A MarkDown TextEditor with jQuery and Markitup! and redcarpet
JavaScript
19
star
14

2021soaring

2021 牛气冲天
Rust
14
star
15

raspberrypi-os-tutorials-notes

学习笔记 | 用 树莓派4 写操作系统
12
star
16

mongoid_counter_cache

Mongoid Counter Cache
Ruby
11
star
17

project-based-learning-rust

Project Based Learning Rust
11
star
18

goliath-api-template

使用Goliath实现高性能微服务API 完整模板(仅供参考)
Ruby
9
star
19

tao-of-rust-fix

Rust编程之道•求真集
7
star
20

shell_explain

wrapped up http://explainshell.com input from terminal
Ruby
7
star
21

rust-nn

Rust Deep Neural Network
Rust
7
star
22

attractive_ruby

Attractive Ruby(诱人的Ruby) - Ruby学习视频课程示例代码
Ruby
6
star
23

maru-api-template

基于Elixir的Maru框架快速开发API微服务的模板项目
Elixir
4
star
24

rocket-api-template

基于Rocket框架快速建立API微服务Docker化的项目模板
Rust
4
star
25

rails_qaptcha

jQuery slide captcha system with jQuery & jQuery UI for Rails 3
JavaScript
3
star
26

zhanghandong.github.com

My Github Page
HTML
3
star
27

huffman-rs

Huffman with Rust
Rust
3
star
28

rhosync

Ruby
3
star
29

acts_as_local

fork it from Google code
JavaScript
3
star
30

rust-security-reference

Rust 语言安全参考
3
star
31

ruby_extend

Some Ruby Methods Extendsions, like Hash#hash_reverse,etc ...
Ruby
3
star
32

rust-ecosystem-landscape

The Rust Ecosystem Landscape
2
star
33

tm_syntax_highlighting

A Rails plugin that provides helpers to highlight code with pretty TextMate-style highlighting.
Ruby
2
star
34

mazes_for_programmers

mazes for programers翻译日常以及出版后的勘误
HTML
2
star
35

mars

blog
Ruby
2
star
36

immortal_faction

Goliath + Redis API demo
Ruby
2
star
37

blog

simple RESTful rails blog using common plugins, heavily tested with RSpec
Ruby
2
star
38

fao

from svn
JavaScript
2
star
39

rails_highcharts

Highcharts for Rails 3
Ruby
2
star
40

montisvir

JavaScript
2
star
41

metaprogramming-ruby

translate metaprogramming ruby
1
star
42

Mr.Life

Mr.Life is your personal gpt assistant for self-discipline, assisting you in optimizing your life.
1
star
43

log_fu

Simple website hits log with MongoDB
Ruby
1
star
44

grape_api_template

Grape + Rack docker化API微服务模板
Ruby
1
star
45

cgc_demo

cgc demo code
Ruby
1
star
46

customers_management

offline app for customers_management
JavaScript
1
star
47

Recipes

Just Test App
Ruby
1
star