Class: TitleExtractor
Extract title from a list of nodes.
Hierarchy
-
↳
TitleExtractor
Constructors
constructor
• new TitleExtractor(options?
): TitleExtractor
Constructor for the TitleExtractor class.
Parameters
Name | Type |
---|---|
options? | TitleExtractorsArgs |
Returns
Overrides
Defined in
packages/core/src/extractors/MetadataExtractors.ts:145
Properties
combineTemplate
• combineTemplate: string
The prompt template to merge title with..
Defined in
packages/core/src/extractors/MetadataExtractors.ts:136
disableTemplateRewrite
• disableTemplateRewrite: boolean
= false
Inherited from
BaseExtractor.disableTemplateRewrite
Defined in
packages/core/src/extractors/types.ts:12
inPlace
• inPlace: boolean
= true
Inherited from
Defined in
packages/core/src/extractors/types.ts:13
isTextNodeOnly
• isTextNodeOnly: boolean
= false
Can work for mixture of text and non-text nodes
Default
false
Overrides
Defined in
packages/core/src/extractors/MetadataExtractors.ts:117
llm
• llm: LLM
LLM instance.
Defined in
packages/core/src/extractors/MetadataExtractors.ts:110
metadataMode
• metadataMode: MetadataMode
= MetadataMode.ALL
Inherited from
Defined in
packages/core/src/extractors/types.ts:11
nodeTemplate
• nodeTemplate: string
The prompt template to use for the title extractor.
Defined in
packages/core/src/extractors/MetadataExtractors.ts:130
nodes
• nodes: number
= 5
Number of nodes to extrct titles from.
Default
5
Defined in
packages/core/src/extractors/MetadataExtractors.ts:124
numWorkers
• numWorkers: number
= 4
Inherited from
Defined in
packages/core/src/extractors/types.ts:14