Class: TitleExtractor
Extract title from a list of nodes.
Extends
Constructors
new TitleExtractor()
new TitleExtractor(
options
?):TitleExtractor
Constructor for the TitleExtractor class.
Parameters
• options?: TitleExtractorsArgs
Returns
Overrides
Source
packages/core/src/extractors/MetadataExtractors.ts:147
Properties
combineTemplate
combineTemplate:
string
The prompt template to merge title with..
Source
packages/core/src/extractors/MetadataExtractors.ts:138
disableTemplateRewrite
disableTemplateRewrite:
boolean
=false
Inherited from
BaseExtractor
. disableTemplateRewrite
Source
packages/core/src/extractors/types.ts:13
inPlace
inPlace:
boolean
=true
Inherited from
Source
packages/core/src/extractors/types.ts:14
isTextNodeOnly
isTextNodeOnly:
boolean
=false
Can work for mixture of text and non-text nodes
Default
false
Overrides
BaseExtractor
. isTextNodeOnly
Source
packages/core/src/extractors/MetadataExtractors.ts:119
llm
llm:
LLM
<object
,object
>
LLM instance.
Source
packages/core/src/extractors/MetadataExtractors.ts:112
metadataMode
metadataMode:
MetadataMode
=MetadataMode.ALL
Inherited from
Source
packages/core/src/extractors/types.ts:12
nodeTemplate
nodeTemplate:
string
The prompt template to use for the title extractor.
Source
packages/core/src/extractors/MetadataExtractors.ts:132