{
  "system": "cad-detail.cz",
  "version": "1.0.1",

  "entry_points": {
    "index": "/ai/ai-index.json",
    "instructions": "/ai/ai-instructions.json",
    "site_guidelines": "/ai/site-guidelines.json",
    "features": "/ai/feature_list_all.json",
    "enriched_features": "/ai/enriched_features.json",
    "knowledge_graph": "/ai/knowledge_graph.json",
    "datasets": "/ai/llms-full.json",
    "chunks": "/json_chunks/"
  },

  "capabilities": {
    "search": true,
    "get_detail": true,
    "related": true,
    "filter_by_layer": true,
    "filter_by_material": true,
    "filter_by_system": true,
    "asset_resolution": true,
    "graph_traversal": true,
    "norm_reference_lookup": true
  },

  "query_flow": [
    "load_ai_index",
    "load_site_guidelines",
    "apply_feature_list_filter",
    "apply_enriched_features",
    "search_llms_full",
    "fallback_chunk_search",
    "graph_expansion_if_needed",
    "return_structured_result"
  ],

  "data_contract": {
    "primary_key": "id",
    "required_fields": [
      "id",
      "title"
    ],
    "optional_fields": [
      "text",
      "steps",
      "materials",
      "layers",
      "systems",
      "norms",
      "assets"
    ]
  },

  "output": {
    "mode": "structured_first",
    "formats": {
      "structuredContent": true,
      "human_text": true
    },
    "require_id_in_every_result": true
  },

  "retrieval": {
    "source_of_truth": [
      "/ai/llms-full.json",
      "/ai/feature_list_all.json",
      "/ai/enriched_features.json",
      "/ai/knowledge_graph.json",
      "/ai/site-guidelines.json"
    ],
    "chunking": {
      "enabled": true,
      "paths": [
        "/json_chunks/llms-public-chunk-",
        "/json_chunks/knowledge_graph-public-chunk-",
        "/json_chunks/feature_list_all-public-chunk-"
      ]
    }
  },

  "assets": {
    "supported_types": [
      "pdf",
      "dwg",
      "dxf",
      "webp"
    ],
    "require_https": true,
    "fallback_order": [
      "dwg",
      "dxf",
      "pdf"
    ]
  },

  "graph": {
    "enabled": true,
    "edge_types": [
      "similar",
      "contains",
      "depends_on",
      "variant_of",
      "same_system",
      "norm_applies"
    ]
  },

  "rules": {
    "no_hallucination": true,
    "must_use_authorized_sources_only": true,
    "prefer_structured_over_text": true
  }
}