Skip to content

buildGroundedPrompt

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/techdocs/grounded-ask.ts

Build the grounded prompt: each source leads with its citable [path] id.

Signature

ts
function buildGroundedPrompt(question: string, context: DocSearchHit[]): string

Parameters

NameType
questionstring
contextDocSearchHit[]

Returns: string

Was this page helpful?

Download as PDF