{
  "id": "embeddings_engine",
  "label": "Embeddings Engine Canonical",
  "phase": "phase-03",
  "category": "cognitive_flow",
  "status": "ACTIVE_DH_MIRROR",
  "purpose": "Define the local semantic representation layer that turns DEVON-DEV text, code and evidence into vectors for retrieval, ranking, comparison and context selection.",
  "function": "Give Retrieval Engine and Internal RAG semantic reach beyond keyword and path matching while preserving provenance, benchmark dependency and FSM-controlled acceptance of any retrieved material.",
  "service_target": {
    "technology": "Local embeddings model",
    "candidate_family": "Sentence Transformers or equivalent local embeddings model",
    "suggested_container": "devon-embeddings-engine",
    "material_status": "MISSING_UNTIL_BENCHMARK",
    "decision_authority": "NONE_FSM_DECIDES"
  },
  "technology_requirements": [
    {
      "technology": "Local embeddings model",
      "required_for": "Represent DEVON-DEV text, code and evidence for semantic retrieval, duplicate detection, category comparison, similar patch recovery, context selection and evidence ranking.",
      "required_by_phase": "phase-03",
      "required_by_category": "embeddings_engine",
      "required_by_buckets": [
        "Prerequisites",
        "Installation",
        "Configuration",
        "Validation",
        "Observable Evidence",
        "Failure Modes & Recovery",
        "Completion & Promotion"
      ],
      "expected_version": "MISSING until embeddings model artifact decision and benchmark",
      "validation_command": "MISSING until devon-embeddings-engine exists with embedding generation and similarity benchmark checks",
      "evidence_path": "/home/yeff/public_html/devon/canon/execution/state/dh_sources/embeddings_engine_canonical.json",
      "status_source": "Documentation Hub + future Model Artifact Registry + Benchmark & Evaluation Harness + Vector Index",
      "blocking_if_missing": true,
      "failure_impact": "Without Embeddings Engine, DEVON-DEV retrieval remains limited to keyword/path matching and cannot rank semantic context, detect similar prior patches or compare documentation meaning reliably."
    }
  ],
  "depends_on": [
    "cfc",
    "local_llm_runtime",
    "qwen_coder_model",
    "qwen_data_interpreter",
    "internal_rag",
    "retrieval_engine",
    "architecture_source_registry",
    "artifact_registry",
    "fsm_absolute_decision"
  ],
  "used_by": [
    "vector_index",
    "evidence_store",
    "knowledge_conflict_resolver",
    "prompt_governance",
    "prompt_instruction_assembly",
    "self_monitoring",
    "retrieval_quality_scorer"
  ]
}
