|
11 | 11 | keywords: ["urgent", "immediate", "asap", "think", "careful"] |
12 | 12 | caseSensitive: false |
13 | 13 |
|
14 | | - - name: "security" |
15 | | - operator: "OR" |
16 | | - keywords: ["security", "vulnerability", "exploit", "hack", "breach", "attack"] |
17 | | - caseSensitive: false |
18 | | - |
19 | | - - name: "performance" |
20 | | - operator: "OR" |
21 | | - keywords: ["performance", "optimization", "speed", "latency", "throughput"] |
22 | | - caseSensitive: false |
23 | | - |
24 | | - - name: "debugging" |
25 | | - operator: "OR" |
26 | | - keywords: ["debug", "error", "bug", "issue", "problem", "troubleshoot"] |
27 | | - caseSensitive: false |
28 | | - |
29 | | - - name: "tutorial" |
30 | | - operator: "OR" |
31 | | - keywords: ["tutorial", "guide", "how-to", "learn", "teach", "explain"] |
32 | | - caseSensitive: false |
33 | | - |
34 | | - embeddings: |
35 | | - - name: "technical_support" |
36 | | - threshold: 0.75 |
37 | | - candidates: |
38 | | - - "I need help with a technical issue" |
39 | | - - "Can you help me troubleshoot this problem?" |
40 | | - - "Something is not working correctly" |
41 | | - - "I'm experiencing technical difficulties" |
42 | | - aggregationMethod: "max" |
43 | | - |
44 | | - - name: "code_review" |
45 | | - threshold: 0.78 |
46 | | - candidates: |
47 | | - - "Can you review my code?" |
48 | | - - "Please check this implementation" |
49 | | - - "Is this code correct?" |
50 | | - - "Can you suggest improvements to this code?" |
51 | | - aggregationMethod: "max" |
52 | | - |
53 | | - - name: "architecture_design" |
54 | | - threshold: 0.80 |
55 | | - candidates: |
56 | | - - "How should I design this system?" |
57 | | - - "What's the best architecture for this?" |
58 | | - - "Can you help me design the system architecture?" |
59 | | - - "What design patterns should I use?" |
60 | | - aggregationMethod: "max" |
61 | | - |
62 | | - - name: "research_question" |
63 | | - threshold: 0.77 |
64 | | - candidates: |
65 | | - - "Can you explain the theory behind this?" |
66 | | - - "What are the latest research findings?" |
67 | | - - "I'm conducting research on this topic" |
68 | | - - "What does the scientific literature say?" |
69 | | - aggregationMethod: "max" |
70 | | - |
71 | | - - name: "learning_intent" |
72 | | - threshold: 0.72 |
73 | | - candidates: |
74 | | - - "I want to learn about this topic" |
75 | | - - "Can you teach me how to do this?" |
76 | | - - "I'm trying to understand this concept" |
77 | | - - "Help me learn this skill" |
78 | | - aggregationMethod: "max" |
79 | | - |
80 | 14 | domains: |
81 | 15 | - name: "business" |
82 | 16 | description: "Business and management related queries" |
@@ -400,245 +334,19 @@ spec: |
400 | 334 | conditions: |
401 | 335 | - type: "domain" |
402 | 336 | name: "engineering" |
403 | | - modelRefs: |
404 | | - - model: "base-model" |
405 | | - loraName: "science-expert" |
406 | | - useReasoning: false |
407 | | - plugins: |
408 | | - - type: "pii" |
409 | | - configuration: |
410 | | - enabled: true |
411 | | - pii_types_allowed: [] |
412 | | - - type: "system_prompt" |
413 | | - configuration: |
414 | | - enabled: true |
415 | | - 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." |
416 | | - mode: "replace" |
417 | | - |
418 | | - - name: "thinking_decision" |
419 | | - priority: 20 |
420 | | - description: "Complex reasoning and multi-step thinking" |
421 | | - signals: |
422 | | - operator: "OR" |
423 | | - conditions: |
424 | | - - type: "keyword" |
425 | | - name: "thinking" |
426 | | - modelRefs: |
427 | | - - model: "base-model" |
428 | | - loraName: "general-expert" |
429 | | - useReasoning: true |
430 | | - plugins: |
431 | | - - type: "pii" |
432 | | - configuration: |
433 | | - enabled: true |
434 | | - pii_types_allowed: [] |
435 | | - - type: "system_prompt" |
436 | | - configuration: |
437 | | - enabled: true |
438 | | - system_prompt: "You are a thinking expert, should think multiple steps before answering. Please answer the question step by step." |
439 | | - mode: "replace" |
440 | | - |
441 | | - - name: "security_decision" |
442 | | - priority: 25 |
443 | | - description: "Security-related queries requiring careful analysis" |
444 | | - signals: |
445 | | - operator: "OR" |
446 | | - conditions: |
447 | | - - type: "keyword" |
448 | | - name: "security" |
449 | | - modelRefs: |
450 | | - - model: "base-model" |
451 | | - loraName: "science-expert" |
452 | | - useReasoning: true |
453 | | - plugins: |
454 | | - - type: "pii" |
455 | | - configuration: |
456 | | - enabled: true |
457 | | - pii_types_allowed: [] |
458 | | - - type: "jailbreak" |
459 | | - configuration: |
460 | | - enabled: true |
461 | | - threshold: 0.85 |
462 | | - - type: "system_prompt" |
463 | | - configuration: |
464 | | - enabled: true |
465 | | - system_prompt: "You are a cybersecurity expert with deep knowledge of security vulnerabilities, threat analysis, secure coding practices, and defense strategies. Provide comprehensive security guidance while emphasizing responsible disclosure and ethical practices." |
466 | | - mode: "replace" |
467 | | - |
468 | | - - name: "performance_optimization_decision" |
469 | | - priority: 15 |
470 | | - description: "Performance optimization and efficiency queries" |
471 | | - signals: |
472 | | - operator: "OR" |
473 | | - conditions: |
474 | | - - type: "keyword" |
475 | | - name: "performance" |
476 | | - modelRefs: |
477 | | - - model: "base-model" |
478 | | - loraName: "science-expert" |
479 | | - useReasoning: true |
480 | | - plugins: |
481 | | - - type: "pii" |
482 | | - configuration: |
483 | | - enabled: true |
484 | | - pii_types_allowed: [] |
485 | | - - type: "system_prompt" |
486 | | - configuration: |
487 | | - enabled: true |
488 | | - system_prompt: "You are a performance optimization expert specializing in system efficiency, algorithm optimization, and resource management. Provide data-driven recommendations with benchmarking strategies and best practices for performance tuning." |
489 | | - mode: "replace" |
490 | | - |
491 | | - - name: "debugging_decision" |
492 | | - priority: 18 |
493 | | - description: "Debugging and troubleshooting assistance" |
494 | | - signals: |
495 | | - operator: "OR" |
496 | | - conditions: |
497 | | - - type: "keyword" |
498 | | - name: "debugging" |
499 | | - - type: "embedding" |
500 | | - name: "technical_support" |
501 | | - modelRefs: |
502 | | - - model: "base-model" |
503 | | - loraName: "science-expert" |
504 | | - useReasoning: false |
505 | | - plugins: |
506 | | - - type: "pii" |
507 | | - configuration: |
508 | | - enabled: true |
509 | | - pii_types_allowed: [] |
510 | | - - type: "system_prompt" |
511 | | - configuration: |
512 | | - enabled: true |
513 | | - system_prompt: "You are a debugging expert skilled in systematic problem diagnosis, root cause analysis, and troubleshooting methodologies. Guide users through structured debugging processes with clear steps and diagnostic techniques." |
514 | | - mode: "replace" |
515 | | - |
516 | | - - name: "code_review_decision" |
517 | | - priority: 15 |
518 | | - description: "Code review and quality assessment" |
519 | | - signals: |
520 | | - operator: "OR" |
521 | | - conditions: |
522 | | - - type: "embedding" |
523 | | - name: "code_review" |
524 | | - modelRefs: |
525 | | - - model: "base-model" |
526 | | - loraName: "science-expert" |
527 | | - useReasoning: false |
528 | | - plugins: |
529 | | - - type: "pii" |
530 | | - configuration: |
531 | | - enabled: true |
532 | | - pii_types_allowed: [] |
533 | | - - type: "system_prompt" |
534 | | - configuration: |
535 | | - enabled: true |
536 | | - system_prompt: "You are a senior code reviewer with expertise in software quality, design patterns, and best practices. Provide constructive feedback focusing on code readability, maintainability, performance, security, and adherence to coding standards." |
537 | | - mode: "replace" |
538 | | - |
539 | | - - name: "architecture_design_decision" |
540 | | - priority: 17 |
541 | | - description: "System architecture and design guidance" |
542 | | - signals: |
543 | | - operator: "OR" |
544 | | - conditions: |
545 | | - - type: "embedding" |
546 | | - name: "architecture_design" |
547 | | - modelRefs: |
548 | | - - model: "base-model" |
549 | | - loraName: "science-expert" |
550 | | - useReasoning: true |
551 | | - plugins: |
552 | | - - type: "pii" |
553 | | - configuration: |
554 | | - enabled: true |
555 | | - pii_types_allowed: [] |
556 | | - - type: "system_prompt" |
557 | | - configuration: |
558 | | - enabled: true |
559 | | - system_prompt: "You are a software architect with extensive experience in system design, architectural patterns, scalability, and distributed systems. Provide comprehensive architectural guidance considering trade-offs, scalability, maintainability, and industry best practices." |
560 | | - mode: "replace" |
561 | | - |
562 | | - - name: "research_decision" |
563 | | - priority: 12 |
564 | | - description: "Research and academic queries" |
565 | | - signals: |
566 | | - operator: "OR" |
567 | | - conditions: |
568 | | - - type: "embedding" |
569 | | - name: "research_question" |
570 | | - modelRefs: |
571 | | - - model: "base-model" |
572 | | - loraName: "science-expert" |
573 | | - useReasoning: true |
574 | | - plugins: |
575 | | - - type: "pii" |
576 | | - configuration: |
577 | | - enabled: true |
578 | | - pii_types_allowed: [] |
579 | | - - type: "semantic-cache" |
580 | | - configuration: |
581 | | - enabled: true |
582 | | - similarity_threshold: 0.88 |
583 | | - - type: "system_prompt" |
584 | | - configuration: |
585 | | - enabled: true |
586 | | - system_prompt: "You are a research expert with strong analytical skills and knowledge of scientific methodology. Provide evidence-based responses citing relevant research, explain complex concepts clearly, and guide users through research processes." |
587 | | - mode: "replace" |
588 | | - |
589 | | - - name: "learning_tutorial_decision" |
590 | | - priority: 8 |
591 | | - description: "Educational and tutorial content" |
592 | | - signals: |
593 | | - operator: "OR" |
594 | | - conditions: |
595 | | - - type: "keyword" |
596 | | - name: "tutorial" |
597 | | - - type: "embedding" |
598 | | - name: "learning_intent" |
599 | | - modelRefs: |
600 | | - - model: "base-model" |
601 | | - loraName: "general-expert" |
602 | | - useReasoning: false |
603 | | - plugins: |
604 | | - - type: "pii" |
605 | | - configuration: |
606 | | - enabled: true |
607 | | - pii_types_allowed: [] |
608 | | - - type: "semantic-cache" |
609 | | - configuration: |
610 | | - enabled: true |
611 | | - similarity_threshold: 0.80 |
612 | | - - type: "system_prompt" |
613 | | - configuration: |
614 | | - enabled: true |
615 | | - system_prompt: "You are an educational expert skilled in breaking down complex topics into understandable lessons. Use clear explanations, practical examples, step-by-step guidance, and encourage active learning. Adapt your teaching style to the learner's level." |
616 | | - mode: "replace" |
617 | | - |
618 | | - - name: "general_decision" |
619 | | - priority: 1 |
620 | | - description: "General knowledge and miscellaneous topics" |
621 | | - signals: |
622 | | - operator: "OR" |
623 | | - conditions: |
624 | 337 | - type: "domain" |
625 | 338 | name: "other" |
626 | 339 | modelRefs: |
627 | 340 | - model: "base-model" |
628 | | - loraName: "general-expert" |
| 341 | + loraName: "science-expert" |
629 | 342 | useReasoning: false |
630 | 343 | plugins: |
631 | 344 | - type: "pii" |
632 | 345 | configuration: |
633 | 346 | enabled: true |
634 | 347 | pii_types_allowed: [] |
635 | | - - type: "semantic-cache" |
636 | | - configuration: |
637 | | - enabled: true |
638 | | - similarity_threshold: 0.75 |
639 | 348 | - type: "system_prompt" |
640 | 349 | configuration: |
641 | 350 | enabled: true |
642 | | - system_prompt: "You are a helpful and knowledgeable assistant. Provide accurate, helpful responses across a wide range of topics." |
| 351 | + 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." |
643 | 352 | mode: "replace" |
644 | | - |
0 commit comments