Function importVectorIndexFromString

  • Imports an HNSW index from a string representation.

    Parameters

    • indexString: string

      The string representation of the HNSW index.

    • dim: number = 384

      The dimensionality of the vectors in the index.

    • space: string = "cosine"

      The space type of the index (e.g., 'l2', 'ip', 'cosine').

    Returns Promise<any>

    A promise that resolves to the imported HNSW index object.