lloyal-agents API Reference
    Preparing search index...

    Class Rerank

    Index

    Methods

    • Parameters

      • query: string
      • documents: number[][]
      • OptionaltopK: number

      Returns AsyncIterable<RerankProgress>

    • Parameters

      • text: string

      Returns Promise<number[]>

    • Create a Rerank instance from a pre-created SessionContext

      The caller is responsible for creating the context with appropriate settings (nSeqMax, nCtx, typeK, typeV). Rerank takes ownership of the context and will dispose it on dispose().

      Parameters

      • ctx: SessionContext

        SessionContext configured for reranking

      • Optionalopts: { nCtx?: number; nSeqMax?: number }

        Capacity hints (nSeqMax, nCtx) — must match context creation params

      Returns Promise<Rerank>