Function exportEmbeddingsIndex

  • Converts an HNSW index to a base64 encoded string.

    Parameters

    • index: any

      The HNSW index object.

    Returns Promise<string>

    A promise that resolves to a base64 encoded string representation of the index.

    If there's an error during the index serialization process.