React Native RAG - v0.2.0
    Preparing search index...

    ExecuTorch-based implementation of Embeddings for React Native.

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Creates a new ExecuTorch embeddings instance.

      Parameters

      • params: ExecuTorchEmbeddingsParams

        Parameters for the instance.

        • modelSource

          Source of the embedding model.

        • tokenizerSource

          Source of the tokenizer.

        • onDownloadProgress

          Download progress callback (0-1).

      Returns ExecuTorchEmbeddings

    Methods

    • Generates an embedding vector for the given text.

      Parameters

      • text: string

        Input string to embed.

      Returns Promise<number[]>

      Promise that resolves to the embedding vector.

    • Unloads the underlying module. Note: current ExecuTorch unload is synchronous. Awaiting this method will not guarantee completion.

      Returns Promise<void>