We use poetry to manage the dependencies. To install the dependencies, run the following command:
poetry installWe use the semantic ID mapping from Zeng et al. (2024) in their GitHub repository.
Additionally, we use Pyserini to get the run on MSMARCO passage collection. To install Pyserini, follow the instructions in their repository.
To run synthetic experiments, run the following command:
poetry run python synthetic_constraint.pyTo run experiments on real data, please following the command within python code named simulation_*.py.