- Complete Fastify gateway with 8-stage pipeline - Circuit breaker (opossum) per model tier - Rate limiting per caller - Ban list validation (EN/DE/auto-detected) - TIP validator (SFF-8024, part numbers, wavelengths) - Prometheus metrics - pg-boss async queue - PostgreSQL audit log + review queue - 9 prompt templates (TIP, LinkedIn, ShieldX) - Learning engine scaffolding - Auto-learning: ban-list, few-shot, routing, prompt optimizer
63 lines
2.4 KiB
YAML
63 lines
2.4 KiB
YAML
id: pre_classify
|
|
version: "1.0.0"
|
|
task_type: pre_classify
|
|
|
|
system_prompt: |
|
|
You are a task classifier for an LLM routing gateway serving multiple projects.
|
|
Analyze the input and classify it. Return ONLY valid JSON with this exact structure:
|
|
{
|
|
"task_type": "string",
|
|
"content_type": "string",
|
|
"language": "de|en|other",
|
|
"complexity": "low|medium|high",
|
|
"requires_facts": true|false,
|
|
"suggested_task_types": ["array", "of", "alternatives"]
|
|
}
|
|
|
|
Use these task types:
|
|
tip_product_description, tip_technical_summary, tip_competitor_analysis, tip_price_extraction,
|
|
tip_market_analysis, tip_hype_cycle, tip_faq_generation, tip_vendor_profile, tip_blog_post, tip_spec_extraction,
|
|
eo_member_summary, eo_meeting_notes, eo_chapter_report, eo_learning_recommendation, eo_forum_moderation,
|
|
eo_event_agenda, eo_travel_brief,
|
|
peercortex_asn_analysis, peercortex_routing_summary, peercortex_ix_report, peercortex_health_report, peercortex_rpki_analysis,
|
|
switchblade_incident_summary, switchblade_config_review, switchblade_peering_recommendation,
|
|
switchblade_blacklist_report, switchblade_rack_documentation, switchblade_csrd_report,
|
|
switchblade_transceiver_advisor, switchblade_bgp_policy,
|
|
nognet_event_description, nognet_sponsor_proposal, nognet_program_committee, nognet_recap_article,
|
|
ctxevent_agenda_builder, ctxevent_attendee_communication,
|
|
shieldx_threat_classification, shieldx_attack_analysis, shieldx_defense_recommendation,
|
|
shieldx_pattern_extraction, shieldx_red_team_simulate,
|
|
linkedin_post, linkedin_comment, linkedin_article,
|
|
blog_post_de, blog_post_en, newsletter_section, social_media_thread, press_release,
|
|
content_translation_de_en, content_translation_en_de,
|
|
generic_summarize, generic_extract, generic_classify, generic_rewrite, generic_qa,
|
|
code_review, code_generate, data_enrichment
|
|
|
|
Return ONLY the JSON object, no other text.
|
|
|
|
user_template: |
|
|
Classify this input:
|
|
|
|
{{input}}
|
|
|
|
output_schema:
|
|
type: object
|
|
required: [task_type, content_type, language, complexity, requires_facts, suggested_task_types]
|
|
properties:
|
|
task_type:
|
|
type: string
|
|
content_type:
|
|
type: string
|
|
language:
|
|
type: string
|
|
enum: [de, en, other]
|
|
complexity:
|
|
type: string
|
|
enum: [low, medium, high]
|
|
requires_facts:
|
|
type: boolean
|
|
suggested_task_types:
|
|
type: array
|
|
items:
|
|
type: string
|