@grafctory/llms
    Preparing search index...

    Module vectors

    Embedding vectors.

    Works with embedding vectors from any model provider: condense the fields of a resource into the text to embed, rank vectors by semantic proximity, and store them compactly as text, at a fraction of the size of their JSON form.

    Vector

    A vector.

    Distance

    A distance between two vectors.

    synopsis

    Builds the synopsis of a resource.

    cosine

    Computes the cosine distance between two vectors.

    compress

    Compresses a vector to a compact textual form.

    decompress

    Decompresses a vector from its compact textual form.