Skip to content

Commit dfa9d62

Browse files
Google APIscopybara-github
authored andcommitted
feat: support document metadata filter in article suggestion
PiperOrigin-RevId: 410295622
1 parent b3ff183 commit dfa9d62

2 files changed

Lines changed: 215 additions & 106 deletions

File tree

google/cloud/dialogflow/v2beta1/audio_config.proto

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,36 +31,6 @@ option java_outer_classname = "AudioConfigProto";
3131
option java_package = "com.google.cloud.dialogflow.v2beta1";
3232
option objc_class_prefix = "DF";
3333

34-
// Hints for the speech recognizer to help with recognition in a specific
35-
// conversation state.
36-
message SpeechContext {
37-
// Optional. A list of strings containing words and phrases that the speech
38-
// recognizer should recognize with higher likelihood.
39-
//
40-
// This list can be used to:
41-
//
42-
// * improve accuracy for words and phrases you expect the user to say,
43-
// e.g. typical commands for your Dialogflow agent
44-
// * add additional words to the speech recognizer vocabulary
45-
// * ...
46-
//
47-
// See the [Cloud Speech
48-
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
49-
// limits.
50-
repeated string phrases = 1;
51-
52-
// Optional. Boost for this context compared to other contexts:
53-
//
54-
// * If the boost is positive, Dialogflow will increase the probability that
55-
// the phrases in this context are recognized over similar sounding phrases.
56-
// * If the boost is unspecified or non-positive, Dialogflow will not apply
57-
// any boost.
58-
//
59-
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
60-
// find a value that fits your use case with binary search.
61-
float boost = 2;
62-
}
63-
6434
// Audio encoding of the audio content sent in the conversational query request.
6535
// Refer to the
6636
// [Cloud Speech API
@@ -110,6 +80,36 @@ enum AudioEncoding {
11080
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
11181
}
11282

83+
// Hints for the speech recognizer to help with recognition in a specific
84+
// conversation state.
85+
message SpeechContext {
86+
// Optional. A list of strings containing words and phrases that the speech
87+
// recognizer should recognize with higher likelihood.
88+
//
89+
// This list can be used to:
90+
//
91+
// * improve accuracy for words and phrases you expect the user to say,
92+
// e.g. typical commands for your Dialogflow agent
93+
// * add additional words to the speech recognizer vocabulary
94+
// * ...
95+
//
96+
// See the [Cloud Speech
97+
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
98+
// limits.
99+
repeated string phrases = 1;
100+
101+
// Optional. Boost for this context compared to other contexts:
102+
//
103+
// * If the boost is positive, Dialogflow will increase the probability that
104+
// the phrases in this context are recognized over similar sounding phrases.
105+
// * If the boost is unspecified or non-positive, Dialogflow will not apply
106+
// any boost.
107+
//
108+
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
109+
// find a value that fits your use case with binary search.
110+
float boost = 2;
111+
}
112+
113113
// Information for a word recognized by the speech recognizer.
114114
message SpeechWordInfo {
115115
// The word this info is for.

0 commit comments

Comments
 (0)