google-apis-firebaseml_v2beta 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c22767810de43bdddf0f493037589d58aec28c708e6fa42a45f38dbb5ea2166
|
4
|
+
data.tar.gz: a4c821e394a98c4842c61dac957ec1cde4234801486b3f306214146b49d9025a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b667e961f2ecb0baa0bd7d08bb24631efb6df95bded319e42186c130d133e972eccd8fe5ab433790069dfe1131122e8b0e2ca35a6e3630ae071cdaaf08bf638d
|
7
|
+
data.tar.gz: 6d4ce3162db8bce1bab993e8221679710a42ed2be4d76e6d98b3de5cabf59159f05888baf2617cb62a883ffe17258d0704de9633c16b96b451835358737a8e6c
|
data/CHANGELOG.md
CHANGED
@@ -641,6 +641,11 @@ module Google
|
|
641
641
|
# @return [Array<String>]
|
642
642
|
attr_accessor :retrieval_queries
|
643
643
|
|
644
|
+
# Google search entry point.
|
645
|
+
# Corresponds to the JSON property `searchEntryPoint`
|
646
|
+
# @return [Google::Apis::FirebasemlV2beta::SearchEntryPoint]
|
647
|
+
attr_accessor :search_entry_point
|
648
|
+
|
644
649
|
# Optional. Web search queries for the following-up web search.
|
645
650
|
# Corresponds to the JSON property `webSearchQueries`
|
646
651
|
# @return [Array<String>]
|
@@ -653,6 +658,7 @@ module Google
|
|
653
658
|
# Update properties of this object
|
654
659
|
def update!(**args)
|
655
660
|
@retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
|
661
|
+
@search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
|
656
662
|
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
|
657
663
|
end
|
658
664
|
end
|
@@ -772,6 +778,33 @@ module Google
|
|
772
778
|
end
|
773
779
|
end
|
774
780
|
|
781
|
+
# The definition of the Rag resource.
|
782
|
+
class RagResource
|
783
|
+
include Google::Apis::Core::Hashable
|
784
|
+
|
785
|
+
# Optional. RagCorpora resource name. Format: `projects/`project`/locations/`
|
786
|
+
# location`/ragCorpora/`rag_corpus``
|
787
|
+
# Corresponds to the JSON property `ragCorpus`
|
788
|
+
# @return [String]
|
789
|
+
attr_accessor :rag_corpus
|
790
|
+
|
791
|
+
# Optional. rag_file_id. The files should be in the same rag_corpus set in
|
792
|
+
# rag_corpus field.
|
793
|
+
# Corresponds to the JSON property `ragFileIds`
|
794
|
+
# @return [Array<String>]
|
795
|
+
attr_accessor :rag_file_ids
|
796
|
+
|
797
|
+
def initialize(**args)
|
798
|
+
update!(**args)
|
799
|
+
end
|
800
|
+
|
801
|
+
# Update properties of this object
|
802
|
+
def update!(**args)
|
803
|
+
@rag_corpus = args[:rag_corpus] if args.key?(:rag_corpus)
|
804
|
+
@rag_file_ids = args[:rag_file_ids] if args.key?(:rag_file_ids)
|
805
|
+
end
|
806
|
+
end
|
807
|
+
|
775
808
|
# Defines a retrieval tool that model can call to access external knowledge.
|
776
809
|
class Retrieval
|
777
810
|
include Google::Apis::Core::Hashable
|
@@ -1035,6 +1068,33 @@ module Google
|
|
1035
1068
|
end
|
1036
1069
|
end
|
1037
1070
|
|
1071
|
+
# Google search entry point.
|
1072
|
+
class SearchEntryPoint
|
1073
|
+
include Google::Apis::Core::Hashable
|
1074
|
+
|
1075
|
+
# Optional. Web content snippet that can be embedded in a web page or an app
|
1076
|
+
# webview.
|
1077
|
+
# Corresponds to the JSON property `renderedContent`
|
1078
|
+
# @return [String]
|
1079
|
+
attr_accessor :rendered_content
|
1080
|
+
|
1081
|
+
# Optional. Base64 encoded JSON representing array of tuple.
|
1082
|
+
# Corresponds to the JSON property `sdkBlob`
|
1083
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1084
|
+
# @return [String]
|
1085
|
+
attr_accessor :sdk_blob
|
1086
|
+
|
1087
|
+
def initialize(**args)
|
1088
|
+
update!(**args)
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
# Update properties of this object
|
1092
|
+
def update!(**args)
|
1093
|
+
@rendered_content = args[:rendered_content] if args.key?(:rendered_content)
|
1094
|
+
@sdk_blob = args[:sdk_blob] if args.key?(:sdk_blob)
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
|
1038
1098
|
# Tool details that the model may use to generate response. A `Tool` is a piece
|
1039
1099
|
# of code that enables the system to interact with external systems to perform
|
1040
1100
|
# an action, or set of actions, outside of knowledge and scope of the model. A
|
@@ -1145,14 +1205,18 @@ module Google
|
|
1145
1205
|
class VertexRagStore
|
1146
1206
|
include Google::Apis::Core::Hashable
|
1147
1207
|
|
1148
|
-
#
|
1149
|
-
# `location`/ragCorpora/`ragCorpus`` Currently only one corpus is allowed. In
|
1150
|
-
# the future we may open up multiple corpora support. However, they should be
|
1151
|
-
# from the same project and location.
|
1208
|
+
# Optional. Deprecated. Please use rag_resources instead.
|
1152
1209
|
# Corresponds to the JSON property `ragCorpora`
|
1153
1210
|
# @return [Array<String>]
|
1154
1211
|
attr_accessor :rag_corpora
|
1155
1212
|
|
1213
|
+
# Optional. The representation of the rag source. It can be used to specify
|
1214
|
+
# corpus only or ragfiles. Currently only support one corpus or multiple files
|
1215
|
+
# from one corpus. In the future we may open up multiple corpora support.
|
1216
|
+
# Corresponds to the JSON property `ragResources`
|
1217
|
+
# @return [Array<Google::Apis::FirebasemlV2beta::RagResource>]
|
1218
|
+
attr_accessor :rag_resources
|
1219
|
+
|
1156
1220
|
# Optional. Number of top k results to return from the selected corpora.
|
1157
1221
|
# Corresponds to the JSON property `similarityTopK`
|
1158
1222
|
# @return [Fixnum]
|
@@ -1170,6 +1234,7 @@ module Google
|
|
1170
1234
|
# Update properties of this object
|
1171
1235
|
def update!(**args)
|
1172
1236
|
@rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
|
1237
|
+
@rag_resources = args[:rag_resources] if args.key?(:rag_resources)
|
1173
1238
|
@similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
|
1174
1239
|
@vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
|
1175
1240
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module FirebasemlV2beta
|
18
18
|
# Version of the google-apis-firebaseml_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240425"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -142,6 +142,12 @@ module Google
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
+
class RagResource
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
145
151
|
class Retrieval
|
146
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
153
|
|
@@ -166,6 +172,12 @@ module Google
|
|
166
172
|
include Google::Apis::Core::JsonObjectSupport
|
167
173
|
end
|
168
174
|
|
175
|
+
class SearchEntryPoint
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
169
181
|
class Tool
|
170
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
183
|
|
@@ -377,6 +389,8 @@ module Google
|
|
377
389
|
# @private
|
378
390
|
class Representation < Google::Apis::Core::JsonRepresentation
|
379
391
|
collection :retrieval_queries, as: 'retrievalQueries'
|
392
|
+
property :search_entry_point, as: 'searchEntryPoint', class: Google::Apis::FirebasemlV2beta::SearchEntryPoint, decorator: Google::Apis::FirebasemlV2beta::SearchEntryPoint::Representation
|
393
|
+
|
380
394
|
collection :web_search_queries, as: 'webSearchQueries'
|
381
395
|
end
|
382
396
|
end
|
@@ -416,6 +430,14 @@ module Google
|
|
416
430
|
end
|
417
431
|
end
|
418
432
|
|
433
|
+
class RagResource
|
434
|
+
# @private
|
435
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
436
|
+
property :rag_corpus, as: 'ragCorpus'
|
437
|
+
collection :rag_file_ids, as: 'ragFileIds'
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
419
441
|
class Retrieval
|
420
442
|
# @private
|
421
443
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -476,6 +498,14 @@ module Google
|
|
476
498
|
end
|
477
499
|
end
|
478
500
|
|
501
|
+
class SearchEntryPoint
|
502
|
+
# @private
|
503
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
504
|
+
property :rendered_content, as: 'renderedContent'
|
505
|
+
property :sdk_blob, :base64 => true, as: 'sdkBlob'
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
479
509
|
class Tool
|
480
510
|
# @private
|
481
511
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -514,6 +544,8 @@ module Google
|
|
514
544
|
# @private
|
515
545
|
class Representation < Google::Apis::Core::JsonRepresentation
|
516
546
|
collection :rag_corpora, as: 'ragCorpora'
|
547
|
+
collection :rag_resources, as: 'ragResources', class: Google::Apis::FirebasemlV2beta::RagResource, decorator: Google::Apis::FirebasemlV2beta::RagResource::Representation
|
548
|
+
|
517
549
|
property :similarity_top_k, as: 'similarityTopK'
|
518
550
|
property :vector_distance_threshold, as: 'vectorDistanceThreshold'
|
519
551
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-firebaseml_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.3.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|