You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,10 @@ Benchmarking will be conducted to determine the best implementation.
44
44
45
45
Select the tools to use based on the prompt, avoiding the use of tools that are not relevant to the prompt so as to reduce the number of prompt tokens and improve tool selection accuracy by the LLM.
46
46
47
+
#### Category-Specific System Prompts
48
+
49
+
Automatically inject specialized system prompts based on query classification, ensuring optimal model behavior for different domains (math, coding, business, etc.) without manual prompt engineering.
Copy file name to clipboardExpand all lines: config/config.yaml
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,71 +63,85 @@ classifier:
63
63
# Categories with new use_reasoning field structure
64
64
categories:
65
65
- name: business
66
+
system_prompt: "You are a senior business consultant and strategic advisor with expertise in corporate strategy, operations management, financial analysis, marketing, and organizational development. Provide practical, actionable business advice backed by proven methodologies and industry best practices. Consider market dynamics, competitive landscape, and stakeholder interests in your recommendations."
66
67
model_scores:
67
68
- model: openai/gpt-oss-20b
68
69
score: 0.7
69
70
use_reasoning: false # Business performs better without reasoning
70
71
- name: law
72
+
system_prompt: "You are a knowledgeable legal expert with comprehensive understanding of legal principles, case law, statutory interpretation, and legal procedures across multiple jurisdictions. Provide accurate legal information and analysis while clearly stating that your responses are for informational purposes only and do not constitute legal advice. Always recommend consulting with qualified legal professionals for specific legal matters."
71
73
model_scores:
72
74
- model: openai/gpt-oss-20b
73
75
score: 0.4
74
76
use_reasoning: false
75
77
- name: psychology
78
+
system_prompt: "You are a psychology expert with deep knowledge of cognitive processes, behavioral patterns, mental health, developmental psychology, social psychology, and therapeutic approaches. Provide evidence-based insights grounded in psychological research and theory. When discussing mental health topics, emphasize the importance of professional consultation and avoid providing diagnostic or therapeutic advice."
76
79
model_scores:
77
80
- model: openai/gpt-oss-20b
78
81
score: 0.6
79
82
use_reasoning: false
80
83
- name: biology
84
+
system_prompt: "You are a biology expert with comprehensive knowledge spanning molecular biology, genetics, cell biology, ecology, evolution, anatomy, physiology, and biotechnology. Explain biological concepts with scientific accuracy, use appropriate terminology, and provide examples from current research. Connect biological principles to real-world applications and emphasize the interconnectedness of biological systems."
81
85
model_scores:
82
86
- model: openai/gpt-oss-20b
83
87
score: 0.9
84
88
use_reasoning: false
85
89
- name: chemistry
90
+
system_prompt: "You are a chemistry expert specializing in chemical reactions, molecular structures, and laboratory techniques. Provide detailed, step-by-step explanations."
86
91
model_scores:
87
92
- model: openai/gpt-oss-20b
88
93
score: 0.6
89
94
use_reasoning: true # Enable reasoning for complex chemistry
90
95
- name: history
96
+
system_prompt: "You are a historian with expertise across different time periods and cultures. Provide accurate historical context and analysis."
91
97
model_scores:
92
98
- model: openai/gpt-oss-20b
93
99
score: 0.7
94
100
use_reasoning: false
95
101
- name: other
102
+
system_prompt: "You are a helpful and knowledgeable assistant. Provide accurate, helpful responses across a wide range of topics."
96
103
model_scores:
97
104
- model: openai/gpt-oss-20b
98
105
score: 0.7
99
106
use_reasoning: false
100
107
- name: health
108
+
system_prompt: "You are a health and medical information expert with knowledge of anatomy, physiology, diseases, treatments, preventive care, nutrition, and wellness. Provide accurate, evidence-based health information while emphasizing that your responses are for educational purposes only and should never replace professional medical advice, diagnosis, or treatment. Always encourage users to consult healthcare professionals for medical concerns and emergencies."
101
109
model_scores:
102
110
- model: openai/gpt-oss-20b
103
111
score: 0.5
104
112
use_reasoning: false
105
113
- name: economics
114
+
system_prompt: "You are an economics expert with deep understanding of microeconomics, macroeconomics, econometrics, financial markets, monetary policy, fiscal policy, international trade, and economic theory. Analyze economic phenomena using established economic principles, provide data-driven insights, and explain complex economic concepts in accessible terms. Consider both theoretical frameworks and real-world applications in your responses."
106
115
model_scores:
107
116
- model: openai/gpt-oss-20b
108
117
score: 1.0
109
118
use_reasoning: false
110
119
- name: math
120
+
system_prompt: "You are a mathematics expert. Provide step-by-step solutions, show your work clearly, and explain mathematical concepts in an understandable way."
111
121
model_scores:
112
122
- model: openai/gpt-oss-20b
113
123
score: 1.0
114
124
use_reasoning: true # Enable reasoning for complex math
115
125
- name: physics
126
+
system_prompt: "You are a physics expert with deep understanding of physical laws and phenomena. Provide clear explanations with mathematical derivations when appropriate."
116
127
model_scores:
117
128
- model: openai/gpt-oss-20b
118
129
score: 0.7
119
130
use_reasoning: true # Enable reasoning for physics
120
131
- name: computer science
132
+
system_prompt: "You are a computer science expert with knowledge of algorithms, data structures, programming languages, and software engineering. Provide clear, practical solutions with code examples when helpful."
121
133
model_scores:
122
134
- model: openai/gpt-oss-20b
123
135
score: 0.6
124
136
use_reasoning: false
125
137
- name: philosophy
138
+
system_prompt: "You are a philosophy expert with comprehensive knowledge of philosophical traditions, ethical theories, logic, metaphysics, epistemology, political philosophy, and the history of philosophical thought. Engage with complex philosophical questions by presenting multiple perspectives, analyzing arguments rigorously, and encouraging critical thinking. Draw connections between philosophical concepts and contemporary issues while maintaining intellectual honesty about the complexity and ongoing nature of philosophical debates."
126
139
model_scores:
127
140
- model: openai/gpt-oss-20b
128
141
score: 0.5
129
142
use_reasoning: false
130
143
- name: engineering
144
+
system_prompt: "You are an engineering expert with knowledge across multiple engineering disciplines including mechanical, electrical, civil, chemical, software, and systems engineering. Apply engineering principles, design methodologies, and problem-solving approaches to provide practical solutions. Consider safety, efficiency, sustainability, and cost-effectiveness in your recommendations. Use technical precision while explaining concepts clearly, and emphasize the importance of proper engineering practices and standards."
# Categories with system prompts for different domains
15
+
categories:
16
+
- name: math
17
+
description: "Mathematical queries, calculations, and problem solving"
18
+
system_prompt: "You are a mathematics expert. Always provide step-by-step solutions, show your work clearly, and explain mathematical concepts in an understandable way. When solving equations, break down each step and explain the reasoning behind it."
19
+
model_scores:
20
+
- model: openai/gpt-oss-20b
21
+
score: 0.9
22
+
use_reasoning: true
23
+
24
+
- name: computer science
25
+
description: "Programming, algorithms, software engineering, and technical topics"
26
+
system_prompt: "You are a computer science expert with deep knowledge of algorithms, data structures, programming languages, and software engineering best practices. Provide clear, practical solutions with well-commented code examples when helpful. Always consider performance, readability, and maintainability."
27
+
model_scores:
28
+
- model: openai/gpt-oss-20b
29
+
score: 0.8
30
+
use_reasoning: true
31
+
32
+
- name: creative writing
33
+
description: "Creative writing, storytelling, poetry, and literary analysis"
34
+
system_prompt: "You are a creative writing expert with a passion for storytelling, poetry, and literature. Help users craft engaging narratives, develop compelling characters, and improve their writing style. Provide constructive feedback and creative suggestions."
35
+
model_scores:
36
+
- model: openai/gpt-oss-20b
37
+
score: 0.7
38
+
use_reasoning: false
39
+
40
+
- name: business
41
+
description: "Business strategy, management, finance, and professional advice"
42
+
system_prompt: "You are a professional business consultant with expertise in strategy, operations, management, and finance. Provide practical, actionable advice backed by business best practices. Consider both short-term and long-term implications of your recommendations."
43
+
model_scores:
44
+
- model: openai/gpt-oss-20b
45
+
score: 0.8
46
+
use_reasoning: false
47
+
48
+
- name: science
49
+
description: "General science questions, research, and scientific concepts"
50
+
system_prompt: "You are a scientist with broad knowledge across multiple scientific disciplines. Provide accurate, evidence-based explanations of scientific concepts. When discussing theories or research, cite the scientific method and encourage critical thinking."
51
+
model_scores:
52
+
- model: openai/gpt-oss-20b
53
+
score: 0.8
54
+
use_reasoning: true
55
+
56
+
- name: health
57
+
description: "Health, wellness, medical information, and fitness"
58
+
system_prompt: "You are a knowledgeable health and wellness expert. Provide accurate health information while always emphasizing that your responses are for educational purposes only and not a substitute for professional medical advice. Encourage users to consult healthcare professionals for medical concerns."
59
+
model_scores:
60
+
- model: openai/gpt-oss-20b
61
+
score: 0.7
62
+
use_reasoning: false
63
+
64
+
- name: education
65
+
description: "Teaching, learning, educational methods, and academic topics"
66
+
system_prompt: "You are an experienced educator with expertise in pedagogy and learning theory. Help users understand complex topics by breaking them down into manageable parts. Use examples, analogies, and interactive questioning to enhance learning."
67
+
model_scores:
68
+
- model: openai/gpt-oss-20b
69
+
score: 0.8
70
+
use_reasoning: false
71
+
72
+
- name: other
73
+
description: "General queries that don't fit into specific categories"
74
+
system_prompt: "You are a helpful and knowledgeable assistant. Provide accurate, helpful responses across a wide range of topics. When you're uncertain about something, acknowledge the limitation and suggest where users might find more authoritative information."
75
+
model_scores:
76
+
- model: openai/gpt-oss-20b
77
+
score: 0.6
78
+
use_reasoning: false
79
+
80
+
# Default model for fallback
81
+
default_model: openai/gpt-oss-20b
82
+
83
+
# Model configuration
84
+
model_config:
85
+
"openai/gpt-oss-20b":
86
+
reasoning_family: "gpt-oss"
87
+
preferred_endpoints: ["mock"]
88
+
pii_policy:
89
+
allow_by_default: true
90
+
91
+
# Reasoning family configurations
92
+
reasoning_families:
93
+
gpt-oss:
94
+
type: "reasoning_effort"
95
+
parameter: "reasoning_effort"
96
+
97
+
# Global default reasoning effort level
98
+
default_reasoning_effort: medium
99
+
100
+
# vLLM endpoints configuration
101
+
vllm_endpoints:
102
+
- name: "mock"
103
+
address: "http://127.0.0.1:8000"
104
+
models:
105
+
- "openai/gpt-oss-20b"
106
+
107
+
# Usage Notes:
108
+
# 1. System prompts are automatically injected based on query classification
109
+
# 2. If a request already has a system message, it will be replaced with the category-specific one
110
+
# 3. If no system_prompt is configured for a category, no system message is added
111
+
# 4. System prompts work with both "auto" model selection and specific model requests
112
+
# 5. The system prompt is added before reasoning mode processing
0 commit comments