CrossEncoderRerank#
- class CrossEncoderRerank#
cross-encoder | Rerank first-stage retrieved paragraphs based on the contextualized similarity of query <-> paragraph.
Pass each pair of query/paragraph through a transformer network simultaneously. The cross-encoder produces a score indicating the contextualized similarity per text pair.
- pydantic model PluginConfig#
- Fields
query (Optional[str])
top_n_items (int)
worker (str)
- PluginConfig.plugin_name: ClassVar[str] = 'cross-encoder'#
Used to register and reference the plugin within a query.