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.