# RelevanceScoreSpec

- [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1/RelevanceScoreSpec#SCHEMA_REPRESENTATION)

The specification for returning the document relevance score.

| JSON representation |
|---|
| ``` { "returnRelevanceScore": boolean } ``` |

| Fields ||
|---|---|
| `returnRelevanceScore` | `boolean` Optional. Whether to return the relevance score for search results. The higher the score, the more relevant the document is to the query. |