Git Product home page Git Product logo

controlretriever's Introduction

ControlRetriever: Harnessing the Power of Instructions for Controllable Retrieval

This repo contains the PyTorch implementation of ControlRetriever: Harnessing the Power of Instructions for Controllable Retrieval.

News

๐Ÿคฉ The upgrade version of ControlRetriever โ€”โ€” I3: Intent-Introspective Retrieval Conditioned on Instructions has been accepted by SIGIR 2024.

Installation

This repos is built based on beir and pygaggle. Please refer to the corresponding repos for the installation of the Python environment.

Prepare

1. Download BEIR Data

Please first follow the instructions to download BEIR data. Then modify the BEIR_DIR in scripts/evaluate_retrieval.sh and scripts/evaluate_rerank.sh to the folder that contains the BEIR data. Finally, put data/instructions.jsonl into the folder that contains the BEIR data.

2. Prepare Model Checkpoints

Retrieval & Rerank

To leverage ControlRetriever for zero-shot retrieval & rerank, you can refer to the scripts provided at scripts/evaluate_retrieval.sh and scripts/evaluate_rerank.sh.

Acknowledgment

Our project is developed based on the following repositories:

  • beir: a heterogeneous benchmark for information retrieval.
  • pygaggle: a gaggle of deep neural architectures for text ranking and question answering, designed for Pyserini.

Citation

If you found this work useful, please consider citing our paper as follows:

@misc{pan2024i3,
      title={I3: Intent-Introspective Retrieval Conditioned on Instructions}, 
      author={Kaihang Pan and Juncheng Li and Wenjie Wang and Hao Fei and Hongye Song and Wei Ji and Jun Lin and Xiaozhong Liu and Tat-Seng Chua and Siliang Tang},
      year={2024},
      eprint={2308.10025},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

controlretriever's People

Contributors

beepkh avatar

Stargazers

 avatar Yun Zhu avatar TT avatar  avatar

Watchers

 avatar

controlretriever's Issues

Model available?

Hi there! Great work on this paper!

I'd love to use your model, but it doesn't seem to be available right now. Will it be posted publicly sometime?

Thanks!

Some questions about the source code

Hello!
I recently tried to follow your work, but the training effect after reproducing the framework of this paper was not satisfactory. When can you share the code so that I can find the problem with the code I reproduced and do further research on this basis.
Looking forward to your reply~
Best wishes!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.