- JSON representation
- KnowledgeAssistAnswer
- SuggestedQuery
- KnowledgeAnswer
- FaqSource
- GenerativeSource
- Snippet
The response message for Participants.SuggestKnowledgeAssist.
| JSON representation |
|---|
{
"knowledgeAssistAnswer": {
object ( |
| Fields | |
|---|---|
knowledgeAssistAnswer |
Output only. Knowledge Assist suggestion. |
latestMessage |
The name of the latest conversation message used to compile suggestion for. Format: |
contextSize |
Number of messages prior to and including |
KnowledgeAssistAnswer
Represents a Knowledge Assist answer.
| JSON representation |
|---|
{ "suggestedQuery": { object ( |
| Fields | |
|---|---|
suggestedQuery |
The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion. |
suggestedQueryAnswer |
The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query. |
answerRecord |
The name of the answer record. Format: |
SuggestedQuery
Represents a suggested query.
| JSON representation |
|---|
{ "queryText": string } |
| Fields | |
|---|---|
queryText |
Suggested query text. |
KnowledgeAnswer
Represents an answer from Knowledge. Currently supports FAQ and Generative answers.
| JSON representation |
|---|
{ "answerText": string, // Union field |
| Fields | |
|---|---|
answerText |
The piece of text from the |
Union field source. Source of result. source can be only one of the following: |
|
faqSource |
Populated if the prediction came from FAQ. |
generativeSource |
Populated if the prediction was Generative. |
FaqSource
Details about source of FAQ answer.
| JSON representation |
|---|
{ "question": string } |
| Fields | |
|---|---|
question |
The corresponding FAQ question. |
GenerativeSource
Details about source of Generative answer.
| JSON representation |
|---|
{
"snippets": [
{
object ( |
| Fields | |
|---|---|
snippets[] |
All snippets used for this Generative Prediction, with their source URI and data. |
Snippet
Snippet Source for a Generative Prediction.
| JSON representation |
|---|
{ "uri": string, "text": string, "title": string, "metadata": { object } } |
| Fields | |
|---|---|
uri |
URI the data is sourced from. |
text |
Text taken from that URI. |
title |
Title of the document. |
metadata |
Metadata of the document. |