Releases: philnash/rerankers
Releases · philnash/rerankers
Release list
v0.1.0
Added
- Browser- and Node.js-compatible local reranking powered by Transformers.js and open Hugging Face cross-encoder models.
- The
RerankerAPI for ranking strings or structured documents while preserving each original document, index, and relevance score. - Explicit model configuration with support for Transformers.js options such as
deviceanddtype;dtypedefaults toauto. - Result limiting with the
topKoption. - Custom reranking strategies through
strategyFactory. - Typed errors for invalid input, unsupported strategies, model-loading failures, and attempts to use a disposed reranker.
- Resource cleanup through
dispose()andSymbol.asyncDispose, including safe handling of active ranking calls and repeated disposal. - A LangChain
BaseDocumentCompressoradapter exported fromrerankers/langchain, withcompressDocuments()and rawrerank()support. - A Vercel AI SDK reranking model exported from
rerankers/ai-sdk, supporting text and object documents. - TypeScript declarations for the core library and both optional ecosystem adapters.
- Documentation for tested English, multilingual, and Chinese-English reranking models.
- A browser demo showing local document reranking.