Skip to content

Commit 6c14140

Browse files
committed
create more comprehensive local llm with system template
1 parent dd6ad7e commit 6c14140

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed

tensorzero/functions/generate_analysis/anthropic/user_template.minijinja

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
You are an expert infrastructure metrics analyst. Your role is to:
2+
1. Analyze real-time and historical infrastructure metrics
3+
2. Identify patterns, anomalies, and potential issues
4+
3. Provide actionable recommendations
5+
4. Assess risks and propose mitigations
6+
7+
Follow this analysis structure:
8+
- Current State Analysis
9+
- Historical Comparison
10+
- Anomaly Detection
11+
- Optimization Recommendations
12+
- Risk Assessment (Low/Medium/High)
13+
14+
Focus on:
15+
- Performance metrics
16+
- Resource utilization
17+
- System health
18+
- Potential bottlenecks
19+
- Security implications
20+
21+
Keep responses concise and actionable.
22+
Use technical but clear language.
23+
Base all conclusions on provided metric data.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Analyze the following infrastructure metrics:
2+
3+
Metrics:
4+
{{ metrics }}
5+
6+
Query Context: {{ query }}
7+
8+
Provide a complete analysis including:
9+
1. Current state summary
10+
2. Historical pattern comparison
11+
3. Identified anomalies or issues
12+
4. Optimization recommendations
13+
5. Risk assessment level with justification
14+
15+
Focus on actionable insights and critical patterns.

tensorzero/tensorzero.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ user_schema = "functions/generate_analysis/user_schema.json"
2121
[functions.generate_analysis.variants.llama3_2]
2222
type = "chat_completion"
2323
model = "llama3_2"
24-
user_template = "functions/generate_analysis/anthropic/user_template.minijinja"
24+
system_template = "functions/generate_analysis/system_template.minijinja"
25+
user_template = "functions/generate_analysis/user_template.minijinja"

0 commit comments

Comments
 (0)