The developer implemented a custom search system and RAG for e-commerce procurement to address challenges in matching product specifications. The system handles variations in units of measurement, such as meters, centimeters, or bulk packaging, to ensure accurate item identification.

The model processes product cards containing titles, descriptions, and features. Each feature is represented as a name-value pair. The architecture uses a maximum of 14 features per card and limits the input to 1024 tokens to maintain efficiency.

To handle numerical data, the system employs a router with four transformer blocks that manages both text and numerical processing streams. It uses a soft-splitting mechanism to identify numerical spans and applies signed-log transformations combined with sinusoidal and RBF features to represent values.

The architecture ensures that units of measurement are processed within the textual context, allowing the model to normalize different representations of the same physical quantity. Contrastive learning is used to align equivalent product entries in the search space, such as matching '3 meters' with '300 centimeters'.