Class Filter (1.87.0)

Filter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Config for filters.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
vector_distance_threshold float
Optional. Only returns contexts with vector distance smaller than the threshold. This field is a member of oneof_ vector_db_threshold.
vector_similarity_threshold float
Optional. Only returns contexts with vector similarity larger than the threshold. This field is a member of oneof_ vector_db_threshold.
metadata_filter str
Optional. String for metadata filtering.

Methods

Filter

Filter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Config for filters.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields