CoolFace
Apppublic

terrierteam/doc2query

sourceHugging Faceupdated 3y agoView on Hugging Face
3likes
mm.md20 linesDownload Raw Back to root
1### Doc2Query&minus;&minus;: When Less is More2 3You might notice that not all the generated queries look related to the source text. This is due4to a defect that can appear in sequence-to-sequence models known as "[hallucination](https://aclanthology.org/2020.acl-main.173/)".5 6Doc2Query&minus;&minus; can filter out these low-quality queries by measuring the relevance between them and the text that7generated them using a scoring transformer `S`. It is applied as two transformers that follow the Doc2Query generator:8 9<div class="pipeline">10  <div class="df" title="Document Frame">D</div>11  <div class="transformer" title="Doc2Query Transformer">Doc2Query</div>12  <div class="df" title="Document Frame">D</div>13  <div class="transformer attn" title="Doc2Query Transformer">QueryScorer14    <div class="artefact" title="Scorer Transformer">S</div>15  </div>16  <div class="df" title="Document Frame">D</div>17  <div class="transformer attn" title="Doc2Query Transformer">QueryFilter</div>18  <div class="df" title="Document Frame">D</div>19</div>20