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: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
Name | Type |
---|---|
kwargs | any |
Returns
any
Defined in
packages/core/src/objects/base.ts:189
asRetriever
▸ asRetriever(kwargs
): Promise
<ObjectRetriever
>
Parameters
Name | Type |
---|---|
kwargs | any |
Returns
Promise
<ObjectRetriever
>
Defined in
packages/core/src/objects/base.ts:182
insertObject
▸ insertObject(obj
): void
Parameters
Name | Type |
---|---|
obj | any |
Returns
void
Defined in
packages/core/src/objects/base.ts:172
fromObjects
▸ fromObjects(objects
, objectMapping
, indexCls
, indexKwargs?
): Promise
<ObjectIndex
>
Parameters
Name | Type |
---|---|
objects | any |
objectMapping | BaseObjectNodeMapping |
indexCls | any |
indexKwargs? | Record <string , any > |
Returns
Promise
<ObjectIndex
>