From 2e0b9c97af457da5c6afda611d48e59047d4cdb8 Mon Sep 17 00:00:00 2001
From: JJ <nicetry@noemail.com>
Date: Mon, 31 Mar 2025 21:08:41 +0100
Subject: Basic AI functionality

---
 AIParams.py | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 AIParams.py

(limited to 'AIParams.py')

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."
+
+
-- 
cgit v1.2.3