Update ontochat/functions.py
Browse files- 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
|
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
|
21 |
-
3. If the skills and interests provided by the user are
|
22 |
-
4. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]*, ensuring clarity
|
23 |
5. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
|
24 |
|
25 |
-
"""My user goal
|
26 |
|
27 |
Please refine my response to ensure:
|
28 |
|
29 |
-
1. The goal is clearly described and
|
30 |
-
2. Expand the
|
31 |
-
3. Ensure the goal description aligns with my
|
32 |
-
4. The focus remains solely on
|
33 |
-
5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]
|
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 *[
|
43 |
-
4. Where relevant, incorporate *[INTERDISCIPLINARY INSIGHTS]* to describe the
|
44 |
-
5. Ensure the actions align logically with my
|
45 |
-
6. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]
|
46 |
-
7. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
|
47 |
|
48 |
-
"""The
|
49 |
|
50 |
Please refine my response to ensure:
|
51 |
|
52 |
-
1. The keywords are clearly defined.
|
53 |
-
2. Each keyword directly supports
|
54 |
-
3. Keywords are
|
55 |
-
4. Keywords are
|
56 |
-
5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]
|
57 |
-
6. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
|
58 |
|
59 |
-
"""The current methods I use
|
60 |
|
61 |
Please refine my response to ensure:
|
62 |
|
63 |
-
1. The methods are clearly described.
|
64 |
-
2. The methods must
|
65 |
-
3. The methods are actionable and presented as a logical sequence of steps.
|
66 |
-
4. Each step includes specific *[TOOLS]*, *[
|
67 |
-
5. Where relevant, incorporate *[INTERDISCIPLINARY INSIGHTS]* to describe the
|
68 |
-
6. The methods align logically with my
|
69 |
-
7. The methods include only
|
70 |
-
8. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]
|
71 |
-
9. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
|
72 |
-
|
73 |
-
"""The challenges I face
|
74 |
|
75 |
Please refine my response to ensure:
|
76 |
|
77 |
-
1. The challenges are clearly described.
|
78 |
-
2. Each challenge should be derived from
|
79 |
-
3. Where relevant, incorporate *[
|
80 |
-
4. The challenges align logically with my
|
81 |
-
5. The challenges include only the
|
82 |
-
6. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]
|
83 |
-
7. The final answer is structured as *[BULLET POINTS / A DETAILED PARAGRAPH]*.""",
|
84 |
|
85 |
-
"""The
|
86 |
|
87 |
Please refine my response to ensure:
|
88 |
|
89 |
-
1. The new methods are clearly described.
|
90 |
-
2. The new methods
|
91 |
-
3. The
|
92 |
-
4. The
|
93 |
-
5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]
|
94 |
-
6. The final answer is structured as *[
|
95 |
|
96 |
-
"""The 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
|
102 |
3. The outcomes align logically with my overall goal.
|
103 |
-
4. The outcomes include only
|
104 |
-
5. The language is *[CONCISE & PRECISE / CREATIVE & DETAILED]
|
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):
|