trieve_ruby_client 0.8.2 → 0.10.7
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 +4 -4
- data/README.md +39 -30
- data/docs/ApiKeyRespBody.md +32 -0
- data/docs/AutocompleteData.md +42 -0
- data/docs/AutocompleteReqPayload.md +50 -0
- data/docs/BoostPhrase.md +20 -0
- data/docs/ChunkApi.md +140 -66
- data/docs/ChunkData.md +3 -1
- data/docs/ChunkFilter.md +3 -3
- data/docs/ChunkGroup.md +1 -1
- data/docs/ChunkGroupApi.md +35 -33
- data/docs/ChunkMetadata.md +5 -1
- data/docs/ChunkMetadataStringTagSet.md +46 -0
- data/docs/ChunkMetadataTypes.md +51 -0
- data/docs/ChunkReqPayload.md +50 -0
- data/docs/ClientDatasetConfiguration.md +0 -2
- data/docs/ConditionType.md +49 -0
- data/docs/ContentChunkMetadata.md +32 -0
- data/docs/CreateChunkGroupReqPayload.md +28 -0
- data/docs/CreateChunkReqPayloadEnum.md +49 -0
- data/docs/CreateDatasetRequest.md +2 -2
- data/docs/CreateMessageData.md +2 -2
- data/docs/CreateMessageReqPayload.md +42 -0
- data/docs/CreateTopicReqPayload.md +22 -0
- data/docs/Dataset.md +2 -0
- data/docs/DatasetApi.md +236 -12
- data/docs/DateRange.md +24 -0
- data/docs/EditMessageReqPayload.md +44 -0
- data/docs/FieldCondition.md +2 -0
- data/docs/File.md +1 -1
- data/docs/FileApi.md +7 -7
- data/docs/GenerateChunksRequest.md +2 -0
- data/docs/GetDatasetsPagination.md +20 -0
- data/docs/HasIDCondition.md +20 -0
- data/docs/InvitationApi.md +1 -1
- data/docs/MatchCondition.md +3 -1
- data/docs/MessageApi.md +42 -42
- data/docs/Organization.md +2 -0
- data/docs/OrganizationApi.md +24 -25
- data/docs/RangeCondition.md +1 -3
- data/docs/RegenerateMessageReqPayload.md +40 -0
- data/docs/RemoveChunkFromGroupReqPayload.md +18 -0
- data/docs/ScoreChunkDTO.md +3 -1
- data/docs/SearchChunkData.md +9 -3
- data/docs/SearchChunksReqPayload.md +54 -0
- data/docs/SearchOverGroupsData.md +10 -2
- data/docs/SearchWithinGroupData.md +12 -2
- data/docs/SetUserApiKeyRequest.md +4 -0
- data/docs/SlimChunkMetadata.md +4 -0
- data/docs/SuggestedQueriesReqPayload.md +18 -0
- data/docs/TopicApi.md +16 -16
- data/docs/UpdateChunkData.md +2 -0
- data/docs/UpdateChunkReqPayload.md +46 -0
- data/docs/UpdateDatasetRequest.md +2 -0
- data/docs/UpdateGroupByTrackingIDReqPayload.md +26 -0
- data/docs/UpdateTopicReqPayload.md +20 -0
- data/docs/UpdateUserOrgRoleData.md +1 -1
- data/docs/UploadFileReqPayload.md +40 -0
- data/docs/UserApi.md +7 -8
- data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_api.rb +158 -83
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +58 -51
- data/lib/trieve_ruby_client/api/dataset_api.rb +224 -15
- data/lib/trieve_ruby_client/api/events_api.rb +1 -1
- data/lib/trieve_ruby_client/api/file_api.rb +12 -12
- data/lib/trieve_ruby_client/api/health_api.rb +1 -1
- data/lib/trieve_ruby_client/api/invitation_api.rb +3 -3
- data/lib/trieve_ruby_client/api/message_api.rb +50 -50
- data/lib/trieve_ruby_client/api/organization_api.rb +27 -27
- data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
- data/lib/trieve_ruby_client/api/topic_api.rb +27 -27
- data/lib/trieve_ruby_client/api/user_api.rb +8 -8
- data/lib/trieve_ruby_client/api_client.rb +1 -1
- data/lib/trieve_ruby_client/api_error.rb +1 -1
- data/lib/trieve_ruby_client/configuration.rb +1 -1
- data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/api_key_resp_body.rb +325 -0
- data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
- data/lib/trieve_ruby_client/models/autocomplete_data.rb +378 -0
- data/lib/trieve_ruby_client/models/autocomplete_req_payload.rb +467 -0
- data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
- data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
- data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
- data/lib/trieve_ruby_client/models/boost_phrase.rb +240 -0
- data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_data.rb +16 -9
- data/lib/trieve_ruby_client/models/chunk_filter.rb +4 -4
- data/lib/trieve_ruby_client/models/chunk_group.rb +5 -3
- data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata.rb +28 -4
- data/lib/trieve_ruby_client/models/chunk_metadata_string_tag_set.rb +387 -0
- data/lib/trieve_ruby_client/models/chunk_metadata_types.rb +106 -0
- data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_req_payload.rb +400 -0
- data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +2 -18
- data/lib/trieve_ruby_client/models/condition_type.rb +105 -0
- data/lib/trieve_ruby_client/models/content_chunk_metadata.rb +299 -0
- data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_group_req_payload.rb +273 -0
- data/lib/trieve_ruby_client/models/create_chunk_req_payload_enum.rb +105 -0
- data/lib/trieve_ruby_client/models/create_dataset_request.rb +3 -3
- data/lib/trieve_ruby_client/models/create_message_data.rb +13 -13
- data/lib/trieve_ruby_client/models/create_message_req_payload.rb +378 -0
- data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_topic_req_payload.rb +244 -0
- data/lib/trieve_ruby_client/models/dataset.rb +18 -2
- data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/date_range.rb +245 -0
- data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/edit_message_req_payload.rb +395 -0
- data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/event.rb +1 -1
- data/lib/trieve_ruby_client/models/event_return.rb +1 -1
- data/lib/trieve_ruby_client/models/field_condition.rb +12 -2
- data/lib/trieve_ruby_client/models/file.rb +5 -3
- data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/generate_chunks_request.rb +13 -2
- data/lib/trieve_ruby_client/models/geo_info.rb +1 -1
- data/lib/trieve_ruby_client/models/geo_types.rb +1 -1
- data/lib/trieve_ruby_client/models/get_chunks_data.rb +1 -1
- data/lib/trieve_ruby_client/models/get_datasets_pagination.rb +225 -0
- data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
- data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
- data/lib/trieve_ruby_client/models/get_tracking_chunks_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_chunk.rb +1 -1
- data/lib/trieve_ruby_client/models/has_id_condition.rb +229 -0
- data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
- data/lib/trieve_ruby_client/models/location_bounding_box.rb +1 -1
- data/lib/trieve_ruby_client/models/location_polygon.rb +1 -1
- data/lib/trieve_ruby_client/models/location_radius.rb +1 -1
- data/lib/trieve_ruby_client/models/match_condition.rb +2 -1
- data/lib/trieve_ruby_client/models/message.rb +1 -1
- data/lib/trieve_ruby_client/models/organization.rb +18 -2
- data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/range.rb +1 -1
- data/lib/trieve_ruby_client/models/range_condition.rb +2 -3
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/regenerate_message_req_payload.rb +361 -0
- data/lib/trieve_ruby_client/models/remove_chunk_from_group_req_payload.rb +222 -0
- data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
- data/lib/trieve_ruby_client/models/score_chunk_dto.rb +15 -3
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +40 -5
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunks_req_payload.rb +504 -0
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +93 -4
- data/lib/trieve_ruby_client/models/search_over_groups_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_data.rb +106 -4
- data/lib/trieve_ruby_client/models/search_within_group_results.rb +1 -1
- data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +28 -2
- data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
- data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +24 -2
- data/lib/trieve_ruby_client/models/slim_chunk_metadata_with_score.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
- data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_req_payload.rb +222 -0
- data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
- data/lib/trieve_ruby_client/models/topic.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_data.rb +15 -2
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_req_payload.rb +376 -0
- data/lib/trieve_ruby_client/models/update_dataset_request.rb +13 -2
- data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_group_by_tracking_id_req_payload.rb +268 -0
- data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_topic_req_payload.rb +239 -0
- data/lib/trieve_ruby_client/models/update_user_org_role_data.rb +2 -2
- data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
- data/lib/trieve_ruby_client/models/upload_file_req_payload.rb +368 -0
- data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
- data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
- data/lib/trieve_ruby_client/version.rb +2 -2
- data/lib/trieve_ruby_client.rb +25 -20
- data/openapi-generator.yaml +1 -1
- data/openapi.json +1 -7789
- data/spec/models/api_key_resp_body_spec.rb +78 -0
- data/spec/models/autocomplete_data_spec.rb +108 -0
- data/spec/models/autocomplete_req_payload_spec.rb +132 -0
- data/spec/models/boost_phrase_spec.rb +42 -0
- data/spec/models/chunk_metadata_string_tag_set_spec.rb +120 -0
- data/spec/models/chunk_metadata_types_spec.rb +32 -0
- data/spec/models/chunk_req_payload_spec.rb +132 -0
- data/spec/models/condition_type_spec.rb +32 -0
- data/spec/models/content_chunk_metadata_spec.rb +72 -0
- data/spec/models/create_chunk_group_req_payload_spec.rb +66 -0
- data/spec/models/create_chunk_req_payload_enum_spec.rb +32 -0
- data/spec/models/create_message_req_payload_spec.rb +108 -0
- data/spec/models/create_topic_req_payload_spec.rb +48 -0
- data/spec/models/date_range_spec.rb +54 -0
- data/spec/models/edit_message_req_payload_spec.rb +114 -0
- data/spec/models/get_datasets_pagination_spec.rb +42 -0
- data/spec/models/has_id_condition_spec.rb +42 -0
- data/spec/models/regenerate_message_req_payload_spec.rb +102 -0
- data/spec/models/remove_chunk_from_group_req_payload_spec.rb +36 -0
- data/spec/models/search_chunks_req_payload_spec.rb +144 -0
- data/spec/models/suggested_queries_req_payload_spec.rb +36 -0
- data/spec/models/update_chunk_req_payload_spec.rb +120 -0
- data/spec/models/update_group_by_tracking_id_req_payload_spec.rb +60 -0
- data/spec/models/update_topic_req_payload_spec.rb +42 -0
- data/spec/models/upload_file_req_payload_spec.rb +102 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.8.2.gem +0 -0
- data/trieve_ruby_client-0.8.5.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +104 -2
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.10.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -26,12 +26,24 @@ module TrieveRubyClient
|
|
26
26
|
# Group_size is the number of chunks to fetch for each group. The default is 3. If a group has less than group_size chunks, all chunks will be returned. If this is set to a large number, we recommend setting slim_chunks to true to avoid returning the content and chunk_html of the chunks so as to lower the amount of time required for content download and serialization.
|
27
27
|
attr_accessor :group_size
|
28
28
|
|
29
|
-
# Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to [\"?\", \",\", \".\", \"!\"].
|
29
|
+
# Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to [\"?\", \",\", \".\", \"!\"]. These are the characters that will be used to split the chunk_html into splits for highlighting.
|
30
30
|
attr_accessor :highlight_delimiters
|
31
31
|
|
32
|
-
# Set
|
32
|
+
# Set highlight_max_length to control the maximum number of tokens (typically whitespace separated strings, but sometimes also word stems) which can be present within a single highlight. If not specified, this defaults to 8. This is useful to shorten large splits which may have low scores due to length compared to the query. Set to something very large like 100 to highlight entire splits.
|
33
|
+
attr_accessor :highlight_max_length
|
34
|
+
|
35
|
+
# Set highlight_max_num to control the maximum number of highlights per chunk. If not specified, this defaults to 3. It may be less than 3 if no snippets score above the highlight_threshold.
|
36
|
+
attr_accessor :highlight_max_num
|
37
|
+
|
38
|
+
# Set highlight_results to false for a slight latency improvement (1-10ms). If not specified, this defaults to true. This will add `<b><mark>` tags to the chunk_html of the chunks to highlight matching splits and return the highlights on each scored chunk in the response.
|
33
39
|
attr_accessor :highlight_results
|
34
40
|
|
41
|
+
# Set highlight_threshold to a lower or higher value to adjust the sensitivity of the highlights applied to the chunk html. If not specified, this defaults to 0.8. The range is 0.0 to 1.0.
|
42
|
+
attr_accessor :highlight_threshold
|
43
|
+
|
44
|
+
# Set highlight_window to a number to control the amount of words that are returned around the matched phrases. If not specified, this defaults to 0. This is useful for when you want to show more context around the matched words. When specified, window/2 whitespace separated words are added before and after each highlight in the response's highlights array. If an extended highlight overlaps with another highlight, the overlapping words are only included once.
|
45
|
+
attr_accessor :highlight_window
|
46
|
+
|
35
47
|
# Page of group results to fetch. Page is 1-indexed.
|
36
48
|
attr_accessor :page
|
37
49
|
|
@@ -58,7 +70,11 @@ module TrieveRubyClient
|
|
58
70
|
:'get_total_pages' => :'get_total_pages',
|
59
71
|
:'group_size' => :'group_size',
|
60
72
|
:'highlight_delimiters' => :'highlight_delimiters',
|
73
|
+
:'highlight_max_length' => :'highlight_max_length',
|
74
|
+
:'highlight_max_num' => :'highlight_max_num',
|
61
75
|
:'highlight_results' => :'highlight_results',
|
76
|
+
:'highlight_threshold' => :'highlight_threshold',
|
77
|
+
:'highlight_window' => :'highlight_window',
|
62
78
|
:'page' => :'page',
|
63
79
|
:'page_size' => :'page_size',
|
64
80
|
:'query' => :'query',
|
@@ -81,7 +97,11 @@ module TrieveRubyClient
|
|
81
97
|
:'get_total_pages' => :'Boolean',
|
82
98
|
:'group_size' => :'Integer',
|
83
99
|
:'highlight_delimiters' => :'Array<String>',
|
100
|
+
:'highlight_max_length' => :'Integer',
|
101
|
+
:'highlight_max_num' => :'Integer',
|
84
102
|
:'highlight_results' => :'Boolean',
|
103
|
+
:'highlight_threshold' => :'Float',
|
104
|
+
:'highlight_window' => :'Integer',
|
85
105
|
:'page' => :'Integer',
|
86
106
|
:'page_size' => :'Integer',
|
87
107
|
:'query' => :'String',
|
@@ -99,7 +119,11 @@ module TrieveRubyClient
|
|
99
119
|
:'get_total_pages',
|
100
120
|
:'group_size',
|
101
121
|
:'highlight_delimiters',
|
122
|
+
:'highlight_max_length',
|
123
|
+
:'highlight_max_num',
|
102
124
|
:'highlight_results',
|
125
|
+
:'highlight_threshold',
|
126
|
+
:'highlight_window',
|
103
127
|
:'page',
|
104
128
|
:'page_size',
|
105
129
|
:'score_threshold',
|
@@ -144,10 +168,26 @@ module TrieveRubyClient
|
|
144
168
|
end
|
145
169
|
end
|
146
170
|
|
171
|
+
if attributes.key?(:'highlight_max_length')
|
172
|
+
self.highlight_max_length = attributes[:'highlight_max_length']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.key?(:'highlight_max_num')
|
176
|
+
self.highlight_max_num = attributes[:'highlight_max_num']
|
177
|
+
end
|
178
|
+
|
147
179
|
if attributes.key?(:'highlight_results')
|
148
180
|
self.highlight_results = attributes[:'highlight_results']
|
149
181
|
end
|
150
182
|
|
183
|
+
if attributes.key?(:'highlight_threshold')
|
184
|
+
self.highlight_threshold = attributes[:'highlight_threshold']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.key?(:'highlight_window')
|
188
|
+
self.highlight_window = attributes[:'highlight_window']
|
189
|
+
end
|
190
|
+
|
151
191
|
if attributes.key?(:'page')
|
152
192
|
self.page = attributes[:'page']
|
153
193
|
end
|
@@ -186,6 +226,18 @@ module TrieveRubyClient
|
|
186
226
|
invalid_properties.push('invalid value for "group_size", must be greater than or equal to 0.')
|
187
227
|
end
|
188
228
|
|
229
|
+
if !@highlight_max_length.nil? && @highlight_max_length < 0
|
230
|
+
invalid_properties.push('invalid value for "highlight_max_length", must be greater than or equal to 0.')
|
231
|
+
end
|
232
|
+
|
233
|
+
if !@highlight_max_num.nil? && @highlight_max_num < 0
|
234
|
+
invalid_properties.push('invalid value for "highlight_max_num", must be greater than or equal to 0.')
|
235
|
+
end
|
236
|
+
|
237
|
+
if !@highlight_window.nil? && @highlight_window < 0
|
238
|
+
invalid_properties.push('invalid value for "highlight_window", must be greater than or equal to 0.')
|
239
|
+
end
|
240
|
+
|
189
241
|
if !@page.nil? && @page < 0
|
190
242
|
invalid_properties.push('invalid value for "page", must be greater than or equal to 0.')
|
191
243
|
end
|
@@ -210,6 +262,9 @@ module TrieveRubyClient
|
|
210
262
|
def valid?
|
211
263
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
212
264
|
return false if !@group_size.nil? && @group_size < 0
|
265
|
+
return false if !@highlight_max_length.nil? && @highlight_max_length < 0
|
266
|
+
return false if !@highlight_max_num.nil? && @highlight_max_num < 0
|
267
|
+
return false if !@highlight_window.nil? && @highlight_window < 0
|
213
268
|
return false if !@page.nil? && @page < 0
|
214
269
|
return false if !@page_size.nil? && @page_size < 0
|
215
270
|
return false if @query.nil?
|
@@ -227,6 +282,36 @@ module TrieveRubyClient
|
|
227
282
|
@group_size = group_size
|
228
283
|
end
|
229
284
|
|
285
|
+
# Custom attribute writer method with validation
|
286
|
+
# @param [Object] highlight_max_length Value to be assigned
|
287
|
+
def highlight_max_length=(highlight_max_length)
|
288
|
+
if !highlight_max_length.nil? && highlight_max_length < 0
|
289
|
+
fail ArgumentError, 'invalid value for "highlight_max_length", must be greater than or equal to 0.'
|
290
|
+
end
|
291
|
+
|
292
|
+
@highlight_max_length = highlight_max_length
|
293
|
+
end
|
294
|
+
|
295
|
+
# Custom attribute writer method with validation
|
296
|
+
# @param [Object] highlight_max_num Value to be assigned
|
297
|
+
def highlight_max_num=(highlight_max_num)
|
298
|
+
if !highlight_max_num.nil? && highlight_max_num < 0
|
299
|
+
fail ArgumentError, 'invalid value for "highlight_max_num", must be greater than or equal to 0.'
|
300
|
+
end
|
301
|
+
|
302
|
+
@highlight_max_num = highlight_max_num
|
303
|
+
end
|
304
|
+
|
305
|
+
# Custom attribute writer method with validation
|
306
|
+
# @param [Object] highlight_window Value to be assigned
|
307
|
+
def highlight_window=(highlight_window)
|
308
|
+
if !highlight_window.nil? && highlight_window < 0
|
309
|
+
fail ArgumentError, 'invalid value for "highlight_window", must be greater than or equal to 0.'
|
310
|
+
end
|
311
|
+
|
312
|
+
@highlight_window = highlight_window
|
313
|
+
end
|
314
|
+
|
230
315
|
# Custom attribute writer method with validation
|
231
316
|
# @param [Object] page Value to be assigned
|
232
317
|
def page=(page)
|
@@ -257,7 +342,11 @@ module TrieveRubyClient
|
|
257
342
|
get_total_pages == o.get_total_pages &&
|
258
343
|
group_size == o.group_size &&
|
259
344
|
highlight_delimiters == o.highlight_delimiters &&
|
345
|
+
highlight_max_length == o.highlight_max_length &&
|
346
|
+
highlight_max_num == o.highlight_max_num &&
|
260
347
|
highlight_results == o.highlight_results &&
|
348
|
+
highlight_threshold == o.highlight_threshold &&
|
349
|
+
highlight_window == o.highlight_window &&
|
261
350
|
page == o.page &&
|
262
351
|
page_size == o.page_size &&
|
263
352
|
query == o.query &&
|
@@ -275,7 +364,7 @@ module TrieveRubyClient
|
|
275
364
|
# Calculates hash code according to all attributes.
|
276
365
|
# @return [Integer] Hash code
|
277
366
|
def hash
|
278
|
-
[filters, get_collisions, get_total_pages, group_size, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks].hash
|
367
|
+
[filters, get_collisions, get_total_pages, group_size, highlight_delimiters, highlight_max_length, highlight_max_num, highlight_results, highlight_threshold, highlight_window, page, page_size, query, score_threshold, search_type, slim_chunks].hash
|
279
368
|
end
|
280
369
|
|
281
370
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.10.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.10.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -26,12 +26,24 @@ module TrieveRubyClient
|
|
26
26
|
# Group_tracking_id specifies the group to search within by tracking id. Results will only consist of chunks which are bookmarks within the specified group. If both group_id and group_tracking_id are provided, group_id will be used.
|
27
27
|
attr_accessor :group_tracking_id
|
28
28
|
|
29
|
-
# Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to [\"?\", \",\", \".\", \"!\"].
|
29
|
+
# Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to [\"?\", \",\", \".\", \"!\"]. These are the characters that will be used to split the chunk_html into splits for highlighting.
|
30
30
|
attr_accessor :highlight_delimiters
|
31
31
|
|
32
|
-
# Set
|
32
|
+
# Set highlight_max_length to control the maximum number of tokens (typically whitespace separated strings, but sometimes also word stems) which can be present within a single highlight. If not specified, this defaults to 8. This is useful to shorten large splits which may have low scores due to length compared to the query. Set to something very large like 100 to highlight entire splits.
|
33
|
+
attr_accessor :highlight_max_length
|
34
|
+
|
35
|
+
# Set highlight_max_num to control the maximum number of highlights per chunk. If not specified, this defaults to 3. It may be less than 3 if no snippets score above the highlight_threshold.
|
36
|
+
attr_accessor :highlight_max_num
|
37
|
+
|
38
|
+
# Set highlight_results to false for a slight latency improvement (1-10ms). If not specified, this defaults to true. This will add `<b><mark>` tags to the chunk_html of the chunks to highlight matching splits and return the highlights on each scored chunk in the response.
|
33
39
|
attr_accessor :highlight_results
|
34
40
|
|
41
|
+
# Set highlight_threshold to a lower or higher value to adjust the sensitivity of the highlights applied to the chunk html. If not specified, this defaults to 0.8. The range is 0.0 to 1.0.
|
42
|
+
attr_accessor :highlight_threshold
|
43
|
+
|
44
|
+
# Set highlight_window to a number to control the amount of words that are returned around the matched phrases. If not specified, this defaults to 0. This is useful for when you want to show more context around the matched words. When specified, window/2 whitespace separated words are added before and after each highlight in the response's highlights array. If an extended highlight overlaps with another highlight, the overlapping words are only included once.
|
45
|
+
attr_accessor :highlight_window
|
46
|
+
|
35
47
|
# The page of chunks to fetch. Page is 1-indexed.
|
36
48
|
attr_accessor :page
|
37
49
|
|
@@ -53,6 +65,9 @@ module TrieveRubyClient
|
|
53
65
|
# Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement (typicall 10-50ms). Default is false.
|
54
66
|
attr_accessor :slim_chunks
|
55
67
|
|
68
|
+
# Tag weights is a JSON object which can be used to boost the ranking of chunks with certain tags. This is useful for when you want to be able to bias towards chunks with a certain tag on the fly. The keys are the tag names and the values are the weights.
|
69
|
+
attr_accessor :tag_weights
|
70
|
+
|
56
71
|
# Set use_weights to true to use the weights of the chunks in the result set in order to sort them. If not specified, this defaults to true.
|
57
72
|
attr_accessor :use_weights
|
58
73
|
|
@@ -64,7 +79,11 @@ module TrieveRubyClient
|
|
64
79
|
:'group_id' => :'group_id',
|
65
80
|
:'group_tracking_id' => :'group_tracking_id',
|
66
81
|
:'highlight_delimiters' => :'highlight_delimiters',
|
82
|
+
:'highlight_max_length' => :'highlight_max_length',
|
83
|
+
:'highlight_max_num' => :'highlight_max_num',
|
67
84
|
:'highlight_results' => :'highlight_results',
|
85
|
+
:'highlight_threshold' => :'highlight_threshold',
|
86
|
+
:'highlight_window' => :'highlight_window',
|
68
87
|
:'page' => :'page',
|
69
88
|
:'page_size' => :'page_size',
|
70
89
|
:'query' => :'query',
|
@@ -72,6 +91,7 @@ module TrieveRubyClient
|
|
72
91
|
:'score_threshold' => :'score_threshold',
|
73
92
|
:'search_type' => :'search_type',
|
74
93
|
:'slim_chunks' => :'slim_chunks',
|
94
|
+
:'tag_weights' => :'tag_weights',
|
75
95
|
:'use_weights' => :'use_weights'
|
76
96
|
}
|
77
97
|
end
|
@@ -89,7 +109,11 @@ module TrieveRubyClient
|
|
89
109
|
:'group_id' => :'String',
|
90
110
|
:'group_tracking_id' => :'String',
|
91
111
|
:'highlight_delimiters' => :'Array<String>',
|
112
|
+
:'highlight_max_length' => :'Integer',
|
113
|
+
:'highlight_max_num' => :'Integer',
|
92
114
|
:'highlight_results' => :'Boolean',
|
115
|
+
:'highlight_threshold' => :'Float',
|
116
|
+
:'highlight_window' => :'Integer',
|
93
117
|
:'page' => :'Integer',
|
94
118
|
:'page_size' => :'Integer',
|
95
119
|
:'query' => :'String',
|
@@ -97,6 +121,7 @@ module TrieveRubyClient
|
|
97
121
|
:'score_threshold' => :'Float',
|
98
122
|
:'search_type' => :'String',
|
99
123
|
:'slim_chunks' => :'Boolean',
|
124
|
+
:'tag_weights' => :'Hash<String, Float>',
|
100
125
|
:'use_weights' => :'Boolean'
|
101
126
|
}
|
102
127
|
end
|
@@ -109,12 +134,17 @@ module TrieveRubyClient
|
|
109
134
|
:'group_id',
|
110
135
|
:'group_tracking_id',
|
111
136
|
:'highlight_delimiters',
|
137
|
+
:'highlight_max_length',
|
138
|
+
:'highlight_max_num',
|
112
139
|
:'highlight_results',
|
140
|
+
:'highlight_threshold',
|
141
|
+
:'highlight_window',
|
113
142
|
:'page',
|
114
143
|
:'page_size',
|
115
144
|
:'recency_bias',
|
116
145
|
:'score_threshold',
|
117
146
|
:'slim_chunks',
|
147
|
+
:'tag_weights',
|
118
148
|
:'use_weights'
|
119
149
|
])
|
120
150
|
end
|
@@ -156,10 +186,26 @@ module TrieveRubyClient
|
|
156
186
|
end
|
157
187
|
end
|
158
188
|
|
189
|
+
if attributes.key?(:'highlight_max_length')
|
190
|
+
self.highlight_max_length = attributes[:'highlight_max_length']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'highlight_max_num')
|
194
|
+
self.highlight_max_num = attributes[:'highlight_max_num']
|
195
|
+
end
|
196
|
+
|
159
197
|
if attributes.key?(:'highlight_results')
|
160
198
|
self.highlight_results = attributes[:'highlight_results']
|
161
199
|
end
|
162
200
|
|
201
|
+
if attributes.key?(:'highlight_threshold')
|
202
|
+
self.highlight_threshold = attributes[:'highlight_threshold']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.key?(:'highlight_window')
|
206
|
+
self.highlight_window = attributes[:'highlight_window']
|
207
|
+
end
|
208
|
+
|
163
209
|
if attributes.key?(:'page')
|
164
210
|
self.page = attributes[:'page']
|
165
211
|
end
|
@@ -192,6 +238,12 @@ module TrieveRubyClient
|
|
192
238
|
self.slim_chunks = attributes[:'slim_chunks']
|
193
239
|
end
|
194
240
|
|
241
|
+
if attributes.key?(:'tag_weights')
|
242
|
+
if (value = attributes[:'tag_weights']).is_a?(Hash)
|
243
|
+
self.tag_weights = value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
195
247
|
if attributes.key?(:'use_weights')
|
196
248
|
self.use_weights = attributes[:'use_weights']
|
197
249
|
end
|
@@ -202,6 +254,18 @@ module TrieveRubyClient
|
|
202
254
|
def list_invalid_properties
|
203
255
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
204
256
|
invalid_properties = Array.new
|
257
|
+
if !@highlight_max_length.nil? && @highlight_max_length < 0
|
258
|
+
invalid_properties.push('invalid value for "highlight_max_length", must be greater than or equal to 0.')
|
259
|
+
end
|
260
|
+
|
261
|
+
if !@highlight_max_num.nil? && @highlight_max_num < 0
|
262
|
+
invalid_properties.push('invalid value for "highlight_max_num", must be greater than or equal to 0.')
|
263
|
+
end
|
264
|
+
|
265
|
+
if !@highlight_window.nil? && @highlight_window < 0
|
266
|
+
invalid_properties.push('invalid value for "highlight_window", must be greater than or equal to 0.')
|
267
|
+
end
|
268
|
+
|
205
269
|
if !@page.nil? && @page < 0
|
206
270
|
invalid_properties.push('invalid value for "page", must be greater than or equal to 0.')
|
207
271
|
end
|
@@ -225,6 +289,9 @@ module TrieveRubyClient
|
|
225
289
|
# @return true if the model is valid
|
226
290
|
def valid?
|
227
291
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
292
|
+
return false if !@highlight_max_length.nil? && @highlight_max_length < 0
|
293
|
+
return false if !@highlight_max_num.nil? && @highlight_max_num < 0
|
294
|
+
return false if !@highlight_window.nil? && @highlight_window < 0
|
228
295
|
return false if !@page.nil? && @page < 0
|
229
296
|
return false if !@page_size.nil? && @page_size < 0
|
230
297
|
return false if @query.nil?
|
@@ -232,6 +299,36 @@ module TrieveRubyClient
|
|
232
299
|
true
|
233
300
|
end
|
234
301
|
|
302
|
+
# Custom attribute writer method with validation
|
303
|
+
# @param [Object] highlight_max_length Value to be assigned
|
304
|
+
def highlight_max_length=(highlight_max_length)
|
305
|
+
if !highlight_max_length.nil? && highlight_max_length < 0
|
306
|
+
fail ArgumentError, 'invalid value for "highlight_max_length", must be greater than or equal to 0.'
|
307
|
+
end
|
308
|
+
|
309
|
+
@highlight_max_length = highlight_max_length
|
310
|
+
end
|
311
|
+
|
312
|
+
# Custom attribute writer method with validation
|
313
|
+
# @param [Object] highlight_max_num Value to be assigned
|
314
|
+
def highlight_max_num=(highlight_max_num)
|
315
|
+
if !highlight_max_num.nil? && highlight_max_num < 0
|
316
|
+
fail ArgumentError, 'invalid value for "highlight_max_num", must be greater than or equal to 0.'
|
317
|
+
end
|
318
|
+
|
319
|
+
@highlight_max_num = highlight_max_num
|
320
|
+
end
|
321
|
+
|
322
|
+
# Custom attribute writer method with validation
|
323
|
+
# @param [Object] highlight_window Value to be assigned
|
324
|
+
def highlight_window=(highlight_window)
|
325
|
+
if !highlight_window.nil? && highlight_window < 0
|
326
|
+
fail ArgumentError, 'invalid value for "highlight_window", must be greater than or equal to 0.'
|
327
|
+
end
|
328
|
+
|
329
|
+
@highlight_window = highlight_window
|
330
|
+
end
|
331
|
+
|
235
332
|
# Custom attribute writer method with validation
|
236
333
|
# @param [Object] page Value to be assigned
|
237
334
|
def page=(page)
|
@@ -262,7 +359,11 @@ module TrieveRubyClient
|
|
262
359
|
group_id == o.group_id &&
|
263
360
|
group_tracking_id == o.group_tracking_id &&
|
264
361
|
highlight_delimiters == o.highlight_delimiters &&
|
362
|
+
highlight_max_length == o.highlight_max_length &&
|
363
|
+
highlight_max_num == o.highlight_max_num &&
|
265
364
|
highlight_results == o.highlight_results &&
|
365
|
+
highlight_threshold == o.highlight_threshold &&
|
366
|
+
highlight_window == o.highlight_window &&
|
266
367
|
page == o.page &&
|
267
368
|
page_size == o.page_size &&
|
268
369
|
query == o.query &&
|
@@ -270,6 +371,7 @@ module TrieveRubyClient
|
|
270
371
|
score_threshold == o.score_threshold &&
|
271
372
|
search_type == o.search_type &&
|
272
373
|
slim_chunks == o.slim_chunks &&
|
374
|
+
tag_weights == o.tag_weights &&
|
273
375
|
use_weights == o.use_weights
|
274
376
|
end
|
275
377
|
|
@@ -282,7 +384,7 @@ module TrieveRubyClient
|
|
282
384
|
# Calculates hash code according to all attributes.
|
283
385
|
# @return [Integer] Hash code
|
284
386
|
def hash
|
285
|
-
[filters, get_total_pages, group_id, group_tracking_id, highlight_delimiters, highlight_results, page, page_size, query, recency_bias, score_threshold, search_type, slim_chunks, use_weights].hash
|
387
|
+
[filters, get_total_pages, group_id, group_tracking_id, highlight_delimiters, highlight_max_length, highlight_max_num, highlight_results, highlight_threshold, highlight_window, page, page_size, query, recency_bias, score_threshold, search_type, slim_chunks, tag_weights, use_weights].hash
|
286
388
|
end
|
287
389
|
|
288
390
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.10.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.10.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -15,16 +15,24 @@ require 'time'
|
|
15
15
|
|
16
16
|
module TrieveRubyClient
|
17
17
|
class SetUserApiKeyRequest
|
18
|
+
# The dataset ids which the api key will have access to. If not provided or empty, the api key will have access to all datasets the auth'ed user has access to. If both dataset_ids and organization_ids are provided, the api key will have access to the intersection of the datasets and organizations.
|
19
|
+
attr_accessor :dataset_ids
|
20
|
+
|
18
21
|
# The name which will be assigned to the new api key.
|
19
22
|
attr_accessor :name
|
20
23
|
|
24
|
+
# The organization ids which the api key will have access to. If not provided or empty, the api key will have access to all organizations the auth'ed user has access to.
|
25
|
+
attr_accessor :organization_ids
|
26
|
+
|
21
27
|
# The role which will be assigned to the new api key. Either 0 (read), 1 (read and write at the level of the currently auth'ed user). The auth'ed user must have a role greater than or equal to the role being assigned which means they must be an admin (1) or owner (2) of the organization to assign write permissions with a role of 1.
|
22
28
|
attr_accessor :role
|
23
29
|
|
24
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
31
|
def self.attribute_map
|
26
32
|
{
|
33
|
+
:'dataset_ids' => :'dataset_ids',
|
27
34
|
:'name' => :'name',
|
35
|
+
:'organization_ids' => :'organization_ids',
|
28
36
|
:'role' => :'role'
|
29
37
|
}
|
30
38
|
end
|
@@ -37,7 +45,9 @@ module TrieveRubyClient
|
|
37
45
|
# Attribute type mapping.
|
38
46
|
def self.openapi_types
|
39
47
|
{
|
48
|
+
:'dataset_ids' => :'Array<String>',
|
40
49
|
:'name' => :'String',
|
50
|
+
:'organization_ids' => :'Array<String>',
|
41
51
|
:'role' => :'Integer'
|
42
52
|
}
|
43
53
|
end
|
@@ -45,6 +55,8 @@ module TrieveRubyClient
|
|
45
55
|
# List of attributes with nullable: true
|
46
56
|
def self.openapi_nullable
|
47
57
|
Set.new([
|
58
|
+
:'dataset_ids',
|
59
|
+
:'organization_ids',
|
48
60
|
])
|
49
61
|
end
|
50
62
|
|
@@ -63,12 +75,24 @@ module TrieveRubyClient
|
|
63
75
|
h[k.to_sym] = v
|
64
76
|
}
|
65
77
|
|
78
|
+
if attributes.key?(:'dataset_ids')
|
79
|
+
if (value = attributes[:'dataset_ids']).is_a?(Array)
|
80
|
+
self.dataset_ids = value
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
66
84
|
if attributes.key?(:'name')
|
67
85
|
self.name = attributes[:'name']
|
68
86
|
else
|
69
87
|
self.name = nil
|
70
88
|
end
|
71
89
|
|
90
|
+
if attributes.key?(:'organization_ids')
|
91
|
+
if (value = attributes[:'organization_ids']).is_a?(Array)
|
92
|
+
self.organization_ids = value
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
72
96
|
if attributes.key?(:'role')
|
73
97
|
self.role = attributes[:'role']
|
74
98
|
else
|
@@ -106,7 +130,9 @@ module TrieveRubyClient
|
|
106
130
|
def ==(o)
|
107
131
|
return true if self.equal?(o)
|
108
132
|
self.class == o.class &&
|
133
|
+
dataset_ids == o.dataset_ids &&
|
109
134
|
name == o.name &&
|
135
|
+
organization_ids == o.organization_ids &&
|
110
136
|
role == o.role
|
111
137
|
end
|
112
138
|
|
@@ -119,7 +145,7 @@ module TrieveRubyClient
|
|
119
145
|
# Calculates hash code according to all attributes.
|
120
146
|
# @return [Integer] Hash code
|
121
147
|
def hash
|
122
|
-
[name, role].hash
|
148
|
+
[dataset_ids, name, organization_ids, role].hash
|
123
149
|
end
|
124
150
|
|
125
151
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.10.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.10.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.10.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -21,12 +21,16 @@ module TrieveRubyClient
|
|
21
21
|
|
22
22
|
attr_accessor :id
|
23
23
|
|
24
|
+
attr_accessor :image_urls
|
25
|
+
|
24
26
|
attr_accessor :link
|
25
27
|
|
26
28
|
attr_accessor :location
|
27
29
|
|
28
30
|
attr_accessor :metadata
|
29
31
|
|
32
|
+
attr_accessor :num_value
|
33
|
+
|
30
34
|
attr_accessor :qdrant_point_id
|
31
35
|
|
32
36
|
attr_accessor :tag_set
|
@@ -45,9 +49,11 @@ module TrieveRubyClient
|
|
45
49
|
:'created_at' => :'created_at',
|
46
50
|
:'dataset_id' => :'dataset_id',
|
47
51
|
:'id' => :'id',
|
52
|
+
:'image_urls' => :'image_urls',
|
48
53
|
:'link' => :'link',
|
49
54
|
:'location' => :'location',
|
50
55
|
:'metadata' => :'metadata',
|
56
|
+
:'num_value' => :'num_value',
|
51
57
|
:'qdrant_point_id' => :'qdrant_point_id',
|
52
58
|
:'tag_set' => :'tag_set',
|
53
59
|
:'time_stamp' => :'time_stamp',
|
@@ -68,9 +74,11 @@ module TrieveRubyClient
|
|
68
74
|
:'created_at' => :'Time',
|
69
75
|
:'dataset_id' => :'String',
|
70
76
|
:'id' => :'String',
|
77
|
+
:'image_urls' => :'Array<String>',
|
71
78
|
:'link' => :'String',
|
72
79
|
:'location' => :'GeoInfo',
|
73
80
|
:'metadata' => :'Object',
|
81
|
+
:'num_value' => :'Float',
|
74
82
|
:'qdrant_point_id' => :'String',
|
75
83
|
:'tag_set' => :'String',
|
76
84
|
:'time_stamp' => :'Time',
|
@@ -83,9 +91,11 @@ module TrieveRubyClient
|
|
83
91
|
# List of attributes with nullable: true
|
84
92
|
def self.openapi_nullable
|
85
93
|
Set.new([
|
94
|
+
:'image_urls',
|
86
95
|
:'link',
|
87
96
|
:'location',
|
88
97
|
:'metadata',
|
98
|
+
:'num_value',
|
89
99
|
:'qdrant_point_id',
|
90
100
|
:'tag_set',
|
91
101
|
:'time_stamp',
|
@@ -126,6 +136,12 @@ module TrieveRubyClient
|
|
126
136
|
self.id = nil
|
127
137
|
end
|
128
138
|
|
139
|
+
if attributes.key?(:'image_urls')
|
140
|
+
if (value = attributes[:'image_urls']).is_a?(Array)
|
141
|
+
self.image_urls = value
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
129
145
|
if attributes.key?(:'link')
|
130
146
|
self.link = attributes[:'link']
|
131
147
|
end
|
@@ -138,6 +154,10 @@ module TrieveRubyClient
|
|
138
154
|
self.metadata = attributes[:'metadata']
|
139
155
|
end
|
140
156
|
|
157
|
+
if attributes.key?(:'num_value')
|
158
|
+
self.num_value = attributes[:'num_value']
|
159
|
+
end
|
160
|
+
|
141
161
|
if attributes.key?(:'qdrant_point_id')
|
142
162
|
self.qdrant_point_id = attributes[:'qdrant_point_id']
|
143
163
|
end
|
@@ -215,9 +235,11 @@ module TrieveRubyClient
|
|
215
235
|
created_at == o.created_at &&
|
216
236
|
dataset_id == o.dataset_id &&
|
217
237
|
id == o.id &&
|
238
|
+
image_urls == o.image_urls &&
|
218
239
|
link == o.link &&
|
219
240
|
location == o.location &&
|
220
241
|
metadata == o.metadata &&
|
242
|
+
num_value == o.num_value &&
|
221
243
|
qdrant_point_id == o.qdrant_point_id &&
|
222
244
|
tag_set == o.tag_set &&
|
223
245
|
time_stamp == o.time_stamp &&
|
@@ -235,7 +257,7 @@ module TrieveRubyClient
|
|
235
257
|
# Calculates hash code according to all attributes.
|
236
258
|
# @return [Integer] Hash code
|
237
259
|
def hash
|
238
|
-
[created_at, dataset_id, id, link, location, metadata, qdrant_point_id, tag_set, time_stamp, tracking_id, updated_at, weight].hash
|
260
|
+
[created_at, dataset_id, id, image_urls, link, location, metadata, num_value, qdrant_point_id, tag_set, time_stamp, tracking_id, updated_at, weight].hash
|
239
261
|
end
|
240
262
|
|
241
263
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.10.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|