Spaces:
Running
Running
File size: 513 Bytes
924cd68 5f77918 924cd68 68730a3 924cd68 |
1 2 3 4 5 6 7 8 9 10 11 |
### Query Encoding
Let's start by exploring SPLADE's query encoder. The query encoder is a `Q→Q` (query rewriting, query-to-query) transformer, and can be used in pipelines accordingly.
It maps a query string into a sparse `dict`-formatted query vector, with the tokens as the keys and the weights as values.
<div class="pipeline">
<div class="df" title="Query Frame">Q</div>
<div class="transformer attn" title="SPLADE Query Transformer">SPLADE</div>
<div class="df" title="Query Frame">Q</div>
</div>
|