diff options
author | JJ <nicetry@noemail.com> | 2025-03-31 21:08:41 +0100 |
---|---|---|
committer | JJ <nicetry@noemail.com> | 2025-03-31 21:08:41 +0100 |
commit | 2e0b9c97af457da5c6afda611d48e59047d4cdb8 (patch) | |
tree | 199d10037f790bcade2ac86f478c10da77bbc771 /AIParams.py | |
parent | 17529f38f4b4edf7249e18418ddfcc3f818a006d (diff) |
Basic AI functionality
Diffstat (limited to 'AIParams.py')
-rw-r--r-- | AIParams.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/AIParams.py b/AIParams.py new file mode 100644 index 0000000..aab8ac3 --- /dev/null +++ b/AIParams.py @@ -0,0 +1,25 @@ +RECIPE_SCHEMA = { + 'title': str, + 'slug': str, + 'image': str, + 'url': str, + 'tags': list[str], + 'ingredients': list[str], + 'instructions': list[str] +} + +PROMPT = """ +Extract data from the following text in the schema format provided. + +SCHEMA: + +{schema} + +DATA: + +{markdown} +""" + +SYSTEM_INSTRUCTIONS="You are responsible for taking the inputted markdown text and generating a structure response from it. See the Schema provided." + + |