Commit
•
06460f7
1
Parent(s):
8d2bf77
Upload 2 files (#2)
Browse files- Upload 2 files (fcb1cdaf3a19099fd25d5511dac7aa2a1c9b25d8)
Co-authored-by: ben burtenshaw <burtenshaw@users.noreply.huggingface.co>
- defaults.py +6 -0
- seed_data.json +6 -10
defaults.py
CHANGED
@@ -19,8 +19,14 @@ with open(SEED_DATA_PATH) as f:
|
|
19 |
|
20 |
DEFAULT_DOMAIN = DEFAULT_DATA["domain"]
|
21 |
DEFAULT_PERSPECTIVES = DEFAULT_DATA["perspectives"]
|
|
|
|
|
22 |
DEFAULT_TOPICS = DEFAULT_DATA["topics"]
|
|
|
|
|
23 |
DEFAULT_EXAMPLES = DEFAULT_DATA["examples"]
|
|
|
|
|
24 |
DEFAULT_SYSTEM_PROMPT = DEFAULT_DATA["domain_expert_prompt"]
|
25 |
|
26 |
################################################
|
|
|
19 |
|
20 |
DEFAULT_DOMAIN = DEFAULT_DATA["domain"]
|
21 |
DEFAULT_PERSPECTIVES = DEFAULT_DATA["perspectives"]
|
22 |
+
if DEFAULT_PERSPECTIVES is None or len(DEFAULT_PERSPECTIVES) == 0:
|
23 |
+
DEFAULT_PERSPECTIVES = [""]
|
24 |
DEFAULT_TOPICS = DEFAULT_DATA["topics"]
|
25 |
+
if DEFAULT_TOPICS is None or len(DEFAULT_TOPICS) == 0:
|
26 |
+
DEFAULT_TOPICS = [""]
|
27 |
DEFAULT_EXAMPLES = DEFAULT_DATA["examples"]
|
28 |
+
if DEFAULT_EXAMPLES is None or len(DEFAULT_EXAMPLES) == 0:
|
29 |
+
DEFAULT_EXAMPLES = [{"question": "", "answer": ""}]
|
30 |
DEFAULT_SYSTEM_PROMPT = DEFAULT_DATA["domain_expert_prompt"]
|
31 |
|
32 |
################################################
|
seed_data.json
CHANGED
@@ -1,20 +1,16 @@
|
|
1 |
{
|
2 |
-
"domain": "
|
3 |
"perspectives": [
|
4 |
-
"
|
5 |
],
|
6 |
"topics": [
|
7 |
-
"
|
8 |
],
|
9 |
"examples": [
|
10 |
{
|
11 |
-
"question": "",
|
12 |
-
"answer": ""
|
13 |
}
|
14 |
],
|
15 |
-
"domain_expert_prompt": "You
|
16 |
-
"application_instruction": "You are an AI assistant than generates queries around the domain of Bicycle maintenance.\n Your should not expect basic but profound questions from your users.\n The queries should reflect a diversxamity of vision and economic positions and political positions.\n The queries may know about different methods of Bicycle maintenance.\n The queries can be positioned politically, economically, socially, or practically.\n Also take into account the impact of diverse causes on diverse domains.\n- Question: \n- Answer: \n",
|
17 |
-
"seed_terms": [
|
18 |
-
"punctures from a Professional cycling perspective"
|
19 |
-
]
|
20 |
}
|
|
|
1 |
{
|
2 |
+
"domain": "farming",
|
3 |
"perspectives": [
|
4 |
+
"Family Farming"
|
5 |
],
|
6 |
"topics": [
|
7 |
+
"animal welfare"
|
8 |
],
|
9 |
"examples": [
|
10 |
{
|
11 |
+
"question": "Compare and contrast the environmental footprint of industrial and small-scale farming.",
|
12 |
+
"answer": "Regenerative agriculture practices aim to restore soil health through methods that increase soil organic matter, enhance microbial activity, and improve soil structure. These practices include no-till farming, cover cropping, diverse crop rotations, and integrated livestock management. According to LaCanne and Lundgren (2018), soil health improves due to increased biodiversity and organic matter, enhancing its water retention and nutrient efficiency. Moreover, Jones (2012) in \"Soil carbon & organic farming\" reports that these practices significantly elevate biodiversity, both above and below the soil surface, promoting resilient ecosystems and agroecological balances."
|
13 |
}
|
14 |
],
|
15 |
+
"domain_expert_prompt": "You will be asked about family farming and agribusiness related topics, from different perspectives.\n Your answer should be logical and supported by facts, don't fabricate arguments. \n Try to gather a diverse point of view taking into account current theories in agronomy, biology, economics, anthropology and ecology."
|
|
|
|
|
|
|
|
|
16 |
}
|