Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / parseHypothetical

Function: parseHypothetical()

ts
function parseHypothetical(text): string | null;

Defined in: packages/memory/src/search/query-transform.ts:181

Parse the HyDE model output into a single passage, or null when the model returned nothing usable. Strips a fenced block and trims.

Parameters

ParameterType
textstring | undefined

Returns

string | null

Stable