Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RetrievalSignals.
Contains a set of signals used by the relevance filter.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RetrievalSignals
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchResponse \ SearchResultMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ retrieval_sources |
int[]
Optional. Indicates how the result was retrieved. |
↳ semantic_relevance_score |
float
Optional. Relevance score used by the filter when semantic_relevance_threshold is set. |
getRetrievalSources
Optional. Indicates how the result was retrieved.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<int> |
|
setRetrievalSources
Optional. Indicates how the result was retrieved.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSemanticRelevanceScore
Optional. Relevance score used by the filter when semantic_relevance_threshold is set.
| Returns | |
|---|---|
| Type | Description |
float |
|
setSemanticRelevanceScore
Optional. Relevance score used by the filter when semantic_relevance_threshold is set.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|