Class: SummaryIndex
A SummaryIndex keeps nodes in a sequential order for use with summarization.
Extends
Constructors
new SummaryIndex()
new SummaryIndex(
init
):SummaryIndex
Parameters
• init: BaseIndexInit
<IndexList
>
Returns
Overrides
Defined in
packages/llamaindex/src/indices/summary/index.ts:62
Properties
docStore
docStore:
BaseDocumentStore
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:60
indexStore?
optional
indexStore:BaseIndexStore
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:61
indexStruct
indexStruct:
IndexList
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:62
serviceContext?
optional
serviceContext:ServiceContext
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:58
storageContext
storageContext:
StorageContext
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:59
Methods
asQueryEngine()
asQueryEngine(
options
?):QueryEngine
&RetrieverQueryEngine
Create a new query engine from the index. It will also create a retriever and response synthezier if they are not provided.
Parameters
• options?
you can supply your own custom Retriever and ResponseSynthesizer
• options.nodePostprocessors?: BaseNodePostprocessor
[]
• options.preFilters?: unknown
• options.responseSynthesizer?: BaseSynthesizer
• options.retriever?: BaseRetriever
Returns
QueryEngine
& RetrieverQueryEngine
Overrides
Defined in
packages/llamaindex/src/indices/summary/index.ts:176
asRetriever()
asRetriever(
options
?):BaseRetriever
Create a new retriever from the index.
Parameters
• options?
• options.mode?: SummaryRetrieverMode
Returns
Overrides
Defined in
packages/llamaindex/src/indices/summary/index.ts:163
deleteNodes()
deleteNodes(
nodeIds
,deleteFromDocStore
):Promise
<void
>
Parameters
• nodeIds: string
[]
• deleteFromDocStore: boolean
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/indices/summary/index.ts:244
deleteRefDoc()
deleteRefDoc(
refDocId
,deleteFromDocStore
?):Promise
<void
>