@metreeca/llms
    Preparing search index...

    Function synopsis

    • Builds the synopsis of a resource.

      Condenses the fields describing a resource into a single text, for instance the text to be embedded for it. Fragments are trimmed, blank and undefined ones are dropped, and the rest are joined one per line. Every field of a resource can thus be passed in as it stands, without first filtering out the unset ones.

      Parameters

      • ...values: readonly Some<string>[]

        The fragments describing the resource; each is a single text, a collection of texts or undefined, so that repeatable and optional properties can be passed in directly from the resource holding them

      Returns string

      The synopsis of the resource, or an empty text if no fragment carries any text