Aller au contenu principal

Class: GlobalSettings

Implements

  • Config

Constructors

constructor

new GlobalSettings(): GlobalSettings

Returns

GlobalSettings

Properties

_callbackManager

Private _callbackManager: null | CallbackManager = null

Defined in

packages/core/src/Settings.ts:34


_chunkOverlap

Private Optional _chunkOverlap: number

Defined in

packages/core/src/Settings.ts:36


_chunkSize

Private Optional _chunkSize: number

Defined in

packages/core/src/Settings.ts:35


_embedModel

Private _embedModel: null | BaseEmbedding = null

Defined in

packages/core/src/Settings.ts:32


_llm

Private _llm: null | LLM = null

Defined in

packages/core/src/Settings.ts:30


_nodeParser

Private _nodeParser: null | NodeParser = null

Defined in

packages/core/src/Settings.ts:33


_prompt

Private _prompt: PromptConfig = {}

Defined in

packages/core/src/Settings.ts:29


_promptHelper

Private _promptHelper: null | PromptHelper = null

Defined in

packages/core/src/Settings.ts:31

Accessors

callbackManager

get callbackManager(): CallbackManager

Returns

CallbackManager

Implementation of

Config.callbackManager

Defined in

packages/core/src/Settings.ts:89

set callbackManager(callbackManager): void

Parameters

NameType
callbackManagerCallbackManager

Returns

void

Implementation of

Config.callbackManager

Defined in

packages/core/src/Settings.ts:97


chunkOverlap

get chunkOverlap(): undefined | number

Returns

undefined | number

Implementation of

Config.chunkOverlap

Defined in

packages/core/src/Settings.ts:109

set chunkOverlap(chunkOverlap): void

Parameters

NameType
chunkOverlapundefined | number

Returns

void

Implementation of

Config.chunkOverlap

Defined in

packages/core/src/Settings.ts:113


chunkSize

get chunkSize(): undefined | number

Returns

undefined | number

Implementation of

Config.chunkSize

Defined in

packages/core/src/Settings.ts:101

set chunkSize(chunkSize): void

Parameters

NameType
chunkSizeundefined | number

Returns

void

Implementation of

Config.chunkSize

Defined in

packages/core/src/Settings.ts:105


embedModel

get embedModel(): BaseEmbedding

Returns

BaseEmbedding

Implementation of

Config.embedModel

Defined in

packages/core/src/Settings.ts:62

set embedModel(embedModel): void

Parameters

NameType
embedModelBaseEmbedding

Returns

void

Implementation of

Config.embedModel

Defined in

packages/core/src/Settings.ts:70


llm

get llm(): LLM

Returns

LLM

Implementation of

Config.llm

Defined in

packages/core/src/Settings.ts:38

set llm(llm): void

Parameters

NameType
llmLLM

Returns

void

Implementation of

Config.llm

Defined in

packages/core/src/Settings.ts:46


nodeParser

get nodeParser(): NodeParser

Returns

NodeParser

Implementation of

Config.nodeParser

Defined in

packages/core/src/Settings.ts:74

set nodeParser(nodeParser): void

Parameters

NameType
nodeParserNodeParser

Returns

void

Implementation of

Config.nodeParser

Defined in

packages/core/src/Settings.ts:85


prompt

get prompt(): PromptConfig

Returns

PromptConfig

Implementation of

Config.prompt

Defined in

packages/core/src/Settings.ts:117

set prompt(prompt): void

Parameters

NameType
promptPromptConfig

Returns

void

Implementation of

Config.prompt

Defined in

packages/core/src/Settings.ts:121


promptHelper

get promptHelper(): PromptHelper

Returns

PromptHelper

Implementation of

Config.promptHelper

Defined in

packages/core/src/Settings.ts:50

set promptHelper(promptHelper): void

Parameters

NameType
promptHelperPromptHelper

Returns

void

Implementation of

Config.promptHelper

Defined in

packages/core/src/Settings.ts:58