Class SearchResultMode (0.11.14)

SearchResultMode(value)

Specifies the search result mode. If unspecified, the search result mode is based on [DataStore.DocumentProcessingConfig.chunking_config][]:

  • If [DataStore.DocumentProcessingConfig.chunking_config][] is specified, it defaults to CHUNKS.
  • Otherwise, it defaults to DOCUMENTS.

Enums

Name Description
SEARCH_RESULT_MODE_UNSPECIFIED Default value.
DOCUMENTS Returns documents in the search result.
CHUNKS Returns chunks in the search result. Only available if the [DataStore.DocumentProcessingConfig.chunking_config][] is specified.