splade2 / query.md
Sean MacAvaney
initial commit
263006a

A newer version of the Gradio SDK is available: 6.14.0

Upgrade

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.

Q
SPLADE
Q