Class: SummaryIndexRetriever
Simple retriever for SummaryIndex that returns all nodes
Implements
Constructors
constructor
• new SummaryIndexRetriever(index
): SummaryIndexRetriever
Parameters
Name | Type |
---|---|
index | SummaryIndex |
Returns
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
Implementation of
BaseRetriever.getServiceContext
Defined in
packages/core/src/indices/summary/SummaryIndexRetriever.ts:48
retrieve
▸ retrieve(query
, parentEvent?
): Promise
<NodeWithScore
<Metadata
>[]>
Parameters
Name | Type |
---|---|
query | string |
parentEvent? | Event |
Returns
Promise
<NodeWithScore
<Metadata
>[]>
Implementation of
Defined in
packages/core/src/indices/summary/SummaryIndexRetriever.ts:26