Saltar al contenido principal

Class: ObjectIndex

Constructors

constructor

new ObjectIndex(index, objectNodeMapping): ObjectIndex

Parameters

NameType
indexany
objectNodeMappingBaseObjectNodeMapping

Returns

ObjectIndex

Defined in

packages/core/src/objects/base.ts:149

Properties

_index

Private _index: VectorStoreIndex

Defined in

packages/core/src/objects/base.ts:146


_objectNodeMapping

Private _objectNodeMapping: BaseObjectNodeMapping

Defined in

packages/core/src/objects/base.ts:147

Accessors

tools

get tools(): Record<string, BaseTool>

Returns

Record<string, BaseTool>

Defined in

packages/core/src/objects/base.ts:178

Methods

asNodeRetriever

asNodeRetriever(kwargs): any

Parameters

NameType
kwargsany

Returns

any

Defined in

packages/core/src/objects/base.ts:189


asRetriever

asRetriever(kwargs): Promise<ObjectRetriever>

Parameters

NameType
kwargsany

Returns

Promise<ObjectRetriever>

Defined in

packages/core/src/objects/base.ts:182


insertObject

insertObject(obj): void

Parameters

NameType
objany

Returns

void

Defined in

packages/core/src/objects/base.ts:172


fromObjects

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

Parameters

NameType
objectsany
objectMappingBaseObjectNodeMapping
indexClsany
indexKwargs?Record<string, any>

Returns

Promise<ObjectIndex>

Defined in

packages/core/src/objects/base.ts:154