trieve_ruby_client 0.7.2 → 0.8.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 +4 -4
- data/README.md +15 -6
- data/docs/ChunkApi.md +158 -10
- data/docs/ChunkData.md +2 -0
- data/docs/ChunkMetadata.md +2 -0
- data/docs/CreateChunkGroupData.md +3 -1
- data/docs/CreateMessageData.md +0 -2
- data/docs/CreateTopicData.md +0 -2
- data/docs/EditMessageData.md +0 -2
- data/docs/FieldCondition.md +6 -0
- data/docs/GenerateChunksRequest.md +0 -2
- data/docs/GeoInfo.md +20 -0
- data/docs/GeoTypes.md +49 -0
- data/docs/GetChunksData.md +18 -0
- data/docs/GetTrackingChunksData.md +18 -0
- data/docs/LocationBoundingBox.md +20 -0
- data/docs/LocationPolygon.md +20 -0
- data/docs/LocationRadius.md +20 -0
- data/docs/OrganizationUsageCount.md +2 -0
- data/docs/RangeCondition.md +2 -0
- data/docs/RegenerateMessageData.md +0 -2
- data/docs/SearchChunkData.md +2 -0
- data/docs/SearchOverGroupsData.md +2 -0
- data/docs/SearchWithinGroupData.md +2 -0
- data/docs/SlimChunkMetadata.md +4 -0
- data/docs/UpdateChunkData.md +2 -0
- data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_api.rb +161 -11
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +1 -1
- data/lib/trieve_ruby_client/api/dataset_api.rb +1 -1
- data/lib/trieve_ruby_client/api/events_api.rb +1 -1
- data/lib/trieve_ruby_client/api/file_api.rb +1 -1
- data/lib/trieve_ruby_client/api/health_api.rb +1 -1
- data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
- data/lib/trieve_ruby_client/api/message_api.rb +1 -1
- data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
- data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
- data/lib/trieve_ruby_client/api/topic_api.rb +1 -1
- data/lib/trieve_ruby_client/api/user_api.rb +1 -1
- 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/auth_query.rb +1 -1
- 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/chat_message_proxy.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_data.rb +12 -2
- data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata.rb +12 -2
- data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +1 -1
- data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +17 -6
- data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/create_message_data.rb +2 -13
- data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_topic_data.rb +2 -13
- data/lib/trieve_ruby_client/models/dataset.rb +1 -1
- 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/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 +2 -13
- 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 +32 -2
- data/lib/trieve_ruby_client/models/file.rb +1 -1
- data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/generate_chunks_request.rb +2 -13
- data/lib/trieve_ruby_client/models/geo_info.rb +237 -0
- data/lib/trieve_ruby_client/models/geo_types.rb +105 -0
- data/lib/trieve_ruby_client/models/get_chunks_data.rb +223 -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 +223 -0
- 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/group_score_slim_chunks.rb +1 -1
- data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
- data/lib/trieve_ruby_client/models/location_bounding_box.rb +237 -0
- data/lib/trieve_ruby_client/models/location_polygon.rb +235 -0
- data/lib/trieve_ruby_client/models/location_radius.rb +237 -0
- data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/message.rb +1 -1
- data/lib/trieve_ruby_client/models/organization.rb +1 -1
- data/lib/trieve_ruby_client/models/organization_usage_count.rb +18 -2
- data/lib/trieve_ruby_client/models/range.rb +1 -1
- data/lib/trieve_ruby_client/models/range_condition.rb +2 -1
- 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 +2 -13
- data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
- data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +13 -2
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +13 -2
- data/lib/trieve_ruby_client/models/search_over_groups_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_slim_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_data.rb +13 -2
- data/lib/trieve_ruby_client/models/search_within_group_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_slim_results.rb +1 -1
- data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
- 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 +28 -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_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 +12 -2
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
- 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_user_org_role_data.rb +1 -1
- data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
- 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 +8 -1
- data/openapi-generator.yaml +1 -1
- data/openapi.json +431 -29
- data/spec/models/geo_info_spec.rb +42 -0
- data/spec/models/geo_types_spec.rb +32 -0
- data/spec/models/get_chunks_data_spec.rb +36 -0
- data/spec/models/get_tracking_chunks_data_spec.rb +36 -0
- data/spec/models/location_bounding_box_spec.rb +42 -0
- data/spec/models/location_polygon_spec.rb +42 -0
- data/spec/models/location_radius_spec.rb +42 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.7.2.gem +0 -0
- data/trieve_ruby_client-0.7.6.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +32 -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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -23,6 +23,9 @@ module TrieveRubyClient
|
|
23
23
|
# Set get_collisions to true to get the collisions for each chunk. This will only apply if environment variable COLLISIONS_ENABLED is set to true.
|
24
24
|
attr_accessor :get_collisions
|
25
25
|
|
26
|
+
# Get total page count for the query accounting for the applied filters. Defaults to true, but can be set to false to reduce latency in edge cases performance.
|
27
|
+
attr_accessor :get_total_pages
|
28
|
+
|
26
29
|
# Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to [\"?\", \",\", \".\", \"!\"].
|
27
30
|
attr_accessor :highlight_delimiters
|
28
31
|
|
@@ -56,6 +59,7 @@ module TrieveRubyClient
|
|
56
59
|
:'date_bias' => :'date_bias',
|
57
60
|
:'filters' => :'filters',
|
58
61
|
:'get_collisions' => :'get_collisions',
|
62
|
+
:'get_total_pages' => :'get_total_pages',
|
59
63
|
:'highlight_delimiters' => :'highlight_delimiters',
|
60
64
|
:'highlight_results' => :'highlight_results',
|
61
65
|
:'page' => :'page',
|
@@ -79,6 +83,7 @@ module TrieveRubyClient
|
|
79
83
|
:'date_bias' => :'Boolean',
|
80
84
|
:'filters' => :'ChunkFilter',
|
81
85
|
:'get_collisions' => :'Boolean',
|
86
|
+
:'get_total_pages' => :'Boolean',
|
82
87
|
:'highlight_delimiters' => :'Array<String>',
|
83
88
|
:'highlight_results' => :'Boolean',
|
84
89
|
:'page' => :'Integer',
|
@@ -97,6 +102,7 @@ module TrieveRubyClient
|
|
97
102
|
:'date_bias',
|
98
103
|
:'filters',
|
99
104
|
:'get_collisions',
|
105
|
+
:'get_total_pages',
|
100
106
|
:'highlight_delimiters',
|
101
107
|
:'highlight_results',
|
102
108
|
:'page',
|
@@ -134,6 +140,10 @@ module TrieveRubyClient
|
|
134
140
|
self.get_collisions = attributes[:'get_collisions']
|
135
141
|
end
|
136
142
|
|
143
|
+
if attributes.key?(:'get_total_pages')
|
144
|
+
self.get_total_pages = attributes[:'get_total_pages']
|
145
|
+
end
|
146
|
+
|
137
147
|
if attributes.key?(:'highlight_delimiters')
|
138
148
|
if (value = attributes[:'highlight_delimiters']).is_a?(Array)
|
139
149
|
self.highlight_delimiters = value
|
@@ -240,6 +250,7 @@ module TrieveRubyClient
|
|
240
250
|
date_bias == o.date_bias &&
|
241
251
|
filters == o.filters &&
|
242
252
|
get_collisions == o.get_collisions &&
|
253
|
+
get_total_pages == o.get_total_pages &&
|
243
254
|
highlight_delimiters == o.highlight_delimiters &&
|
244
255
|
highlight_results == o.highlight_results &&
|
245
256
|
page == o.page &&
|
@@ -260,7 +271,7 @@ module TrieveRubyClient
|
|
260
271
|
# Calculates hash code according to all attributes.
|
261
272
|
# @return [Integer] Hash code
|
262
273
|
def hash
|
263
|
-
[date_bias, filters, get_collisions, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks, use_weights].hash
|
274
|
+
[date_bias, filters, get_collisions, get_total_pages, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks, use_weights].hash
|
264
275
|
end
|
265
276
|
|
266
277
|
# 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.8.0
|
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.8.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -20,6 +20,9 @@ module TrieveRubyClient
|
|
20
20
|
# Set get_collisions to true to get the collisions for each chunk. This will only apply if environment variable COLLISIONS_ENABLED is set to true.
|
21
21
|
attr_accessor :get_collisions
|
22
22
|
|
23
|
+
# Get total page count for the query accounting for the applied filters. Defaults to true, but can be set to false to reduce latency in edge cases performance.
|
24
|
+
attr_accessor :get_total_pages
|
25
|
+
|
23
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.
|
24
27
|
attr_accessor :group_size
|
25
28
|
|
@@ -52,6 +55,7 @@ module TrieveRubyClient
|
|
52
55
|
{
|
53
56
|
:'filters' => :'filters',
|
54
57
|
:'get_collisions' => :'get_collisions',
|
58
|
+
:'get_total_pages' => :'get_total_pages',
|
55
59
|
:'group_size' => :'group_size',
|
56
60
|
:'highlight_delimiters' => :'highlight_delimiters',
|
57
61
|
:'highlight_results' => :'highlight_results',
|
@@ -74,6 +78,7 @@ module TrieveRubyClient
|
|
74
78
|
{
|
75
79
|
:'filters' => :'ChunkFilter',
|
76
80
|
:'get_collisions' => :'Boolean',
|
81
|
+
:'get_total_pages' => :'Boolean',
|
77
82
|
:'group_size' => :'Integer',
|
78
83
|
:'highlight_delimiters' => :'Array<String>',
|
79
84
|
:'highlight_results' => :'Boolean',
|
@@ -91,6 +96,7 @@ module TrieveRubyClient
|
|
91
96
|
Set.new([
|
92
97
|
:'filters',
|
93
98
|
:'get_collisions',
|
99
|
+
:'get_total_pages',
|
94
100
|
:'group_size',
|
95
101
|
:'highlight_delimiters',
|
96
102
|
:'highlight_results',
|
@@ -124,6 +130,10 @@ module TrieveRubyClient
|
|
124
130
|
self.get_collisions = attributes[:'get_collisions']
|
125
131
|
end
|
126
132
|
|
133
|
+
if attributes.key?(:'get_total_pages')
|
134
|
+
self.get_total_pages = attributes[:'get_total_pages']
|
135
|
+
end
|
136
|
+
|
127
137
|
if attributes.key?(:'group_size')
|
128
138
|
self.group_size = attributes[:'group_size']
|
129
139
|
end
|
@@ -244,6 +254,7 @@ module TrieveRubyClient
|
|
244
254
|
self.class == o.class &&
|
245
255
|
filters == o.filters &&
|
246
256
|
get_collisions == o.get_collisions &&
|
257
|
+
get_total_pages == o.get_total_pages &&
|
247
258
|
group_size == o.group_size &&
|
248
259
|
highlight_delimiters == o.highlight_delimiters &&
|
249
260
|
highlight_results == o.highlight_results &&
|
@@ -264,7 +275,7 @@ module TrieveRubyClient
|
|
264
275
|
# Calculates hash code according to all attributes.
|
265
276
|
# @return [Integer] Hash code
|
266
277
|
def hash
|
267
|
-
[filters, get_collisions, group_size, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks].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
|
268
279
|
end
|
269
280
|
|
270
281
|
# 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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -20,6 +20,9 @@ module TrieveRubyClient
|
|
20
20
|
|
21
21
|
attr_accessor :filters
|
22
22
|
|
23
|
+
# Get total page count for the query accounting for the applied filters. Defaults to true, but can be set to false to reduce latency in edge cases performance.
|
24
|
+
attr_accessor :get_total_pages
|
25
|
+
|
23
26
|
# Group specifies the group to search within. Results will only consist of chunks which are bookmarks within the specified group.
|
24
27
|
attr_accessor :group_id
|
25
28
|
|
@@ -58,6 +61,7 @@ module TrieveRubyClient
|
|
58
61
|
{
|
59
62
|
:'date_bias' => :'date_bias',
|
60
63
|
:'filters' => :'filters',
|
64
|
+
:'get_total_pages' => :'get_total_pages',
|
61
65
|
:'group_id' => :'group_id',
|
62
66
|
:'group_tracking_id' => :'group_tracking_id',
|
63
67
|
:'highlight_delimiters' => :'highlight_delimiters',
|
@@ -82,6 +86,7 @@ module TrieveRubyClient
|
|
82
86
|
{
|
83
87
|
:'date_bias' => :'Boolean',
|
84
88
|
:'filters' => :'ChunkFilter',
|
89
|
+
:'get_total_pages' => :'Boolean',
|
85
90
|
:'group_id' => :'String',
|
86
91
|
:'group_tracking_id' => :'String',
|
87
92
|
:'highlight_delimiters' => :'Array<String>',
|
@@ -101,6 +106,7 @@ module TrieveRubyClient
|
|
101
106
|
Set.new([
|
102
107
|
:'date_bias',
|
103
108
|
:'filters',
|
109
|
+
:'get_total_pages',
|
104
110
|
:'group_id',
|
105
111
|
:'group_tracking_id',
|
106
112
|
:'highlight_delimiters',
|
@@ -136,6 +142,10 @@ module TrieveRubyClient
|
|
136
142
|
self.filters = attributes[:'filters']
|
137
143
|
end
|
138
144
|
|
145
|
+
if attributes.key?(:'get_total_pages')
|
146
|
+
self.get_total_pages = attributes[:'get_total_pages']
|
147
|
+
end
|
148
|
+
|
139
149
|
if attributes.key?(:'group_id')
|
140
150
|
self.group_id = attributes[:'group_id']
|
141
151
|
end
|
@@ -249,6 +259,7 @@ module TrieveRubyClient
|
|
249
259
|
self.class == o.class &&
|
250
260
|
date_bias == o.date_bias &&
|
251
261
|
filters == o.filters &&
|
262
|
+
get_total_pages == o.get_total_pages &&
|
252
263
|
group_id == o.group_id &&
|
253
264
|
group_tracking_id == o.group_tracking_id &&
|
254
265
|
highlight_delimiters == o.highlight_delimiters &&
|
@@ -271,7 +282,7 @@ module TrieveRubyClient
|
|
271
282
|
# Calculates hash code according to all attributes.
|
272
283
|
# @return [Integer] Hash code
|
273
284
|
def hash
|
274
|
-
[date_bias, filters, group_id, group_tracking_id, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks, use_weights].hash
|
285
|
+
[date_bias, filters, get_total_pages, group_id, group_tracking_id, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks, use_weights].hash
|
275
286
|
end
|
276
287
|
|
277
288
|
# 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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -17,10 +17,14 @@ module TrieveRubyClient
|
|
17
17
|
class SlimChunkMetadata
|
18
18
|
attr_accessor :created_at
|
19
19
|
|
20
|
+
attr_accessor :dataset_id
|
21
|
+
|
20
22
|
attr_accessor :id
|
21
23
|
|
22
24
|
attr_accessor :link
|
23
25
|
|
26
|
+
attr_accessor :location
|
27
|
+
|
24
28
|
attr_accessor :metadata
|
25
29
|
|
26
30
|
attr_accessor :qdrant_point_id
|
@@ -39,8 +43,10 @@ module TrieveRubyClient
|
|
39
43
|
def self.attribute_map
|
40
44
|
{
|
41
45
|
:'created_at' => :'created_at',
|
46
|
+
:'dataset_id' => :'dataset_id',
|
42
47
|
:'id' => :'id',
|
43
48
|
:'link' => :'link',
|
49
|
+
:'location' => :'location',
|
44
50
|
:'metadata' => :'metadata',
|
45
51
|
:'qdrant_point_id' => :'qdrant_point_id',
|
46
52
|
:'tag_set' => :'tag_set',
|
@@ -60,8 +66,10 @@ module TrieveRubyClient
|
|
60
66
|
def self.openapi_types
|
61
67
|
{
|
62
68
|
:'created_at' => :'Time',
|
69
|
+
:'dataset_id' => :'String',
|
63
70
|
:'id' => :'String',
|
64
71
|
:'link' => :'String',
|
72
|
+
:'location' => :'GeoInfo',
|
65
73
|
:'metadata' => :'Object',
|
66
74
|
:'qdrant_point_id' => :'String',
|
67
75
|
:'tag_set' => :'String',
|
@@ -76,6 +84,7 @@ module TrieveRubyClient
|
|
76
84
|
def self.openapi_nullable
|
77
85
|
Set.new([
|
78
86
|
:'link',
|
87
|
+
:'location',
|
79
88
|
:'metadata',
|
80
89
|
:'qdrant_point_id',
|
81
90
|
:'tag_set',
|
@@ -105,6 +114,12 @@ module TrieveRubyClient
|
|
105
114
|
self.created_at = nil
|
106
115
|
end
|
107
116
|
|
117
|
+
if attributes.key?(:'dataset_id')
|
118
|
+
self.dataset_id = attributes[:'dataset_id']
|
119
|
+
else
|
120
|
+
self.dataset_id = nil
|
121
|
+
end
|
122
|
+
|
108
123
|
if attributes.key?(:'id')
|
109
124
|
self.id = attributes[:'id']
|
110
125
|
else
|
@@ -115,6 +130,10 @@ module TrieveRubyClient
|
|
115
130
|
self.link = attributes[:'link']
|
116
131
|
end
|
117
132
|
|
133
|
+
if attributes.key?(:'location')
|
134
|
+
self.location = attributes[:'location']
|
135
|
+
end
|
136
|
+
|
118
137
|
if attributes.key?(:'metadata')
|
119
138
|
self.metadata = attributes[:'metadata']
|
120
139
|
end
|
@@ -157,6 +176,10 @@ module TrieveRubyClient
|
|
157
176
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
158
177
|
end
|
159
178
|
|
179
|
+
if @dataset_id.nil?
|
180
|
+
invalid_properties.push('invalid value for "dataset_id", dataset_id cannot be nil.')
|
181
|
+
end
|
182
|
+
|
160
183
|
if @id.nil?
|
161
184
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
162
185
|
end
|
@@ -177,6 +200,7 @@ module TrieveRubyClient
|
|
177
200
|
def valid?
|
178
201
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
179
202
|
return false if @created_at.nil?
|
203
|
+
return false if @dataset_id.nil?
|
180
204
|
return false if @id.nil?
|
181
205
|
return false if @updated_at.nil?
|
182
206
|
return false if @weight.nil?
|
@@ -189,8 +213,10 @@ module TrieveRubyClient
|
|
189
213
|
return true if self.equal?(o)
|
190
214
|
self.class == o.class &&
|
191
215
|
created_at == o.created_at &&
|
216
|
+
dataset_id == o.dataset_id &&
|
192
217
|
id == o.id &&
|
193
218
|
link == o.link &&
|
219
|
+
location == o.location &&
|
194
220
|
metadata == o.metadata &&
|
195
221
|
qdrant_point_id == o.qdrant_point_id &&
|
196
222
|
tag_set == o.tag_set &&
|
@@ -209,7 +235,7 @@ module TrieveRubyClient
|
|
209
235
|
# Calculates hash code according to all attributes.
|
210
236
|
# @return [Integer] Hash code
|
211
237
|
def hash
|
212
|
-
[created_at, id, link, metadata, qdrant_point_id, tag_set, time_stamp, tracking_id, updated_at, weight].hash
|
238
|
+
[created_at, dataset_id, id, link, location, metadata, qdrant_point_id, tag_set, time_stamp, tracking_id, updated_at, weight].hash
|
213
239
|
end
|
214
240
|
|
215
241
|
# 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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -33,6 +33,8 @@ module TrieveRubyClient
|
|
33
33
|
# Link of the chunk you want to update. This can also be any string. Frequently, this is a link to the source of the chunk. The link value will not affect the embedding creation. If no link is provided, the existing link will be used.
|
34
34
|
attr_accessor :link
|
35
35
|
|
36
|
+
attr_accessor :location
|
37
|
+
|
36
38
|
# The metadata is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata. If no metadata is provided, the existing metadata will be used.
|
37
39
|
attr_accessor :metadata
|
38
40
|
|
@@ -57,6 +59,7 @@ module TrieveRubyClient
|
|
57
59
|
:'group_ids' => :'group_ids',
|
58
60
|
:'group_tracking_ids' => :'group_tracking_ids',
|
59
61
|
:'link' => :'link',
|
62
|
+
:'location' => :'location',
|
60
63
|
:'metadata' => :'metadata',
|
61
64
|
:'tag_set' => :'tag_set',
|
62
65
|
:'time_stamp' => :'time_stamp',
|
@@ -79,6 +82,7 @@ module TrieveRubyClient
|
|
79
82
|
:'group_ids' => :'Array<String>',
|
80
83
|
:'group_tracking_ids' => :'Array<String>',
|
81
84
|
:'link' => :'String',
|
85
|
+
:'location' => :'GeoInfo',
|
82
86
|
:'metadata' => :'Object',
|
83
87
|
:'tag_set' => :'Array<String>',
|
84
88
|
:'time_stamp' => :'String',
|
@@ -96,6 +100,7 @@ module TrieveRubyClient
|
|
96
100
|
:'group_ids',
|
97
101
|
:'group_tracking_ids',
|
98
102
|
:'link',
|
103
|
+
:'location',
|
99
104
|
:'metadata',
|
100
105
|
:'tag_set',
|
101
106
|
:'time_stamp',
|
@@ -147,6 +152,10 @@ module TrieveRubyClient
|
|
147
152
|
self.link = attributes[:'link']
|
148
153
|
end
|
149
154
|
|
155
|
+
if attributes.key?(:'location')
|
156
|
+
self.location = attributes[:'location']
|
157
|
+
end
|
158
|
+
|
150
159
|
if attributes.key?(:'metadata')
|
151
160
|
self.metadata = attributes[:'metadata']
|
152
161
|
end
|
@@ -196,6 +205,7 @@ module TrieveRubyClient
|
|
196
205
|
group_ids == o.group_ids &&
|
197
206
|
group_tracking_ids == o.group_tracking_ids &&
|
198
207
|
link == o.link &&
|
208
|
+
location == o.location &&
|
199
209
|
metadata == o.metadata &&
|
200
210
|
tag_set == o.tag_set &&
|
201
211
|
time_stamp == o.time_stamp &&
|
@@ -212,7 +222,7 @@ module TrieveRubyClient
|
|
212
222
|
# Calculates hash code according to all attributes.
|
213
223
|
# @return [Integer] Hash code
|
214
224
|
def hash
|
215
|
-
[chunk_html, chunk_id, convert_html_to_text, group_ids, group_tracking_ids, link, metadata, tag_set, time_stamp, tracking_id, weight].hash
|
225
|
+
[chunk_html, chunk_id, convert_html_to_text, group_ids, group_tracking_ids, link, location, metadata, tag_set, time_stamp, tracking_id, weight].hash
|
216
226
|
end
|
217
227
|
|
218
228
|
# 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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
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.8.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|