Skip to content

Commit 8bf5d70

Browse files
committed
refactor: sample dataset for project scaffolding
1 parent d99860a commit 8bf5d70

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
"""
2+
Template files for project scaffolding.
3+
"""
4+
5+
import json
6+
import os
7+
8+
# Directory containing the template files
9+
TEMPLATE_DIR = os.path.dirname(os.path.abspath(__file__))
10+
11+
12+
def get_template_path(filename):
13+
"""Get the absolute path to a template file."""
14+
return os.path.join(TEMPLATE_DIR, filename)
15+
16+
17+
def get_template_content(filename):
18+
"""Get the content of a template file."""
19+
with open(get_template_path(filename), "r") as f:
20+
return f.read()
21+
22+
23+
def get_sample_dataset():
24+
"""Get the sample dataset as a Python object."""
25+
with open(get_template_path("sample_dataset.json"), "r") as f:
26+
return json.load(f)

src/prompt_ops/templates/sample_dataset.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
You are a helpful assistant. Extract and return a json with the following keys and values:
2+
- "urgency" as one of `high`, `medium`, `low`
3+
- "sentiment" as one of `negative`, `neutral`, `positive`
4+
- "categories" Create a dictionary with categories as keys and boolean values (True/False), where the value indicates whether the category is one of the best matching support category tags from: `emergency_repair_services`, `routine_maintenance_requests`, `quality_and_safety_concerns`, `specialized_cleaning_services`, `general_inquiries`, `sustainability_and_environmental_practices`, `training_and_support_requests`, `cleaning_services_scheduling`, `customer_feedback_and_complaints`, `facility_management_issues`
5+
Your complete message should be a valid json string that can be read directly and only contain the keys mentioned in the list above. Never enclose it in ```json...```, no newlines, no unnessacary whitespaces.

0 commit comments

Comments
 (0)