Nhảy tới nội dung

Class: abstract BaseObjectNodeMapping

Extended by

Constructors

new BaseObjectNodeMapping()

new BaseObjectNodeMapping(): BaseObjectNodeMapping

Returns

BaseObjectNodeMapping

Methods

_addObj()

abstract _addObj(obj): void

Parameters

obj: any

Returns

void

Source

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


_fromNode()

abstract _fromNode(node): any

Parameters

node: BaseNode <Metadata>

Returns

any

Source

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


addObj()

addObj(obj): void

Parameters

obj: any

Returns

void

Source

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


fromNode()

fromNode(node): any

Parameters

node: BaseNode <Metadata>

Returns

any

Source

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


fromObjects()

abstract fromObjects<OT>(objs, ...args): BaseObjectNodeMapping

Type parameters

OT

Parameters

objs: OT[]

• ...args: any[]

Returns

BaseObjectNodeMapping

Source

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


objNodeMapping()

abstract objNodeMapping(): Record<any, any>

Returns

Record<any, any>

Source

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


persist()

abstract persist(persistDir, objNodeMappingFilename): void

Parameters

persistDir: string

objNodeMappingFilename: string

Returns

void

Source

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


toNode()

abstract toNode(obj): TextNode <Metadata>

Parameters

obj: any

Returns

TextNode <Metadata>

Source

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


toNodes()

toNodes(objs): TextNode <Metadata>[]

Parameters

objs: any[]

Returns

TextNode <Metadata>[]

Source

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


validateObject()

validateObject(obj): void

Parameters

obj: any

Returns

void

Source

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