Skip to content

Commit 79ff622

Browse files
committed
Anonymized repo
Signed-off-by: Louis Mandel <[email protected]>
1 parent bcfabe8 commit 79ff622

File tree

7 files changed

+92
-128
lines changed

7 files changed

+92
-128
lines changed

.vscode/launch.json

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,11 @@
99
"type": "python",
1010
"request": "launch",
1111
"module": "src.pdl.pdl",
12-
"justMyCode": true,
12+
"justMyCode": false,
1313
"args": [
14-
// "/Users/lmandel/ml4code/pdl-internal/talks/2024-0819-pdl-examples/03_chatbot.pdl",
15-
// "-i", "ast",
16-
"examples/tutorial/include.pdl",
17-
// "examples/hello/hello.pdl",
18-
// "examples/arith/Arith.pdl"
19-
// "examples/hello/weather.pdl"
20-
// "examples/joke/Joke.yaml"
21-
// "examples/thing/Thing.yaml"
22-
// "examples/teacher/teacher.pdl"
23-
// "examples/talk/5-hello.pdl",
24-
// "/tmp/a.pdl",
25-
// "a.pdl"
26-
// "--stream", "none",
14+
"examples/tutorial/type_list.pdl",
2715
"--trace",
2816
]
2917
}
3018
]
31-
// "configurations": [
32-
// {
33-
// "name": "Python: Module",
34-
// "type": "debugpy",
35-
// "request": "launch",
36-
// "program": "examples/sdk/hello_str.py",
37-
// // "justMyCode": true,
38-
// }
39-
// ]
40-
// "configurations": [
41-
// {
42-
// "name": "Python: Module",
43-
// "type": "python",
44-
// "request": "launch",
45-
// "module": "pdl.benchmark",
46-
// "justMyCode": true,
47-
// "args": [ "-b", "gsm8k"
48-
// ]
49-
// }
50-
// ]
5119
}

examples/notebooks/demo.ipynb

Lines changed: 86 additions & 86 deletions
Large diffs are not rendered by default.

examples/notebooks/pdl.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"name": "stderr",
6464
"output_type": "stream",
6565
"text": [
66-
"/Users/mvaziri/.pyenv/versions/3.12.5/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
66+
"/Users/anonymous/.pyenv/versions/3.12.5/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
6767
" from .autonotebook import tqdm as notebook_tqdm\n"
6868
]
6969
}

pdl-live-react/src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "pdl"
33
version = "0.6.1"
44
description = "Prompt Declaration Language"
5-
authors = ["[email protected]"]
5+
authors = []
66
edition = "2024"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"kind": "text", "pdl__id": "text", "description": "Creating JSON Data", "defs": {"data": {"kind": "read", "pdl__id": "text.0.read", "spec": {"questions": ["str"], "answers": ["obj"]}, "defs": {}, "read": {"pdl__expr": "./gen-data.yaml", "pdl__result": "./gen-data.yaml"}, "message": null, "multiline": false, "pdl__result": "source_code: \n |\n @SuppressWarnings(\"unchecked\")\n public static Map<String, String> deserializeOffsetMap(String lastSourceOffset) throws IOException {\n Map<String, String> offsetMap;\n if (lastSourceOffset == null || lastSourceOffset.isEmpty()) { \n offsetMap = new HashMap<>(); \n } else {\n offsetMap = JSON_MAPPER.readValue(lastSourceOffset, Map.class); \n }\n return offsetMap;\n }\nrepo_info: \n repo: streamsets/datacollector\n path: stagesupport/src/main/java/com/.../OffsetUtil.java\n function_name: OffsetUtil.deserializeOffsetMap\n", "parser": "yaml", "pdl__timing": {"start_nanos": 1742524239040868000, "end_nanos": 1742524239042801000, "timezone": "EDT"}, "pdl__is_leaf": true}}, "text": [{"kind": "model", "pdl__id": "text.0.model", "spec": {"name": "str", "age": "int"}, "defs": {}, "platform": "litellm", "model": {"pdl__expr": "ollama_chat/granite3.2:2b", "pdl__result": "ollama_chat/granite3.2:2b"}, "input": {"kind": "text", "pdl__id": "text.0.model.text", "defs": {}, "text": [{"kind": "error", "pdl__id": "", "defs": {}, "program": {"kind": "read", "pdl__id": "text.0.read", "spec": {"questions": ["str"], "answers": ["obj"]}, "defs": {}, "read": {"pdl__expr": "./gen-data.yaml", "pdl__result": "./gen-data.yaml"}, "message": null, "multiline": false, "pdl__result": "source_code: \n |\n @SuppressWarnings(\"unchecked\")\n public static Map<String, String> deserializeOffsetMap(String lastSourceOffset) throws IOException {\n Map<String, String> offsetMap;\n if (lastSourceOffset == null || lastSourceOffset.isEmpty()) { \n offsetMap = new HashMap<>(); \n } else {\n offsetMap = JSON_MAPPER.readValue(lastSourceOffset, Map.class); \n }\n return offsetMap;\n }\nrepo_info: \n repo: streamsets/datacollector\n path: stagesupport/src/main/java/com/.../OffsetUtil.java\n function_name: OffsetUtil.deserializeOffsetMap\n", "parser": "yaml", "pdl__timing": {"start_nanos": 1742524239040868000, "end_nanos": 1742524239042801000, "timezone": "EDT"}, "pdl__is_leaf": true}, "msg": "Type errors during spec checking:\n/Users/lmandel/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Missing required field: answers\n/Users/lmandel/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Missing required field: questions\n/Users/lmandel/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Field not allowed: source_code\n/Users/lmandel/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Field not allowed: repo_info", "pdl__is_leaf": true}], "pdl__timing": {"start_nanos": 1742524239045652000, "end_nanos": 0, "timezone": "EDT"}, "pdl__is_leaf": false}, "parameters": {"pdl__expr": {"timeout": null, "temperature": 0.0, "top_p": null, "n": null, "stop": null, "max_tokens": null, "presence_penalty": null, "frequency_penalty": null, "logit_bias": null, "user": null, "response_format": null, "seed": null, "tools": null, "tool_choice": null, "logprobs": null, "top_logprobs": null, "parallel_tool_calls": null, "extra_headers": null, "functions": null, "function_call": null, "base_url": null, "api_version": null, "api_key": null, "model_list": null, "mock_response": null, "custom_llm_provider": null, "max_retries": null, "stop_sequences": "\n"}, "pdl__result": {"timeout": null, "temperature": 0.0, "top_p": null, "n": null, "stop": null, "max_tokens": null, "presence_penalty": null, "frequency_penalty": null, "logit_bias": null, "user": null, "response_format": null, "seed": null, "tools": null, "tool_choice": null, "logprobs": null, "top_logprobs": null, "parallel_tool_calls": null, "extra_headers": null, "functions": null, "function_call": null, "base_url": null, "api_version": null, "api_key": null, "model_list": null, "mock_response": null, "custom_llm_provider": null, "max_retries": null, "stop_sequences": "\n"}}, "def": "model_output", "parser": "yaml", "pdl__timing": {"start_nanos": 1742524239043014000, "end_nanos": 0, "timezone": "EDT"}, "pdl__is_leaf": true}], "pdl__timing": {"start_nanos": 1742524239040790000, "end_nanos": 0, "timezone": "EDT"}, "pdl__is_leaf": false}
1+
{"kind": "text", "pdl__id": "text", "description": "Creating JSON Data", "defs": {"data": {"kind": "read", "pdl__id": "text.0.read", "spec": {"questions": ["str"], "answers": ["obj"]}, "defs": {}, "read": {"pdl__expr": "./gen-data.yaml", "pdl__result": "./gen-data.yaml"}, "message": null, "multiline": false, "pdl__result": "source_code: \n |\n @SuppressWarnings(\"unchecked\")\n public static Map<String, String> deserializeOffsetMap(String lastSourceOffset) throws IOException {\n Map<String, String> offsetMap;\n if (lastSourceOffset == null || lastSourceOffset.isEmpty()) { \n offsetMap = new HashMap<>(); \n } else {\n offsetMap = JSON_MAPPER.readValue(lastSourceOffset, Map.class); \n }\n return offsetMap;\n }\nrepo_info: \n repo: streamsets/datacollector\n path: stagesupport/src/main/java/com/.../OffsetUtil.java\n function_name: OffsetUtil.deserializeOffsetMap\n", "parser": "yaml", "pdl__timing": {"start_nanos": 1742524239040868000, "end_nanos": 1742524239042801000, "timezone": "EDT"}, "pdl__is_leaf": true}}, "text": [{"kind": "model", "pdl__id": "text.0.model", "spec": {"name": "str", "age": "int"}, "defs": {}, "platform": "litellm", "model": {"pdl__expr": "ollama_chat/granite3.2:2b", "pdl__result": "ollama_chat/granite3.2:2b"}, "input": {"kind": "text", "pdl__id": "text.0.model.text", "defs": {}, "text": [{"kind": "error", "pdl__id": "", "defs": {}, "program": {"kind": "read", "pdl__id": "text.0.read", "spec": {"questions": ["str"], "answers": ["obj"]}, "defs": {}, "read": {"pdl__expr": "./gen-data.yaml", "pdl__result": "./gen-data.yaml"}, "message": null, "multiline": false, "pdl__result": "source_code: \n |\n @SuppressWarnings(\"unchecked\")\n public static Map<String, String> deserializeOffsetMap(String lastSourceOffset) throws IOException {\n Map<String, String> offsetMap;\n if (lastSourceOffset == null || lastSourceOffset.isEmpty()) { \n offsetMap = new HashMap<>(); \n } else {\n offsetMap = JSON_MAPPER.readValue(lastSourceOffset, Map.class); \n }\n return offsetMap;\n }\nrepo_info: \n repo: streamsets/datacollector\n path: stagesupport/src/main/java/com/.../OffsetUtil.java\n function_name: OffsetUtil.deserializeOffsetMap\n", "parser": "yaml", "pdl__timing": {"start_nanos": 1742524239040868000, "end_nanos": 1742524239042801000, "timezone": "EDT"}, "pdl__is_leaf": true}, "msg": "Type errors during spec checking:\n/Users/anonymous/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Missing required field: answers\n/Users/anonymous/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Missing required field: questions\n/Users/anonymous/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Field not allowed: source_code\n/Users/anonymous/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Field not allowed: repo_info", "pdl__is_leaf": true}], "pdl__timing": {"start_nanos": 1742524239045652000, "end_nanos": 0, "timezone": "EDT"}, "pdl__is_leaf": false}, "parameters": {"pdl__expr": {"timeout": null, "temperature": 0.0, "top_p": null, "n": null, "stop": null, "max_tokens": null, "presence_penalty": null, "frequency_penalty": null, "logit_bias": null, "user": null, "response_format": null, "seed": null, "tools": null, "tool_choice": null, "logprobs": null, "top_logprobs": null, "parallel_tool_calls": null, "extra_headers": null, "functions": null, "function_call": null, "base_url": null, "api_version": null, "api_key": null, "model_list": null, "mock_response": null, "custom_llm_provider": null, "max_retries": null, "stop_sequences": "\n"}, "pdl__result": {"timeout": null, "temperature": 0.0, "top_p": null, "n": null, "stop": null, "max_tokens": null, "presence_penalty": null, "frequency_penalty": null, "logit_bias": null, "user": null, "response_format": null, "seed": null, "tools": null, "tool_choice": null, "logprobs": null, "top_logprobs": null, "parallel_tool_calls": null, "extra_headers": null, "functions": null, "function_call": null, "base_url": null, "api_version": null, "api_key": null, "model_list": null, "mock_response": null, "custom_llm_provider": null, "max_retries": null, "stop_sequences": "\n"}}, "def": "model_output", "parser": "yaml", "pdl__timing": {"start_nanos": 1742524239043014000, "end_nanos": 0, "timezone": "EDT"}, "pdl__is_leaf": true}], "pdl__timing": {"start_nanos": 1742524239040790000, "end_nanos": 0, "timezone": "EDT"}, "pdl__is_leaf": false}

0 commit comments

Comments
 (0)