Passa al contenuto principale

Class: SummaryIndexRetriever

Simple retriever for SummaryIndex that returns all nodes

Implements

Constructors

constructor

new SummaryIndexRetriever(index): SummaryIndexRetriever

Parameters

NameType
indexSummaryIndex

Returns

SummaryIndexRetriever

Defined in

packages/core/src/indices/summary/index.ts:279

Properties

index

index: SummaryIndex

Defined in

packages/core/src/indices/summary/index.ts:277

Methods

getServiceContext

getServiceContext(): ServiceContext

Returns

ServiceContext

Implementation of

BaseRetriever.getServiceContext

Defined in

packages/core/src/indices/summary/index.ts:308


retrieve

retrieve(«destructured»): Promise<NodeWithScore<Metadata>[]>

Parameters

NameType
«destructured»RetrieveParams

Returns

Promise<NodeWithScore<Metadata>[]>

Implementation of

BaseRetriever.retrieve

Defined in

packages/core/src/indices/summary/index.ts:283