Represents the search results.
| JSON representation |
|---|
{ "id": string, "document": { object ( |
| Fields | |
|---|---|
id |
|
document |
The document data snippet in the search response. Only fields that are marked as |
chunk |
The chunk data in the search response if the |
modelScores |
Output only. Google provided available scores. |
rankSignals |
Optional. A set of ranking signals associated with the result. |
retrievalSignals |
Optional. A set of signals used by the relevance filter meant for use to fine-tune the relevance filter thresholds. |
DoubleList
Double list.
| JSON representation |
|---|
{ "values": [ number ] } |
| Fields | |
|---|---|
values[] |
Double values. |
RankSignals
A set of ranking signals.
| JSON representation |
|---|
{
"defaultRank": number,
"customSignals": [
{
object ( |
| Fields | |
|---|---|
defaultRank |
Optional. The default rank of the result. |
customSignals[] |
Optional. A list of custom clearbox signals. |
precomputedExpressionValues[] |
Optional. A list of precomputed expression results for a given document, in the same order as requested in |
keywordSimilarityScore |
Optional. Keyword matching adjustment. |
relevanceScore |
Optional. Semantic relevance adjustment. |
semanticSimilarityScore |
Optional. Semantic similarity adjustment. |
pctrRank |
Optional. Predicted conversion rate adjustment as a rank. |
topicalityRank |
Optional. Topicality adjustment as a rank. |
documentAge |
Optional. Age of the document in hours. |
boostingFactor |
Optional. Combined custom boosts for a doc. |
CustomSignal
Custom clearbox signal represented by name and value pair.
| JSON representation |
|---|
{ "name": string, "value": number } |
| Fields | |
|---|---|
name |
Optional. name of the signal. |
value |
Optional. Float value representing the ranking signal (e.g. 1.25 for BM25). |
RetrievalSignals
Contains a set of signals used by the relevance filter.
| JSON representation |
|---|
{
"retrievalSources": [
enum ( |
| Fields | |
|---|---|
retrievalSources[] |
Optional. Indicates how the result was retrieved. |
semanticRelevanceScore |
Optional. Relevance score used by the filter when semanticRelevanceThreshold is set. |
RetrievalSource
Indicates the source of the retrieval.
| Enums | |
|---|---|
RETRIEVAL_SOURCE_UNSPECIFIED |
Unspecified retrieval source. |
KEYWORD_SEARCH |
Indicates the result was retrieved by keyword search. |
SEMANTIC_SEARCH |
Indicates the result was retrieved by semantic search. |