Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REBEL - new node postprocessor #17590

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Conversation

bvarjavand
Copy link

Description

This PR introduces REBELRerank, a novel node postprocessor that implements the REBEL (RErank BEyond reLevance) methodology for multi-criteria reranking in RAG pipelines. REBEL extends traditional relevance-centric reranking by incorporating query-dependent secondary criteria through dynamic prompt generation.

This PR is still in progress.

Key features:

  • Meta-prompting strategy to generate query-specific reranking instructions
  • Integration of multiple scoring criteria beyond just relevance
  • Support for weighted composite scoring that considers factors like authoritativeness, diversity, and recency
  • Fully prompt-based implementation requiring no model fine-tuning

The PR includes:

  • Implementation of REBELRerank as a node postprocessor
  • Demonstration notebook showing usage and benefits
  • Documentation and tests (TODO)

New Package?

  • No

Version Bump?

  • Yes

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • I added new unit tests to cover this change (TODO)

Unit tests will cover:

  • Meta prompt generation
  • Reranking prompt generation
  • Integration with existing RAG pipelines
  • Composite score calculation

Suggested Checklist (TODO):

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added Google Colab support for the newly added notebooks
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I ran make format; make lint to appease the lint gods

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jan 23, 2025
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@bvarjavand
Copy link
Author

The code to generate the figures in the paper lives here: https://github.com/levinwil/REBEL/tree/main
We will submit to arxiv after some Cohere comparisons locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants