|
| 1 | +apiVersion: v1 |
| 2 | +kind: ConfigMap |
| 3 | +metadata: |
| 4 | + name: semantic-router-kserve-config-milvus |
| 5 | + labels: |
| 6 | + app: semantic-router |
| 7 | + component: config |
| 8 | +data: |
| 9 | + config.yaml: | |
| 10 | + bert_model: |
| 11 | + model_id: models/{{EMBEDDING_MODEL}} |
| 12 | + threshold: 0.6 |
| 13 | + use_cpu: true |
| 14 | +
|
| 15 | + semantic_cache: |
| 16 | + enabled: true |
| 17 | + backend_type: "milvus" |
| 18 | + backend_config_path: "config/semantic-cache/milvus.yaml" |
| 19 | + similarity_threshold: 0.8 |
| 20 | + ttl_seconds: 3600 |
| 21 | + embedding_model: "bert" |
| 22 | +
|
| 23 | + tools: |
| 24 | + enabled: false |
| 25 | + top_k: 3 |
| 26 | + similarity_threshold: 0.2 |
| 27 | + tools_db_path: "config/tools_db.json" |
| 28 | + fallback_to_empty: true |
| 29 | +
|
| 30 | + prompt_guard: |
| 31 | + enabled: true |
| 32 | + use_modernbert: true |
| 33 | + model_id: "models/jailbreak_classifier_modernbert-base_model" |
| 34 | + threshold: 0.7 |
| 35 | + use_cpu: true |
| 36 | + jailbreak_mapping_path: "models/jailbreak_classifier_modernbert-base_model/jailbreak_type_mapping.json" |
| 37 | +
|
| 38 | + vllm_endpoints: |
| 39 | + - name: "{{INFERENCESERVICE_NAME}}-endpoint" |
| 40 | + address: "{{PREDICTOR_SERVICE_IP}}" |
| 41 | + port: 8080 |
| 42 | + weight: 1 |
| 43 | +
|
| 44 | + model_config: |
| 45 | + "{{MODEL_NAME}}": |
| 46 | + reasoning_family: "qwen3" |
| 47 | + preferred_endpoints: ["{{INFERENCESERVICE_NAME}}-endpoint"] |
| 48 | +
|
| 49 | + classifier: |
| 50 | + category_model: |
| 51 | + model_id: "models/category_classifier_modernbert-base_model" |
| 52 | + use_modernbert: true |
| 53 | + threshold: 0.6 |
| 54 | + use_cpu: true |
| 55 | + category_mapping_path: "models/category_classifier_modernbert-base_model/category_mapping.json" |
| 56 | + pii_model: |
| 57 | + model_id: "models/pii_classifier_modernbert-base_presidio_token_model" |
| 58 | + use_modernbert: true |
| 59 | + threshold: 0.7 |
| 60 | + use_cpu: true |
| 61 | + pii_mapping_path: "models/pii_classifier_modernbert-base_presidio_token_model/pii_type_mapping.json" |
| 62 | +
|
| 63 | + categories: |
| 64 | + - name: business |
| 65 | + - name: law |
| 66 | + - name: psychology |
| 67 | + - name: biology |
| 68 | + - name: chemistry |
| 69 | + - name: history |
| 70 | + - name: other |
| 71 | + - name: health |
| 72 | + - name: economics |
| 73 | + - name: math |
| 74 | + - name: physics |
| 75 | + - name: computer_science |
| 76 | + - name: philosophy |
| 77 | + - name: engineering |
| 78 | +
|
| 79 | + strategy: "priority" |
| 80 | +
|
| 81 | + decisions: |
| 82 | + - name: "general_decision" |
| 83 | + description: "General knowledge and miscellaneous topics" |
| 84 | + priority: 50 |
| 85 | + rules: |
| 86 | + operator: "AND" |
| 87 | + conditions: |
| 88 | + - type: "domain" |
| 89 | + name: "other" |
| 90 | + modelRefs: |
| 91 | + - model: "{{MODEL_NAME}}" |
| 92 | + use_reasoning: false |
| 93 | + plugins: |
| 94 | + - type: "semantic-cache" |
| 95 | + configuration: |
| 96 | + enabled: true |
| 97 | + similarity_threshold: 0.75 |
| 98 | + - type: "pii" |
| 99 | + configuration: |
| 100 | + enabled: true |
| 101 | + pii_types_allowed: [] |
| 102 | +
|
| 103 | + default_model: {{MODEL_NAME}} |
| 104 | +
|
| 105 | + reasoning_families: |
| 106 | + deepseek: |
| 107 | + type: "chat_template_kwargs" |
| 108 | + parameter: "thinking" |
| 109 | + qwen3: |
| 110 | + type: "chat_template_kwargs" |
| 111 | + parameter: "enable_thinking" |
0 commit comments