Class: KeywordExtractor
Extract keywords from a list of nodes.
Hierarchy
-
↳
KeywordExtractor
Constructors
constructor
• new KeywordExtractor(options?
): KeywordExtractor
Constructor for the KeywordExtractor class.
Parameters
Name | Type |
---|---|
options? | KeywordExtractArgs |
Returns
Throws
If keywords is less than 1.
Overrides
Defined in
packages/core/src/extractors/MetadataExtractors.ts:46
Properties
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
= true
Inherited from
Defined in
packages/core/src/extractors/types.ts:9
keywords
• keywords: number
= 5
Number of keywords to extract.
Default
5
Defined in
packages/core/src/extractors/MetadataExtractors.ts:38
llm
• llm: LLM
LLM instance.
Defined in
packages/core/src/extractors/MetadataExtractors.ts:31
metadataMode
• metadataMode: MetadataMode
= MetadataMode.ALL