From 6c190c09d950cf4c62b05df4a037fd57d0b65cf2 Mon Sep 17 00:00:00 2001 From: tytodd Date: Sat, 3 Jan 2026 18:22:58 -0800 Subject: [PATCH] (no commit message) --- README.md | 2 -- config.json | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ program.json | 46 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 config.json create mode 100644 program.json diff --git a/README.md b/README.md index fbdb32e..e69de29 100644 --- a/README.md +++ b/README.md @@ -1,2 +0,0 @@ -# langsmith-example - diff --git a/config.json b/config.json new file mode 100644 index 0000000..f44d88e --- /dev/null +++ b/config.json @@ -0,0 +1,55 @@ +{ + "model": null, + "signature": { + "description": "Given the fields `input`, `output`, produce the fields `correctness`, `reasoning`.", + "properties": { + "input": { + "__dspy_field_type": "input", + "desc": "${input}", + "prefix": "Input:", + "title": "Input", + "type": "string" + }, + "output": { + "__dspy_field_type": "input", + "desc": "${output}", + "prefix": "Output:", + "title": "Output", + "type": "string" + }, + "correctness": { + "__dspy_field_type": "output", + "desc": "${correctness}", + "prefix": "Correctness:", + "title": "Correctness", + "type": "boolean" + }, + "reasoning": { + "__dspy_field_type": "output", + "desc": "${reasoning}", + "prefix": "Reasoning:", + "title": "Reasoning", + "type": "string" + } + }, + "required": [ + "input", + "output", + "correctness", + "reasoning" + ], + "title": "CapitalsSignature", + "type": "object" + }, + "lm": { + "model": "gpt-4o-mini", + "model_type": "chat", + "cache": true, + "num_retries": 3, + "finetuning_model": null, + "launch_kwargs": {}, + "train_kwargs": {}, + "temperature": null, + "max_tokens": null + } +} \ No newline at end of file diff --git a/program.json b/program.json new file mode 100644 index 0000000..ee3c996 --- /dev/null +++ b/program.json @@ -0,0 +1,46 @@ +{ + "predictor": { + "traces": [], + "train": [], + "demos": [], + "signature": { + "instructions": "Given the fields `input`, `output`, produce the fields `correctness`, `reasoning`.", + "fields": [ + { + "prefix": "Input:", + "description": "${input}" + }, + { + "prefix": "Output:", + "description": "${output}" + }, + { + "prefix": "Correctness:", + "description": "${correctness}" + }, + { + "prefix": "Reasoning:", + "description": "${reasoning}" + } + ] + }, + "lm": { + "model": "gpt-4o-mini", + "model_type": "chat", + "cache": true, + "num_retries": 3, + "finetuning_model": null, + "launch_kwargs": {}, + "train_kwargs": {}, + "temperature": null, + "max_tokens": null + } + }, + "metadata": { + "dependency_versions": { + "python": "3.11", + "dspy": "3.0.4", + "cloudpickle": "3.1" + } + } +} \ No newline at end of file