본문으로 건너뛰기

Class: ObjectIndex

Constructors

constructor

new ObjectIndex(index, objectNodeMapping): ObjectIndex

Parameters

NameType
indexany
objectNodeMappingBaseObjectNodeMapping

Returns

ObjectIndex

Defined in

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

Properties

_index

Private _index: VectorStoreIndex

Defined in

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


_objectNodeMapping

Private _objectNodeMapping: BaseObjectNodeMapping

Defined in

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

Accessors

tools

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

Returns

Record<string, BaseTool<any>>

Defined in

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

Methods

asNodeRetriever

asNodeRetriever(kwargs): any

Parameters

NameType
kwargsany

Returns

any

Defined in

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


asRetriever

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

Parameters

NameType
kwargsany

Returns

Promise<ObjectRetriever<any>>

Defined in

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


insertObject

insertObject(obj): Promise<void>

Parameters

NameType
objany

Returns

Promise<void>

Defined in

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


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:160