0.3.0
版本发布时间: 2024-05-17 22:17:50
AnswerDotAI/rerankers最新发布版本:0.6.0(2024-11-12 16:19:07)
0.3.0 is here! It brings a lot of oft-requested features:
- A new transparent
Document
has been added. You may constructDocument
s yourself, or keep using the library exactly as-is. This object now allows for metadata support! You can pass a list ofmetadata
(or add them to yourDocument
objects) torank()
calls, and get the metadata back. Thanks to @Anmol6 for starting the work on this! - RankLLM is now supported 🥳 RankZephyr and RankVicuna are implemented, but untested at the moment, while RankLLM + GPT models are fully supported. In version 0.5.0, this will become the default way of using GPT models for reranking purposes.
- Some QoL improvements, the most notable of which is that it is now possible to iterate directly on
RankedResults
objects rather than having to use the wordyfor result in results.results
.