- JSON representation
- FallbackSettings
- PromptTemplate
- SafetySettings
- PhraseMatchStrategy
- Phrase
- PromptSecuritySettings
- KnowledgeConnectorSettings
Settings for Generative AI.
JSON representation |
---|
{ "name" : string , "fallbackSettings" : { object ( |
Fields | |
---|---|
name
|
Format: |
fallbackSettings
|
Settings for Generative Fallback. |
generativeSafetySettings
|
Settings for Generative Safety. |
knowledgeConnectorSettings
|
Settings for knowledge connector. |
languageCode
|
Language for this settings. |
llmModelSettings
|
LLM model settings. |
FallbackSettings
Settings for Generative Fallback.
JSON representation |
---|
{
"selectedPrompt"
:
string
,
"promptTemplates"
:
[
{
object (
|
Fields | |
---|---|
selectedPrompt
|
Display name of the selected prompt. |
promptTemplates[]
|
Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones. |
PromptTemplate
Prompt template.
JSON representation |
---|
{ "displayName" : string , "promptText" : string , "frozen" : boolean } |
Fields | |
---|---|
displayName
|
Prompt name. |
promptText
|
Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: " |
frozen
|
If the flag is true, the prompt is frozen and cannot be modified by users. |
SafetySettings
Settings for Generative Safety.
JSON representation |
---|
{ "defaultBannedPhraseMatchStrategy" : enum ( |
Fields | |
---|---|
defaultBannedPhraseMatchStrategy
|
Optional. Default phrase match strategy for banned phrases. |
bannedPhrases[]
|
Banned phrases for generated text. |
promptSecuritySettings
|
Optional. Settings for prompt security checks. |
PhraseMatchStrategy
Strategy for matching phrases.
Enums | |
---|---|
PHRASE_MATCH_STRATEGY_UNSPECIFIED
|
Unspecified, defaults to PARTIAL_MATCH. |
PARTIAL_MATCH
|
Text that contains the phrase as a substring will be matched, e.g. "foo" will match "afoobar". |
WORD_MATCH
|
Text that contains the tokenized words of the phrase will be matched, e.g. "foo" will match "a foo bar" and "foo bar", but not "foobar". |
Phrase
Text input which can be used for prompt or banned phrases.
JSON representation |
---|
{ "text" : string , "languageCode" : string } |
Fields | |
---|---|
text
|
Required. Text input which can be used for prompt or banned phrases. |
languageCode
|
Required. Language code of the phrase. |
PromptSecuritySettings
Settings for prompt security checks.
JSON representation |
---|
{ "enablePromptSecurity" : boolean } |
Fields | |
---|---|
enablePromptSecurity
|
Optional. Enable prompt security checks. |
KnowledgeConnectorSettings
Settings for knowledge connector. These parameters are used for LLM prompt like "You are
JSON representation |
---|
{ "business" : string , "agent" : string , "agentIdentity" : string , "businessDescription" : string , "agentScope" : string , "disableDataStoreFallback" : boolean } |
Fields | |
---|---|
business
|
Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search. |
agent
|
Name of the virtual agent. Used for LLM prompt. Can be left empty. |
agentIdentity
|
Identity of the agent, e.g. "virtual agent", "AI assistant". |
businessDescription
|
Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans". |
agentScope
|
Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner". |
disableDataStoreFallback
|
Whether to disable fallback to Data Store search results (in case the LLM couldn't pick a proper answer). Per default the feature is enabled. |