diff --git a/README.md b/README.md index 118778f..e69de29 100644 --- a/README.md +++ b/README.md @@ -1,2 +0,0 @@ -# braintrust-capitals - diff --git a/config.json b/config.json new file mode 100644 index 0000000..879516d --- /dev/null +++ b/config.json @@ -0,0 +1,66 @@ +{ + "model": null, + "signature": { + "$defs": { + "CaptialOutput": { + "properties": { + "answer": { + "title": "Answer", + "type": "string" + }, + "reasoning": { + "title": "Reasoning", + "type": "string" + } + }, + "required": [ + "answer", + "reasoning" + ], + "title": "CaptialOutput", + "type": "object" + } + }, + "description": "Given the fields `question`, `output`, produce the fields `correctness`.", + "properties": { + "question": { + "__dspy_field_type": "input", + "desc": "${question}", + "prefix": "Question:", + "title": "Question", + "type": "string" + }, + "output": { + "$ref": "#/$defs/CaptialOutput", + "__dspy_field_type": "input", + "desc": "${output}", + "prefix": "Output:" + }, + "correctness": { + "__dspy_field_type": "output", + "desc": "${correctness}", + "prefix": "Correctness:", + "title": "Correctness", + "type": "boolean" + } + }, + "required": [ + "question", + "output", + "correctness" + ], + "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..ef89187 --- /dev/null +++ b/program.json @@ -0,0 +1,42 @@ +{ + "predictor": { + "traces": [], + "train": [], + "demos": [], + "signature": { + "instructions": "Given the fields `question`, `output`, produce the fields `correctness`.", + "fields": [ + { + "prefix": "Question:", + "description": "${question}" + }, + { + "prefix": "Output:", + "description": "${output}" + }, + { + "prefix": "Correctness:", + "description": "${correctness}" + } + ] + }, + "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