Skip to main content

LooksLikeFilterClauseWeightBySpace

LooksLikeFilterClauseWeightBySpace(value_param, schema_field, space_weight_map=<factory>)

Parameters

value_param
TypedParam | Evaluated[TypedParam]
required
The parameter that specifies the ID value to filter by.
schema_field
IdField
required
The ID field in the schema to compare against.
space_weight_map
SpaceWeightMap
default:"<factory>"
Mapping of spaces to their specific weight parameters.

Inheritance

Inheritance Chain:
  • LooksLikeFilterClauseWeightBySpace
  • BaseLooksLikeFilterClause
  • NLQCompatible
  • SingleValueParamQueryClause
  • QueryClause
  • ABC

Properties

nlq_annotations
list[NLQAnnotation]
List of natural language query annotations for this clause.
schema_field
IdField
The ID field used for similarity comparison.
space_weight_map
SpaceWeightMap
The mapping of spaces to their specific weight parameters.

Static Methods

from_param()

from_param(id_, id_param, weight) -> LooksLikeFilterClauseWeightBySpace
id_
IdField
required
The ID field to filter on.
id_param
StringParamType
required
The parameter containing the ID value.
weight
Mapping[Space, NumericParamType]
required
Mapping of spaces to their weight parameters.
Returns: LooksLikeFilterClauseWeightBySpace - A new looks like filter clause with space weights.
I