LooksLikeFilterClause

LooksLikeFilterClause(value_param, schema_field, weight_param)

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.
weight_param
TypedParam | Evaluated[TypedParam]
required
The parameter that specifies the weight for this filter.

Inheritance

Inheritance Chain:
  • LooksLikeFilterClause
  • 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.
weight_param
TypedParam | Evaluated[TypedParam]
The weight parameter for this filter.

Static Methods

from_param()

from_param(id_, id_param, weight) -> LooksLikeFilterClause
id_
IdField
required
The ID field to filter on.
id_param
StringParamType
required
The parameter containing the ID value.
weight
NumericParamType
required
The weight parameter for the filter.
Returns: LooksLikeFilterClause - A new looks like filter clause instance.