File size: 6,024 Bytes
56fd459 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# AnkiGen Agent System Configuration
# Copy this file to .env and modify as needed
# =====================================
# AGENT OPERATING MODE
# =====================================
# Main operating mode: legacy, agent_only, hybrid, a_b_test
ANKIGEN_AGENT_MODE=hybrid
# A/B testing configuration (only used when mode=a_b_test)
ANKIGEN_AB_TEST_RATIO=0.5
ANKIGEN_AB_TEST_USER_HASH=
# =====================================
# GENERATION AGENTS
# =====================================
# Subject Expert Agent - domain-specific card generation
ANKIGEN_ENABLE_SUBJECT_EXPERT=true
# Pedagogical Agent - educational effectiveness review
ANKIGEN_ENABLE_PEDAGOGICAL_AGENT=false
# Content Structuring Agent - formatting and organization
ANKIGEN_ENABLE_CONTENT_STRUCTURING=false
# Generation Coordinator - orchestrates multi-agent workflows
ANKIGEN_ENABLE_GENERATION_COORDINATOR=false
# =====================================
# JUDGE AGENTS
# =====================================
# Content Accuracy Judge - fact-checking and accuracy
ANKIGEN_ENABLE_CONTENT_JUDGE=true
# Pedagogical Judge - educational effectiveness
ANKIGEN_ENABLE_PEDAGOGICAL_JUDGE=false
# Clarity Judge - communication and readability
ANKIGEN_ENABLE_CLARITY_JUDGE=false
# Technical Judge - code and technical content
ANKIGEN_ENABLE_TECHNICAL_JUDGE=false
# Completeness Judge - quality standards and completeness
ANKIGEN_ENABLE_COMPLETENESS_JUDGE=false
# Judge Coordinator - orchestrates multi-judge workflows
ANKIGEN_ENABLE_JUDGE_COORDINATOR=false
# =====================================
# ENHANCEMENT AGENTS
# =====================================
# Revision Agent - improves rejected cards
ANKIGEN_ENABLE_REVISION_AGENT=false
# Enhancement Agent - enriches content and metadata
ANKIGEN_ENABLE_ENHANCEMENT_AGENT=false
# =====================================
# WORKFLOW FEATURES
# =====================================
# Multi-agent generation workflows
ANKIGEN_ENABLE_MULTI_AGENT_GEN=false
# Parallel judge execution
ANKIGEN_ENABLE_PARALLEL_JUDGING=true
# Agent handoff capabilities
ANKIGEN_ENABLE_AGENT_HANDOFFS=false
# Agent tracing and debugging
ANKIGEN_ENABLE_AGENT_TRACING=true
# =====================================
# PERFORMANCE SETTINGS
# =====================================
# Agent execution timeout (seconds)
ANKIGEN_AGENT_TIMEOUT=30.0
# Maximum retry attempts for failed agents
ANKIGEN_MAX_AGENT_RETRIES=3
# Enable response caching for efficiency
ANKIGEN_ENABLE_AGENT_CACHING=true
# =====================================
# QUALITY CONTROL
# =====================================
# Minimum judge consensus for card approval (0.0-1.0)
ANKIGEN_MIN_JUDGE_CONSENSUS=0.6
# Maximum revision iterations for rejected cards
ANKIGEN_MAX_REVISION_ITERATIONS=3
# =====================================
# PRESET CONFIGURATIONS
# =====================================
# Uncomment one of these preset configurations:
# MINIMAL SETUP - Single subject expert + content judge
# ANKIGEN_AGENT_MODE=hybrid
# ANKIGEN_ENABLE_SUBJECT_EXPERT=true
# ANKIGEN_ENABLE_CONTENT_JUDGE=true
# ANKIGEN_ENABLE_AGENT_TRACING=true
# QUALITY FOCUSED - Full judge pipeline
# ANKIGEN_AGENT_MODE=hybrid
# ANKIGEN_ENABLE_SUBJECT_EXPERT=true
# ANKIGEN_ENABLE_CONTENT_JUDGE=true
# ANKIGEN_ENABLE_PEDAGOGICAL_JUDGE=true
# ANKIGEN_ENABLE_CLARITY_JUDGE=true
# ANKIGEN_ENABLE_COMPLETENESS_JUDGE=true
# ANKIGEN_ENABLE_JUDGE_COORDINATOR=true
# ANKIGEN_ENABLE_PARALLEL_JUDGING=true
# ANKIGEN_MIN_JUDGE_CONSENSUS=0.7
# FULL PIPELINE - All agents enabled
# ANKIGEN_AGENT_MODE=agent_only
# ANKIGEN_ENABLE_SUBJECT_EXPERT=true
# ANKIGEN_ENABLE_PEDAGOGICAL_AGENT=true
# ANKIGEN_ENABLE_CONTENT_STRUCTURING=true
# ANKIGEN_ENABLE_GENERATION_COORDINATOR=true
# ANKIGEN_ENABLE_CONTENT_JUDGE=true
# ANKIGEN_ENABLE_PEDAGOGICAL_JUDGE=true
# ANKIGEN_ENABLE_CLARITY_JUDGE=true
# ANKIGEN_ENABLE_TECHNICAL_JUDGE=true
# ANKIGEN_ENABLE_COMPLETENESS_JUDGE=true
# ANKIGEN_ENABLE_JUDGE_COORDINATOR=true
# ANKIGEN_ENABLE_REVISION_AGENT=true
# ANKIGEN_ENABLE_ENHANCEMENT_AGENT=true
# ANKIGEN_ENABLE_PARALLEL_JUDGING=true
# ANKIGEN_ENABLE_AGENT_HANDOFFS=true
# A/B TESTING SETUP - Compare agents vs legacy
# ANKIGEN_AGENT_MODE=a_b_test
# ANKIGEN_AB_TEST_RATIO=0.5
# ANKIGEN_ENABLE_SUBJECT_EXPERT=true
# ANKIGEN_ENABLE_CONTENT_JUDGE=true
# ANKIGEN_ENABLE_AGENT_TRACING=true
# =====================================
# MONITORING & DEBUGGING
# =====================================
# Agent metrics persistence directory
# ANKIGEN_METRICS_DIR=metrics/agents
# Agent configuration directory
# ANKIGEN_CONFIG_DIR=config/agents
# Enable detailed debug logging
# ANKIGEN_DEBUG_MODE=false
# =====================================
# COST OPTIMIZATION
# =====================================
# Model preferences for different agent types
# ANKIGEN_GENERATION_MODEL=gpt-4o
# ANKIGEN_JUDGE_MODEL=gpt-4o-mini
# ANKIGEN_CRITICAL_JUDGE_MODEL=gpt-4o
# Token usage limits per request
# ANKIGEN_MAX_INPUT_TOKENS=4000
# ANKIGEN_MAX_OUTPUT_TOKENS=2000
# =====================================
# NOTES
# =====================================
# Performance Impact:
# - Each enabled agent adds processing time and cost
# - Parallel judging reduces latency but increases concurrent API calls
# - Caching significantly improves performance for similar requests
# Quality vs Speed:
# - More judges = better quality but slower generation
# - Agent coordination adds overhead but improves consistency
# - Enhancement agents provide best quality but highest cost
# Recommended Starting Configuration:
# 1. Start with hybrid mode + subject expert + content judge
# 2. Enable A/B testing to compare with legacy system
# 3. Gradually add more agents based on quality needs
# 4. Monitor metrics and adjust consensus thresholds
# Cost Considerations:
# - Subject Expert: ~2-3x cost of legacy (higher quality)
# - Judge Pipeline: ~1.5-2x additional cost (significant quality improvement)
# - Enhancement Pipeline: ~1.2-1.5x additional cost (marginal improvement)
# - Full pipeline: ~4-6x cost of legacy (maximum quality) |