check_embedding_drift
Detect when your embedding provider has drifted from the pinned baseline by comparing a canary string's cosine similarity, preventing silent degradation of semantic search.
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. |