0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.1

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

A set of ranking signals.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `keyword_similarity_score` | `float` Optional. Keyword matching adjustment. This field is a member of `oneof`_ `_keyword_similarity_score`. |
| `relevance_score` | `float` Optional. Semantic relevance adjustment. This field is a member of `oneof`_ `_relevance_score`. |
| `semantic_similarity_score` | `float` Optional. Semantic similarity adjustment. This field is a member of `oneof`_ `_semantic_similarity_score`. |
| `pctr_rank` | `float` Optional. Predicted conversion rate adjustment as a rank. This field is a member of `oneof`_ `_pctr_rank`. |
| `topicality_rank` | `float` Optional. Topicality adjustment as a rank. This field is a member of `oneof`_ `_topicality_rank`. |
| `document_age` | `float` Optional. Age of the document in hours. This field is a member of `oneof`_ `_document_age`. |
| `boosting_factor` | `float` Optional. Combined custom boosts for a doc. This field is a member of `oneof`_ `_boosting_factor`. |
| `default_rank` | `float` Optional. The default rank of the result. |
| `custom_signals` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.SearchResponse.SearchResult.RankSignals.CustomSignal]` Optional. A list of custom clearbox signals. |
| `precomputed_expression_values` | `MutableSequence[float]` Optional. A list of precomputed expression results for a given document, in the same order as requested in `SearchRequest.custom_ranking_params.expressions_to_precompute`. |

## Classes

### CustomSignal

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

Custom clearbox signal represented by name and value pair.