Effect

Effect(space, affected_schema_reference, affecting_schema_reference, filter_)
An effect represents a conditional interaction within a Space where the affecting_schema_reference interacted with the affected_schema_reference. It allows you to real-time adjust embeddings based on interaction. e.g.: A User schema interacts with a Post schema, if event.type == 'like'.

Parameters

space
Space[AggregationInputT, EmbeddingInputT]
required
The space where the effect applies.
affected_schema_reference
SchemaReference
required
The schema reference that is being affected by the interaction.
affecting_schema_reference
SchemaReference | MultipliedSchemaReference
required
The schema reference that is causing the effect on the affected schema.
filter_
ComparisonOperation[SchemaField]
required
The filter condition that determines when this effect should be applied.

Inheritance

Inheritance Chain:
  • Effect
  • Generic

Properties

affected_schema_reference
SchemaReference
The schema reference that is being affected by this effect.
affecting_schema_reference
SchemaReference | MultipliedSchemaReference
The schema reference that is causing this effect.
filter_
ComparisonOperation[SchemaField]
The filter condition for when this effect should be applied.
space
Space[AggregationInputT, EmbeddingInputT]
The space where this effect is applied.