Add pipeline tag
#1
by nielsr HF Staff - opened
1234567891011121314151639 unmodified lines5657585960616263646513 unmodified lines7980818283848549 unmodified lines135136137138---tags:- context-compression- extractive-compression- rag- question-answeringlanguage:- enbase_model: answerdotai/ModernBERT-basedatasets:- hotpotqa/hotpot_qa- google-research-datasets/natural_questionslicense: mit---[](https://github.com/dltmddbs100/LEAN)39 unmodified linesquery = "Who wrote the novel Nineteen Eighty-Four?"# Retrieved passages, each split into sentences, with the title folded into the first onepassages = [["Nineteen Eighty-Four\nNineteen Eighty-Four is a dystopian novel by English writer George Orwell.","It was published on 8 June 1949 by Secker & Warburg.","The story takes place in an imagined future."],["Animal Farm\nAnimal Farm is a satirical allegorical novella by George Orwell.","It was first published in England on 17 August 1945."],]13 unmodified lines# Nineteen Eighty-Four is a dystopian novel by English writer George Orwell.```Any sentence splitter works; the training data was split with spaCy `en_core_web_sm`, with each title folded into its passage's first sentence as `"{title}\n{sentence}"`. For throughput, load the model with `SentenceCompressor.from_checkpoint(path, torch_dtype=torch.bfloat16, attn_implementation="flash_attention_2")` on a GPU and batch passages.## Evaluation49 unmodified linesarchivePrefix = {arXiv},primaryClass = {cs.CL},}```123456789101112131415161739 unmodified lines57585960616263646566676813 unmodified lines828384858687888949 unmodified lines139140141142---base_model: answerdotai/ModernBERT-basedatasets:- hotpotqa/hotpot_qa- google-research-datasets/natural_questionslanguage:- enlicense: mitpipeline_tag: text-classificationtags:- context-compression- extractive-compression- rag- question-answering---[](https://github.com/dltmddbs100/LEAN)39 unmodified linesquery = "Who wrote the novel Nineteen Eighty-Four?"# Retrieved passages, each split into sentences, with the title folded into the first onepassages = [["Nineteen Eighty-FourNineteen Eighty-Four is a dystopian novel by English writer George Orwell.","It was published on 8 June 1949 by Secker & Warburg.","The story takes place in an imagined future."],["Animal FarmAnimal Farm is a satirical allegorical novella by George Orwell.","It was first published in England on 17 August 1945."],]13 unmodified lines# Nineteen Eighty-Four is a dystopian novel by English writer George Orwell.```Any sentence splitter works; the training data was split with spaCy `en_core_web_sm`, with each title folded into its passage's first sentence as `"{title}{sentence}"`. For throughput, load the model with `SentenceCompressor.from_checkpoint(path, torch_dtype=torch.bfloat16, attn_implementation="flash_attention_2")` on a GPU and batch passages.## Evaluation49 unmodified linesarchivePrefix = {arXiv},primaryClass = {cs.CL},}```
README.md+15-11