NeighborRefiner
Defined in: src/lib/memory/graphTraversal.ts:95
Picks which candidate neighbor entities to expand at a traversal hop. Given
the query and the deterministically-ranked candidate entity names, return the
subset (≤ limit) to expand. Must be resilient: traverseGraphLane
falls back to the deterministic top-limit on a throw or empty return.
Methods
refine()
refine(
query:string,candidates:string[],limit:number):Promise<string[]>
Defined in: src/lib/memory/graphTraversal.ts:96
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Promise<string[]>
Last updated on