Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/memory / / assessQueryDifficulty
Function: assessQueryDifficulty()
ts
function assessQueryDifficulty(query, options?): DifficultyAssessment;Defined in: packages/memory/src/search/iterative.ts:117
Score a query's retrieval difficulty with cheap, deterministic, fully local heuristics (no I/O). Conservative by design — it prefers to leave a query single-shot (hard: false) unless several multi-hop / temporal / comparison signals stack up, so the gate adds passes only where they are likely to help. Used by runIterativeRetrieval to decide whether to enter the loop.
Parameters
| Parameter | Type |
|---|---|
query | string |
options | DifficultyGateOptions |