stanford-futuredata / ColBERT

ColBERT: state-of-the-art neural search (SIGIR'20, TACL'21, NeurIPS'21, NAACL'22, CIKM'22, ACL'23, EMNLP'23)
MIT License
2.95k stars 377 forks source link

chore: Add lightweight verbose support #286

Closed bclavie closed 9 months ago

bclavie commented 9 months ago

Adding a basic verbose attribute to the noisiest classes:

Implementation is fairly noncommittal (easy to modify how we handle verbosity later).

4 levels defined: 0: Print nothing except errors 1: Level 0 + Print key information 2: Level 1 + Print most logs 3: Level 2 + Print the very noisy bucket information

Implementation defaults to level 3 (no changes from current behaviour) unless explicitly passed.


also fixing a one-line oversight in the previous PR with commit d693b1a