1hangzhao commited on
Commit
230b4d5
·
verified ·
1 Parent(s): bcd7704

Update ontochat/functions.py

Browse files
Files changed (1) hide show
  1. ontochat/functions.py +60 -60
ontochat/functions.py CHANGED
@@ -10,99 +10,99 @@ current_preidentified_prompts = []
10
  current_preidentified = [
11
  """The ontology's domain is **[DOMAIN]**.
12
 
13
- Ensure all subsequent responses strictly adhere to the scope of my domain.""",
14
 
15
- """My name is **[NAME]**, I am **[AGE]** years old, and I work as a **[OCCUPATION]**. My skills include **[SKILLS]**, and I have a strong interest in **[INTERESTS]**.
16
 
17
  Please refine my response to ensure:
18
 
19
- 1. The persona is clearly described.
20
- 2. The details (name, age, occupation, skills, interests) are logically and professionally aligned.
21
- 3. If the skills and interests provided by the user are very similar and hard to differentiate, generate distinct ones. Skills should focus on technical aspects, while interests should be more general.
22
- 4. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity and professionalism.
23
  5. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
24
 
25
- """My user goal description is **[USER GOAL DESCRIPTION]**.
26
 
27
  Please refine my response to ensure:
28
 
29
- 1. The goal is clearly described and practical.
30
- 2. Expand the user goal description, if necessary, to ensure it starts with a high-level overview *[LONG-TERM GOAL]*, emphasizing the overall impact, followed by a specific *[SHORT-TERM GOAL]*, focusing on immediate outcomes.
31
- 3. Ensure the goal description aligns with my interests and domain expertise.
32
- 4. The focus remains solely on the goal, without referencing unrelated elements.
33
- 5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity and professionalism.
34
- 6. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
35
 
36
- """The actions I need to take to achieve my goal are **[ACTIONS]**.
37
 
38
  Please refine my response to ensure:
39
 
40
- 1. The actions are clearly described.
41
- 2. The actions are actionable and presented as a logical sequence of steps.
42
- 3. Each step includes specific *[TOOLS]*, *[METHODS]*, or *[TECHNIQUES]*, and is practical.
43
- 4. Where relevant, incorporate *[INTERDISCIPLINARY INSIGHTS]* to describe the actions.
44
- 5. Ensure the actions align logically with my skills, occupation, and overall goal.
45
- 6. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity and professionalism.
46
- 7. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
47
 
48
- """The keywords for my user goal and actions are **[KEYWORDS]**.
49
 
50
  Please refine my response to ensure:
51
 
52
- 1. The keywords are clearly defined.
53
- 2. Each keyword directly supports my goals and actions.
54
- 3. Keywords are expanded with the same level of granularity as *[KEYWORD]*.
55
- 4. Keywords are broadened to include additional options.
56
- 5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity and professionalism.
57
- 6. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
58
 
59
- """The current methods I use to perform my actions are **[CURRENT METHODS]**.
60
 
61
  Please refine my response to ensure:
62
 
63
- 1. The methods are clearly described.
64
- 2. The methods must be manually time-intensive.
65
- 3. The methods are actionable and presented as a logical sequence of steps.
66
- 4. Each step includes specific *[TOOLS]*, *[METHODS]*, or *[TECHNIQUES]*, and is practical.
67
- 5. Where relevant, incorporate *[INTERDISCIPLINARY INSIGHTS]* to describe the methods.
68
- 6. The methods align logically with my skills, occupation, and overall goal.
69
- 7. The methods include only the methods themselves, without any words describing challenges, new methods, or outcomes.
70
- 8. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity and professionalism.
71
- 9. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
72
-
73
- """The challenges I face with my current methods are **[CHALLENGES]**.
74
 
75
  Please refine my response to ensure:
76
 
77
- 1. The challenges are clearly described.
78
- 2. Each challenge should be derived from the *[TOOLS]*, *[METHODS]*, or *[TECHNIQUES]* used.
79
- 3. Where relevant, incorporate *[INTERDISCIPLINARY INSIGHTS]* to describe the challenges.
80
- 4. The challenges align logically with my skills, occupation, and overall goal.
81
- 5. The challenges include only the challenges themselves, without any words describing current methods, new methods, or outcomes.
82
- 6. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity and professionalism.
83
- 7. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
84
 
85
- """The new methods I will use through this ontology to address my challenges are **[NEW METHODS]**.
86
 
87
  Please refine my response to ensure:
88
 
89
- 1. The new methods are clearly described.
90
- 2. The new methods must align with what a knowledge-based system can offer.
91
- 3. The new methods align logically with my overall goal.
92
- 4. The new methods include only the new methods themselves, without any words describing current methods, challenges, or outcomes.
93
- 5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity and professionalism.
94
- 6. The final answer is structured as *[A SINGLE SENTENCE / A DETAILED PARAGRAPH]*.""",
95
 
96
- """The outcomes I expect after implementing the new methods are **[OUTCOMES]**.
97
 
98
  Please refine my response to ensure:
99
 
100
- 1. The outcomes are clearly described.
101
- 2. The outcomes must align with the benefits a knowledge-based system can provide.
102
  3. The outcomes align logically with my overall goal.
103
- 4. The outcomes include only the outcomes themselves, without any words describing current methods, challenges, or new methods.
104
- 5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity and professionalism.
105
- 6. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
106
  ]
107
 
108
  def set_openai_api_key(api_key: str):
 
10
  current_preidentified = [
11
  """The ontology's domain is **[DOMAIN]**.
12
 
13
+ Ensure all subsequent responses strictly adhere to the scope of my domain. Use ontology-specific terminology and align responses with relevant ontological structures, relationships, and reasoning principles.""",
14
 
15
+ """My persona is **[NAME]**, I am **[AGE]** years old, and I work as a **[OCCUPATION]** in the domain of **[DOMAIN]**. My expertise includes **[SKILLS]**, and I have a strong interest in **[INTERESTS]**.
16
 
17
  Please refine my response to ensure:
18
 
19
+ 1. The persona is clearly described with a focus on ontology-related expertise.
20
+ 2. The details (name, age, occupation, skills, interests) are logically aligned with domain ontologies and structured knowledge representation.
21
+ 3. If the skills and interests provided by the user are similar and hard to differentiate, generate distinct ones by distinguishing between conceptual knowledge (e.g., ontological modeling) and applied techniques (e.g., knowledge graph construction).
22
+ 4. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity in an ontology-driven context.
23
  5. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
24
 
25
+ """My ontology user goal is **[USER GOAL DESCRIPTION]**.
26
 
27
  Please refine my response to ensure:
28
 
29
+ 1. The goal is clearly described and ontology-driven, emphasizing knowledge structuring, reasoning, or interoperability.
30
+ 2. Expand the goal description, if necessary, to ensure it starts with a high-level *[KNOWLEDGE REPRESENTATION OBJECTIVE]* followed by a specific *[ONTOLOGY-SUPPORTED TASK]*.
31
+ 3. Ensure the goal description aligns with my domain expertise and the role of ontologies in solving real-world problems.
32
+ 4. The focus remains solely on ontology-related objectives, avoiding unrelated technical or system-level descriptions.
33
+ 5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*.
34
+ 6. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH / TAXONOMY-LIKE HIERARCHY]*.""",
35
 
36
+ """The ontology-driven actions I need to take to achieve my goal are **[ACTIONS]**.
37
 
38
  Please refine my response to ensure:
39
 
40
+ 1. The actions are clearly described and ontology-specific.
41
+ 2. The actions are actionable and presented as a logical sequence of steps related to ontology design, integration, or reasoning.
42
+ 3. Each step includes specific *[ONTOLOGY ENGINEERING METHODS]*, *[KNOWLEDGE REPRESENTATION TOOLS]*, or *[INFERENCE TECHNIQUES]* and is practical.
43
+ 4. Where relevant, incorporate *[INTERDISCIPLINARY INSIGHTS]* to describe the role of ontologies in broader knowledge management.
44
+ 5. Ensure the actions align logically with my expertise and ontology development goals.
45
+ 6. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*.
46
+ 7. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH / TAXONOMY-LIKE HIERARCHY]*.""",
47
 
48
+ """The key ontology concepts and terms related to my goal are **[KEYWORDS]**.
49
 
50
  Please refine my response to ensure:
51
 
52
+ 1. The keywords are clearly defined and ontology-relevant.
53
+ 2. Each keyword directly supports knowledge structuring and reasoning.
54
+ 3. Keywords are aligned with *[EXISTING ONTOLOGY VOCABULARIES]* or *[STANDARDS]*.
55
+ 4. Keywords are expanded with related ontological terms (e.g., subclass relationships, linked data mappings).
56
+ 5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*.
57
+ 6. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH / TAXONOMY-LIKE HIERARCHY]*.""",
58
 
59
+ """The current methods I use for knowledge representation and reasoning are **[CURRENT METHODS]**.
60
 
61
  Please refine my response to ensure:
62
 
63
+ 1. The methods are clearly described and align with ontology-based workflows.
64
+ 2. The methods must involve manual or ad-hoc knowledge structuring efforts.
65
+ 3. The methods are actionable and presented as a logical sequence of ontology modeling or reasoning steps.
66
+ 4. Each step includes specific *[ONTOLOGY MODELING TOOLS]*, *[KNOWLEDGE REPRESENTATION LANGUAGES]*, or *[LOGICAL INFERENCE TECHNIQUES]*.
67
+ 5. Where relevant, incorporate *[INTERDISCIPLINARY INSIGHTS]* to describe the challenges in integrating knowledge across domains.
68
+ 6. The methods align logically with my expertise and goals.
69
+ 7. The methods include only knowledge structuring tasks, without discussing challenges, new methods, or expected outcomes.
70
+ 8. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*.
71
+ 9. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH / TAXONOMY-LIKE HIERARCHY]*.""",
72
+
73
+ """The challenges I face in ontology-based knowledge representation are **[CHALLENGES]**.
74
 
75
  Please refine my response to ensure:
76
 
77
+ 1. The challenges are clearly described and relate to ontology structuring, reasoning, or interoperability.
78
+ 2. Each challenge should be derived from *[CURRENT TOOLS]*, *[METHODOLOGIES]*, or *[LOGICAL CONSTRAINTS]* used.
79
+ 3. Where relevant, incorporate *[ONTOLOGY INTEGRATION CHALLENGES]* related to external knowledge bases.
80
+ 4. The challenges align logically with my domain expertise and ontology development.
81
+ 5. The challenges include only the core difficulties, without discussing solutions or expected improvements.
82
+ 6. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*.
83
+ 7. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH / TAXONOMY-LIKE HIERARCHY]*.""",
84
 
85
+ """The ontology-based methods I will use to address my challenges are **[NEW METHODS]**.
86
 
87
  Please refine my response to ensure:
88
 
89
+ 1. The new methods are clearly described and ontology-driven.
90
+ 2. The new methods align with what an ontology-based system can offer, such as automated reasoning, semantic search, or ontology alignment.
91
+ 3. The methods align logically with my goals and expected improvements.
92
+ 4. The methods include only knowledge representation enhancements, without discussing previous challenges or outcomes.
93
+ 5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*.
94
+ 6. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH / TAXONOMY-LIKE HIERARCHY]*.""",
95
 
96
+ """The expected outcomes of implementing ontology-driven methods are **[OUTCOMES]**.
97
 
98
  Please refine my response to ensure:
99
 
100
+ 1. The outcomes are clearly described and ontology-relevant.
101
+ 2. The outcomes must align with the benefits of a structured knowledge representation system.
102
  3. The outcomes align logically with my overall goal.
103
+ 4. The outcomes include only ontology-driven improvements, without discussing previous methods or challenges.
104
+ 5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*.
105
+ 6. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH / TAXONOMY-LIKE HIERARCHY]*.""",
106
  ]
107
 
108
  def set_openai_api_key(api_key: str):