You type a query into a search engine. The results are almost right — some hit the mark, others miss completely. So you click "more like this" or mark a few results as helpful and a few as useless. Somehow the next batch is better. What just happened?
Behind that improvement is a beautifully simple geometric idea from 1971: Rocchio's relevance feedback algorithm. Every document and every query lives in a high-dimensional space of words. Relevant documents cluster together in that space. If you point out which results were good, the algorithm can move your query vector toward the centroid of the good ones and away from the bad ones — getting geometrically closer to what you really wanted.
The update rule is exact: given a query , a set of relevant documents and a set of non-relevant documents , the new query is
where , , are weights you choose. The term is solved — there is no open problem here — but the elegance of the geometry and the breadth of its descendants make it worth understanding deeply. Related ideas appear in nearest-neighbor search and in how modern systems like neural network training learn from labeled examples.
Comments
Loading comments...