check_embedding_drift
Detect embedding provider drift since the last pinned baseline, using a canary vector to measure cosine similarity and alert when semantic search may silently degrade.
Instructions
Detect whether the embedding provider has drifted since it was pinned. Column embeddings power semantic search_data and find_similar_columns; if the provider model changes underneath a stored index, saved vectors stop matching the live encoder and semantic ranking quietly degrades. Pins a 16-string canary in /embed_canary.json and recomputes it on demand, reporting cosine drift. Call with force=true once to set the baseline, then again after a suspected provider change. Sibling of jcodemunch / jdocmunch check_embedding_drift.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Re-embed and re-pin the canary baseline (set once to establish it). | |
| threshold | No | Cosine-distance alarm threshold; alarm is true when the worst canary drifts past it. |