Skip to main content

Interface: BaseSynthesizer

A BaseSynthesizer is used to generate a response from a query and a list of nodes.

Methods

synthesize()

synthesize(query, stream)

synthesize(query, stream): Promise<AsyncIterable<EngineResponse>>

Parameters

query: SynthesizeQuery

stream: true

Returns

Promise<AsyncIterable<EngineResponse>>

Defined in

packages/llamaindex/src/synthesizers/types.ts:15

synthesize(query, stream)

synthesize(query, stream?): Promise<EngineResponse>

Parameters

query: SynthesizeQuery

stream?: false

Returns

Promise<EngineResponse>

Defined in

packages/llamaindex/src/synthesizers/types.ts:19