Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(retrieval): skip query embedding when no active-model vectors exist

3 months ago

592340e
Authored
asta-nguyen8/11/2026, 4:02:33 PM
Add 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

2 files changed
  • packages/core/src/retrieval.ts+15−0
  • tests/hybrid-retrieval.test.ts+4−4