Class: KeywordExtractor
Extract keywords from a list of nodes.
Extends
Constructors
new KeywordExtractor()
new KeywordExtractor(
options
?):KeywordExtractor
Constructor for the KeywordExtractor class.
Parameters
• options?: KeywordExtractArgs
Returns
Overrides
Throws
If keywords is less than 1.
Source
packages/core/src/extractors/MetadataExtractors.ts:48
Properties
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
=true
Inherited from
BaseExtractor
. isTextNodeOnly
Source
packages/core/src/extractors/types.ts:10
keywords
keywords:
number
=5
Number of keywords to extract.
Default
5
Source
packages/core/src/extractors/MetadataExtractors.ts:40
llm
llm:
LLM
<object
,object
>
LLM instance.
Source
packages/core/src/extractors/MetadataExtractors.ts:33
metadataMode
metadataMode:
MetadataMode
=MetadataMode.ALL
Inherited from
Source
packages/core/src/extractors/types.ts:12
numWorkers
numWorkers:
number
=4
Inherited from
Source
packages/core/src/extractors/types.ts:15
showProgress
showProgress:
boolean
=true