negative_filter
recency score. Negative_filter is useful for effectively filtering out entities that are older than the oldest period time. You can think of the value of negative_filter as it offsets that amount of similarity stemming from other spaces in the index. For example setting it -1 would offset any text similarity that has weight 1 - effectively filtering out all old items however similar they are in terms of their text.
Constructor
Parameters
A set of Timestamp objects. The actual data is expected to be unix timestamps in seconds. It is a SchemaFieldObject not regular python ints or floats.
Starting period time will be set to this hour. Day will be the next day of context.now(). Defaults to timedelta(hours=0).
A list of period time parameters. Weights default to 1. Period time to 14 days.
The aggregation mode of the recency embedding. Possible values are: maximum, minimum and average. Defaults to InputAggregationMode.INPUT_AVERAGE.
The recency score of items that are older than the oldest period time. Defaults to 0.0.
Inheritance
Inheritance Chain:RecencySpace
- →
Space
- →
HasTransformationConfig
- →
HasLength
- →
Generic
- →
HasSpaceFieldSet
- →
ABC
Properties
Whether this space allows similarity clauses in queries.
The space field set for this recency space.
Configuration for transforming timestamp values into vectors.