Module metadata_summary

Source
Expand description

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

Structs§

MetadataSummary
MetadataSummary is responsible for generating a summary for a given text chunk. It uses a templated prompt to interact with a client that implements the SimplePrompt trait.
MetadataSummaryBuilder
Builder for MetadataSummary.

Constants§

NAME