aboutsummaryrefslogtreecommitdiff
path: root/AIParams.py
diff options
context:
space:
mode:
authorJJ <nicetry@noemail.com>2025-03-31 21:08:41 +0100
committerJJ <nicetry@noemail.com>2025-03-31 21:08:41 +0100
commit2e0b9c97af457da5c6afda611d48e59047d4cdb8 (patch)
tree199d10037f790bcade2ac86f478c10da77bbc771 /AIParams.py
parent17529f38f4b4edf7249e18418ddfcc3f818a006d (diff)
Basic AI functionality
Diffstat (limited to 'AIParams.py')
-rw-r--r--AIParams.py25
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."
+
+