Class: ObjectIndex
Constructors
constructor
• new ObjectIndex(index
, objectNodeMapping
): ObjectIndex
Parameters
Name | Type |
---|---|
index | any |
objectNodeMapping | BaseObjectNodeMapping |
Returns
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
Name | Type |
---|---|
kwargs | any |
Returns
any
Defined in
packages/core/src/objects/base.ts:195
asRetriever
▸ asRetriever(kwargs
): Promise
<ObjectRetriever
<any
>>
Parameters
Name | Type |
---|---|
kwargs | any |
Returns
Promise
<ObjectRetriever
<any
>>
Defined in
packages/core/src/objects/base.ts:188
insertObject
▸ insertObject(obj
): Promise
<void
>
Parameters
Name | Type |
---|---|
obj | any |
Returns
Promise
<void
>
Defined in
packages/core/src/objects/base.ts:178
fromObjects
▸ fromObjects(objects
, objectMapping
, indexCls
, indexKwargs?
): Promise
<ObjectIndex
>
Parameters
Name | Type |
---|---|
objects | any |
objectMapping | BaseObjectNodeMapping |
indexCls | any |
indexKwargs? | Record <string , any > |