Module metadata_title

Module metadata_title 

Source
Expand description

Generate a title and adds it as metadata This module defines the MetadataTitle struct and its associated methods, which are used for generating metadata in the form of a title for a given text. It interacts with a client (e.g., OpenAI) to generate these questions and answers based on the text chunk in an TextNode.

Structs§

MetadataTitle
MetadataTitle is responsible for generating a title for a given text chunk. It uses a templated prompt to interact with a client that implements the SimplePrompt trait.
MetadataTitleBuilder
Builder for MetadataTitle.

Constants§

NAME