{"record":{"id":"0a3e3ee251dc7441","repo":"MemPalace/mempalace","slug":"no-embedder-model-to-record-pass-model-name-or","errorCode":null,"errorMessage":"no embedder model to record: pass --model NAME or configure MEMPALACE_EMBEDDING_MODEL","messagePattern":"no embedder model to record: pass --model NAME or configure MEMPALACE_EMBEDDING_MODEL","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"mempalace/palace.py","lineNumber":306,"sourceCode":"):\n    \"\"\"Record (or force-override) a palace collection's embedder identity (RFC 001).\n\n    Backs ``mempalace palace set-embedder``. Returns ``(old, new)`` identities.\n    Without ``force``, refuses to overwrite an existing identity that names a\n    different model (the user must confirm they know the vectors are\n    compatible). Opens with the identity check skipped so a mismatched palace —\n    the exact state being repaired — can be opened at all.\n    \"\"\"\n    from .backends.base import EmbedderIdentity, EmbedderIdentityMismatchError\n    from .config import MempalaceConfig\n    from .embedding import get_embedder_identity\n\n    configured = MempalaceConfig().embedding_model\n    target = (model or configured or \"\").strip().lower()\n    if not target:\n        # No model given and none configured — there is nothing to record, and\n        # recording a nameless identity is a silent no-op in every backend.\n        raise ValueError(\n            \"no embedder model to record: pass --model NAME or configure MEMPALACE_EMBEDDING_MODEL\"\n        )\n    if target == (configured or \"\").strip().lower():\n        # Recording the in-use model — probe its dimension (already loaded).\n        new = get_embedder_identity()\n    else:\n        # Explicit override of a non-configured model: record the name only,\n        # never load a foreign model (which can be a large download) just to\n        # probe a dimension. The model-name check is the actual protection.\n        new = EmbedderIdentity(model_name=target, dimension=0)\n    collection = get_collection(\n        palace_path,\n        collection_name=collection_name,\n        create=True,\n        backend=backend,\n        _skip_identity_check=True,\n    )\n    try:","sourceCodeStart":288,"sourceCodeEnd":324,"githubUrl":"https://github.com/MemPalace/mempalace/blob/06cb6987f02610784fefbad4b2bd5d026d164ba6/mempalace/palace.py#L288-L324","documentation":"Error \"no embedder model to record: pass --model NAME or configure MEMPALACE_EMBEDDING_MODEL\" thrown in MemPalace/mempalace.","triggerScenarios":"Thrown at mempalace/palace.py:306 when the library encounters an invalid state.","commonSituations":"set-embedder was run without any model identity to record.","solutions":["Pass --model NAME or set MEMPALACE_EMBEDDING_MODEL"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"06cb6987f02610784fefbad4b2bd5d026d164ba6","analyzedAt":"2026-08-15T03:03:36.213Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}