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
| Parameter | Type |
|---|---|
text | string | undefined |
Returns
string | null