Class: KeywordExtractor()
Extract keywords from a list of nodes.
Extends
KeywordExtractor<
Options
>(nodes
,options
?):BaseNode
<Metadata
>[] |Promise
<BaseNode
<Metadata
>[]>
Extract keywords from a list of nodes.
Type Parameters
• Options extends Record
<string
, unknown
>
Parameters
• options?: Options
Returns
BaseNode
<Metadata
>[] | Promise
<BaseNode
<Metadata
>[]>
Defined in
packages/llamaindex/src/extractors/MetadataExtractors.ts:35
Constructors
new KeywordExtractor()
new KeywordExtractor(
options
?):KeywordExtractor
Constructor for the KeywordExtractor class.
Parameters
• options?: KeywordExtractArgs
Returns
Throws
If keywords is less than 1.
Overrides
Defined in
packages/llamaindex/src/extractors/MetadataExtractors.ts:61
Properties
disableTemplateRewrite
disableTemplateRewrite:
boolean
=false
Inherited from
BaseExtractor
.disableTemplateRewrite
Defined in
packages/llamaindex/src/extractors/types.ts:16
id
id:
string
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:172