Skip to main content

Interface: QueryEngine

A query engine is a question answerer that can use one or more steps.

Methods

query()

query(params)

query(params): Promise<AsyncIterable<EngineResponse>>

Query the query engine and get a response.

Parameters

params: QueryEngineParamsStreaming

Returns

Promise<AsyncIterable<EngineResponse>>

Defined in

packages/llamaindex/src/types.ts:30

query(params)

query(params): Promise<EngineResponse>

Parameters

params: QueryEngineParamsNonStreaming

Returns

Promise<EngineResponse>

Defined in

packages/llamaindex/src/types.ts:33