Interface: ResponseBuilder
A ResponseBuilder is used in a response synthesizer to generate a response from multiple response chunks.
Extends
Partial
<PromptMixin
>
Methods
getPrompts()?
optional
getPrompts():PromptsDict
Returns all prompts from the mixin and its modules
Returns
PromptsDict
Inherited from
Partial.getPrompts
Defined in
packages/llamaindex/src/prompts/Mixin.ts:27
getResponse()
getResponse(query, stream)
getResponse(
query
,stream
):Promise
<AsyncIterable
<string
>>
Get the response from a query and a list of text chunks.
Parameters
• query: ResponseBuilderQuery
• stream: true