Skip to content

SummaryIndex

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:63

A SummaryIndex keeps nodes in a sequential order for use with summarization.

new SummaryIndex(init): SummaryIndex

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:64

BaseIndexInit<IndexList>

SummaryIndex

BaseIndex.constructor

storageContext: StorageContext

Defined in: .build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:52

BaseIndex.storageContext


docStore: BaseDocumentStore

Defined in: .build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:53

BaseIndex.docStore


optional indexStore: BaseIndexStore

Defined in: .build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:54

BaseIndex.indexStore


indexStruct: IndexList

Defined in: .build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:55

BaseIndex.indexStruct

asQueryTool(params): QueryEngineTool

Defined in: .build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:94

Returns a query tool by calling asQueryEngine. Either options or retriever can be passed, but not both. If options are provided, they are passed to generate a retriever.

QueryToolParams

QueryEngineTool

BaseIndex.asQueryTool


insert(document): Promise<void>

Defined in: .build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:110

Insert a document into the index.

Document

Promise<void>

BaseIndex.insert


retriever(options?): BaseRetriever

Defined in: .build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:127

Alias for asRetriever

any

BaseRetriever

BaseIndex.retriever


queryEngine(options?): BaseQueryEngine

Defined in: .build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:135

Alias for asQueryEngine

you can supply your own custom Retriever and ResponseSynthesizer

BaseRetriever

BaseSynthesizer

BaseQueryEngine

BaseIndex.queryEngine


queryTool(params): QueryEngineTool

Defined in: .build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:147

Alias for asQueryTool Either options or retriever can be passed, but not both. If options are provided, they are passed to generate a retriever.

QueryToolParams

QueryEngineTool

BaseIndex.queryTool


static init(options): Promise<SummaryIndex>

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:68

SummaryIndexOptions

Promise<SummaryIndex>


static fromDocuments(documents, args): Promise<SummaryIndex>

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:133

Document<Metadata>[]

StorageContext

Promise<SummaryIndex>


asRetriever(options?): BaseRetriever

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:157

Create a new retriever from the index.

SummaryRetrieverMode

BaseRetriever

BaseIndex.asRetriever


asQueryEngine(options?): RetrieverQueryEngine

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:170

Create a new query engine from the index. It will also create a retriever and response synthezier if they are not provided.

you can supply your own custom Retriever and ResponseSynthesizer

BaseRetriever

BaseSynthesizer

unknown

BaseNodePostprocessor[]

RetrieverQueryEngine

BaseIndex.asQueryEngine


asChatEngine(options?): BaseChatEngine

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:193

Create a new chat engine from the index.

SummaryIndexChatEngineOptions

BaseChatEngine

BaseIndex.asChatEngine


static buildIndexFromNodes(nodes, docStore, indexStruct?): Promise<IndexList>

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:203

BaseNode<Metadata>[]

BaseDocumentStore

IndexList

Promise<IndexList>


insertNodes(nodes): Promise<void>

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:218

BaseNode<Metadata>[]

Promise<void>

BaseIndex.insertNodes


deleteRefDoc(refDocId, deleteFromDocStore?): Promise<void>

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:224

string

boolean

Promise<void>

BaseIndex.deleteRefDoc


deleteNodes(nodeIds, deleteFromDocStore): Promise<void>

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:243

string[]

boolean

Promise<void>


getRefDocInfo(): Promise<Record<string, RefDocInfo>>

Defined in: .build/typescript/packages/llamaindex/src/indices/summary/index.ts:257

Promise<Record<string, RefDocInfo>>