Class: IndexDict
The underlying structure of each index.
Extends
Constructors
new IndexDict()
new IndexDict(
indexId
,summary
):IndexDict
Parameters
• indexId: `${string}-${string}-${string}-${string}-${string}`= undefined
• summary: undefined
= undefined
Returns
Inherited from
Source
packages/llamaindex/src/indices/IndexStruct.ts:10
Properties
indexId
indexId:
string
Inherited from
Source
packages/llamaindex/src/indices/IndexStruct.ts:7
nodesDict
Source
packages/llamaindex/src/indices/json-to-index-struct.ts:11
summary?
optional
summary:string
Inherited from
Source
packages/llamaindex/src/indices/IndexStruct.ts:8
type
type:
IndexStructType
=IndexStructType.SIMPLE_DICT
Source
packages/llamaindex/src/indices/json-to-index-struct.ts:12
Methods
addNode()
addNode(
node
,textId
?):void
Parameters
• textId?: string
Returns
void
Source
packages/llamaindex/src/indices/json-to-index-struct.ts:21
delete()
delete(
nodeId
):void
Parameters
• nodeId: string
Returns
void
Source
packages/llamaindex/src/indices/json-to-index-struct.ts:40
getSummary()
getSummary():
string
Returns
string
Overrides
Source
packages/llamaindex/src/indices/json-to-index-struct.ts:14
toJson()
toJson():
Record
<string
,unknown
>