Space for encoding numerical values within a specified range with different modes and scaling options
NumberSpace is used to encode numerical values within a specified range. The range is defined by the min_value and max_value parameters. The preference can be controlled by the mode parameter.
In similar mode you MUST add a similar clause to the query or it will raise.
This represents the minimum boundary. Any number lower than this will be considered as this minimum value. It can be either a float or an integer. It must larger or equal to 0 in case of scale=LogarithmicScale(base).
This represents the maximum boundary. Any number higher than this will be considered as this maximum value. It can be either a float or an integer. It cannot be 0 in case of scale=LogarithmicScale(base).
The mode of the number embedding. Possible values are: maximum, minimum and similar. Similar mode expects a .similar on the query, otherwise it will default to maximum.
The scaling of the number embedding. Possible values are: LinearScale(), and LogarithmicScale(base). LogarithmicScale base must be larger than 1. It defaults to LinearScale().