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