entityCandidates
@forge/monorepo / backend/src / entityCandidates
Function: entityCandidates()
entityCandidates(
query): readonlystring[]
Defined in: backend/src/knowledge/graph-retrieval.ts:85
Every phrase in the query that could name an entity, normalised and deduplicated.
Longest first, which matters for ranking rather than correctness: "retry budget policy" is a more specific match than "retry budget", and a caller that stops early should see the specific one.
Exported for its own test — this is the function that decides whether a real question finds anything, and its failure mode is silent (an empty result that looks like an empty corpus).
Parameters
query
string
Returns
readonly string[]