Skip to main content

Class: SummaryIndexRetriever

Simple retriever for SummaryIndex that returns all nodes

Implements

Constructors

constructor

new SummaryIndexRetriever(index)

Parameters

NameType
indexSummaryIndex

Defined in

packages/core/src/indices/summary/SummaryIndexRetriever.ts:22

Properties

index

index: SummaryIndex

Defined in

packages/core/src/indices/summary/SummaryIndexRetriever.ts:20

Methods

getServiceContext

getServiceContext(): ServiceContext

Returns

ServiceContext

Implementation of

BaseRetriever.getServiceContext

Defined in

packages/core/src/indices/summary/SummaryIndexRetriever.ts:48


retrieve

retrieve(query, parentEvent?): Promise<NodeWithScore<Metadata>[]>

Parameters

NameType
querystring
parentEvent?Event

Returns

Promise<NodeWithScore<Metadata>[]>

Implementation of

BaseRetriever.retrieve

Defined in

packages/core/src/indices/summary/SummaryIndexRetriever.ts:26