GLiClass Reranker

GLiClass Reranker

Welcome to GliClass Reranker!

GLiClass: Generalist and Lightweight Model for Sequence Classification:

  1. Reranker in RAG pipelines
  2. Zero-Shot text classification
  3. Topic Classification
  4. Sentiment Analysis

What is GliClass?

This is an efficient zero-shot classifier inspired by "GLiNER" work. It demonstrates the same performance as a cross-encoder while being more compute-efficient because classification is done at a single forward path. It can be used for topic classification, sentiment analysis and as a reranker in RAG pipelines.

Remember, information extraction is not just about data; it's about insights. Let's uncover those insights together!💫

Installation

To use this model, you must install the GLiClass Python library:

!pip install gliclass

Usage

Once you've downloaded the GLiClass library, you can import the GLiClassModel and ZeroShotClassificationPipeline classes.