Interface RetrievalFilter.Builder

    • Method Detail

      • andAll

        RetrievalFilter.Builder andAll​(Collection<RetrievalFilter> andAll)

        Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.

        Parameters:
        andAll - Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • andAll

        RetrievalFilter.Builder andAll​(RetrievalFilter... andAll)

        Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.

        Parameters:
        andAll - Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • equalsValue

        RetrievalFilter.Builder equalsValue​(FilterAttribute equalsValue)

        Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value matches the value in this object are returned.

        Parameters:
        equalsValue - Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value matches the value in this object are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • greaterThan

        RetrievalFilter.Builder greaterThan​(FilterAttribute greaterThan)

        Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is greater than the value in this object are returned.

        Parameters:
        greaterThan - Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is greater than the value in this object are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • greaterThanOrEquals

        RetrievalFilter.Builder greaterThanOrEquals​(FilterAttribute greaterThanOrEquals)

        Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is greater than or equal to the value in this object are returned.

        Parameters:
        greaterThanOrEquals - Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is greater than or equal to the value in this object are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • in

        RetrievalFilter.Builder in​(FilterAttribute in)

        Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is in the list specified in the value in this object are returned.

        Parameters:
        in - Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is in the list specified in the value in this object are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lessThan

        RetrievalFilter.Builder lessThan​(FilterAttribute lessThan)

        Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is less than the value in this object are returned.

        Parameters:
        lessThan - Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is less than the value in this object are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lessThanOrEquals

        RetrievalFilter.Builder lessThanOrEquals​(FilterAttribute lessThanOrEquals)

        Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is less than or equal to the value in this object are returned.

        Parameters:
        lessThanOrEquals - Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value is less than or equal to the value in this object are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • notEquals

        RetrievalFilter.Builder notEquals​(FilterAttribute notEquals)

        Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value doesn't match the value in this object are returned.

        Parameters:
        notEquals - Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value doesn't match the value in this object are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • notIn

        RetrievalFilter.Builder notIn​(FilterAttribute notIn)

        Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value isn't in the list specified in the value in this object are returned.

        Parameters:
        notIn - Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value isn't in the list specified in the value in this object are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • orAll

        RetrievalFilter.Builder orAll​(Collection<RetrievalFilter> orAll)

        Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.

        Parameters:
        orAll - Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • orAll

        RetrievalFilter.Builder orAll​(RetrievalFilter... orAll)

        Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.

        Parameters:
        orAll - Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startsWith

        RetrievalFilter.Builder startsWith​(FilterAttribute startsWith)

        Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value starts with the value in this object are returned. This filter is currently only supported for Amazon OpenSearch Serverless vector stores.

        Parameters:
        startsWith - Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value starts with the value in this object are returned. This filter is currently only supported for Amazon OpenSearch Serverless vector stores.
        Returns:
        Returns a reference to this object so that method calls can be chained together.