Skip to main content

Class: ObjectIndex

Accessors

tools

get tools(): Record<string, BaseTool<any>>

Returns

Record<string, BaseTool<any>>

Defined in

packages/llamaindex/src/objects/base.ts:183

Methods

asNodeRetriever()

asNodeRetriever(kwargs): any

Parameters

kwargs: any

Returns

any

Defined in

packages/llamaindex/src/objects/base.ts:194


asRetriever()

asRetriever(kwargs): Promise<ObjectRetriever<any>>

Parameters

kwargs: any

Returns

Promise<ObjectRetriever<any>>

Defined in

packages/llamaindex/src/objects/base.ts:187


insertObject()

insertObject(obj): Promise<void>

Parameters

obj: any

Returns

Promise<void>

Defined in

packages/llamaindex/src/objects/base.ts:177


fromObjects()

static fromObjects(objects, objectMapping, indexCls, indexKwargs?): Promise<ObjectIndex>

Parameters

objects: any

objectMapping: BaseObjectNodeMapping

indexCls: any

indexKwargs?: Record<string, any>

Returns

Promise<ObjectIndex>

Defined in

packages/llamaindex/src/objects/base.ts:159