Module metadata_keywords

Module metadata_keywords 

Source
Expand description

Extract keywords from a node and add them as metadata This module defines the MetadataKeywords struct and its associated methods, which are used for generating metadata in the form of keywords for a given text. It interacts with a client (e.g., OpenAI) to generate the keywords based on the text chunk in a TextNode.

Structs§

MetadataKeywords
MetadataKeywords is responsible for generating keywords for a given text chunk. It uses a templated prompt to interact with a client that implements the SimplePrompt trait.
MetadataKeywordsBuilder
Builder for MetadataKeywords.

Constants§

NAME