Skip to main content

NO_RESULT_REASONS

@forge/monorepo


@forge/monorepo / backend/src / NO_RESULT_REASONS

Variable: NO_RESULT_REASONS

const NO_RESULT_REASONS: readonly ["nothing-indexed", "no-match", "below-threshold", "no-access", "not-configured"]

Defined in: backend/src/knowledge/retrieval.ts:115

Why retrieval returned nothing.

Separate values because the assistant's sentence differs: "nothing in your documents mentions that" is a different answer from "you have no indexed documents", and telling a user the first when the second is true sends them looking for content they never uploaded.