3 months ago
592340eAdd a bounded SELECT 1 preflight against the embeddings table before calling provider.embed. When the workspace has no rows matching the active provider/model, return the FTS + graph fallback without invoking the embedding API. This avoids unnecessary provider calls for unembedded workspaces and legacy storage under a different model key. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Parent9b612e6