{"record":{"id":"d55b2b800bbad97e","repo":"tinyhumansai/openhuman","slug":"embedding-route-has-invalid-dimensions-0","errorCode":null,"errorMessage":"embedding route \"{}\" has invalid dimensions=0","messagePattern":"embedding route \"(.+?)\" has invalid dimensions=0","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/platform/doctor/core.rs","lineNumber":295,"sourceCode":"            items.push(DiagnosticItem::warn(cat, \"embedding route with empty hint\"));\n        }\n        if let Some(reason) = embedding_provider_validation_error(&route.provider) {\n            items.push(DiagnosticItem::warn(\n                cat,\n                format!(\n                    \"embedding route \\\"{}\\\" uses invalid provider \\\"{}\\\": {}\",\n                    route.hint, route.provider, reason\n                ),\n            ));\n        }\n        if route.model.trim().is_empty() {\n            items.push(DiagnosticItem::warn(\n                cat,\n                format!(\"embedding route \\\"{}\\\" has empty model\", route.hint),\n            ));\n        }\n        if route.dimensions.is_some_and(|value| value == 0) {\n            items.push(DiagnosticItem::warn(\n                cat,\n                format!(\n                    \"embedding route \\\"{}\\\" has invalid dimensions=0\",\n                    route.hint\n                ),\n            ));\n        }\n    }\n\n    if let Some(hint) = config\n        .memory\n        .embedding_model\n        .strip_prefix(\"hint:\")\n        .map(str::trim)\n        .filter(|value| !value.is_empty())\n    {\n        if !config\n            .embedding_routes","sourceCodeStart":277,"sourceCodeEnd":313,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/platform/doctor/core.rs#L277-L313","documentation":"Doctor warning from the embedding_routes loop: the entry declares `dimensions = 0` (or omits a positive value). Embedding dimensions determine the vector size written to the memory store; a zero dimension cannot produce valid vectors, so any ingest or recall using this route will fail or be unusable.","triggerScenarios":"Thrown at src/openhuman/platform/doctor/core.rs:295 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set `dimensions` to the model's true output size (e.g. 1536 for text-embedding-3-small, 3072 for -large, 768 for many bge models)","Look up the dimension in the embedding model's documentation rather than guessing — a wrong non-zero value corrupts similarity search","Changing dimensions on an existing store requires re-embedding accumulated chunks"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}