SearchKnowledgeResponse

The response message for Conversations.SearchKnowledge.

JSON representation
{
  "answers": [
    {
      object (SearchKnowledgeAnswer)
    }
  ],
  "rewrittenQuery": string
}
Fields
answers[]

object (SearchKnowledgeAnswer)

Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence.

rewrittenQuery

string

The rewritten query used to search knowledge.

SearchKnowledgeAnswer

Represents a SearchKnowledge answer.

JSON representation
{
  "answer": string,
  "answerType": enum (AnswerType),
  "answerSources": [
    {
      object (AnswerSource)
    }
  ],
  "answerRecord": string
}
Fields
answer

string

The piece of text from the knowledge base documents that answers the search query

answerType

enum (AnswerType)

The type of the answer.

answerSources[]

object (AnswerSource)

All sources used to generate the answer.

answerRecord

string

The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>

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

string

The title of the article.

uri

string

The URI of the article.

snippet

string

The relevant snippet of the article.

metadata

object (Struct format)

Metadata associated with the article.