- JSON representation
- SearchKnowledgeAnswer
- AnswerType
- AnswerSource
- SearchKnowledgeDebugInfo
- SearchKnowledgeBehavior
The response message for Conversations.SearchKnowledge
.
| JSON representation |
|---|
{ "answers" : [ { object ( |
| Fields | |
|---|---|
answers[]
|
Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence. |
rewrittenQuery
|
The rewritten query used to search knowledge. |
searchKnowledgeDebugInfo
|
Debug info for SearchKnowledge. |
SearchKnowledgeAnswer
Represents a SearchKnowledge answer.
| JSON representation |
|---|
{ "answer" : string , "answerType" : enum ( |
| Fields | |
|---|---|
answer
|
The piece of text from the knowledge base documents that answers the search query |
answerType
|
The type of the answer. |
answerSources[]
|
All sources used to generate the answer. |
answerRecord
|
The name of the answer record. Format: |
AnswerType
The type of the answer.
| Enums | |
|---|---|
ANSWER_TYPE_UNSPECIFIED
|
The answer has a unspecified type. |
FAQ
|
The answer is from FAQ documents. |
GENERATIVE
|
The answer is from generative model. |
INTENT
|
The answer is from intent matching. |
AnswerSource
The sources of the answers.
| JSON representation |
|---|
{ "title" : string , "uri" : string , "snippet" : string , "metadata" : { object } } |
| Fields | |
|---|---|
title
|
The title of the article. |
uri
|
The URI of the article. |
snippet
|
The relevant snippet of the article. |
metadata
|
Metadata associated with the article. |
SearchKnowledgeDebugInfo
Debug information related to SearchKnowledge feature.
| JSON representation |
|---|
{ "datastoreResponseReason" : enum ( |
| Fields | |
|---|---|
datastoreResponseReason
|
Response reason from datastore which indicates data serving status or answer quality degradation. |
searchKnowledgeBehavior
|
Configured behaviors for SearchKnowledge. |
ingestedContextReferenceDebugInfo
|
Information about parameters ingested for search knowledge. |
serviceLatency
|
The latency of the service. |
SearchKnowledgeBehavior
Configured behaviors for SearchKnowledge.
| JSON representation |
|---|
{ "answerGenerationRewriterOn" : boolean , "endUserMetadataIncluded" : boolean , "thirdPartyConnectorAllowed" : boolean } |
| Fields | |
|---|---|
answerGenerationRewriterOn
|
Whether data store agent rewriter was turned on for the request. |
endUserMetadataIncluded
|
Whether endUserMetadata is included in the data store agent call. |
thirdPartyConnectorAllowed
|
This field indicates whether third party connectors are enabled for the project. Note that this field only indicates if the project is allowlisted for connectors. |

