This document proposes a system to organize user search histories into query groups for web personalization. The system has four main modules: 1) a query group module that computes query groups from search histories, 2) a search history module that stores user search queries and clicks over time, 3) a query relevance module that calculates relevance between queries, and 4) a dynamic query grouping module that uses a similarity function to dynamically group queries. The goal is to better understand users' search contexts and tailor their search experiences.