Class: KeywordTableIndex
The KeywordTableIndex, an index that extracts keywords from each Node and builds a mapping from each keyword to the corresponding Nodes of that keyword.
Extends
BaseIndex
<KeywordTable
>
Constructors
new KeywordTableIndex()
new KeywordTableIndex(
init
):KeywordTableIndex
Parameters
• init: BaseIndexInit
<KeywordTable
>
Returns
Overrides
Defined in
packages/llamaindex/src/indices/keyword/index.ts:160
Properties
docStore
docStore:
BaseDocumentStore
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:27
indexStore?
optional
indexStore:BaseIndexStore
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:28
indexStruct
indexStruct:
KeywordTable
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:29
serviceContext?
optional
serviceContext:ServiceContext
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:25
storageContext
storageContext:
StorageContext
Inherited from
Defined in
packages/llamaindex/src/indices/BaseIndex.ts:26
Methods
asQueryEngine()
asQueryEngine(
options
?):BaseQueryEngine
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