@metreeca/llms
    Preparing search index...

    Function decompress

    • Decompresses a vector from its compact textual form.

      Restores components to the [-1, 1] range, approximating the original values within the quantisation step applied by compress. Truncated input is rejected rather than restored as a silently shortened vector.

      Parameters

      • vector: string

        The compact textual form of the vector to restore, as produced by compress

      Returns Vector

      The vector encoded by vector

      RangeError If vector doesn't decode to a whole number of components