Function getAllEmbeddings

  • Retrieves all embeddings from the HNSW index.

    Parameters

    • index: HierarchicalNSW

      The HNSW index containing the embeddings.

    • Optionalprecision: number = 3

      The number of decimal places to round to.

    Returns number[][]

    An array of embedding vectors. *