Function getAllEmbeddings

  • Retrieves all embeddings from the HNSW index.

    Parameters

    • index: HierarchicalNSW

      The HNSW index containing the embeddings.

    • precision: number = 8

      default=8 - The number of decimal places to round to.

    Returns number[][]

    An array of embedding vectors. *