trieve_ruby_client 0.5.7 → 0.6.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 +6 -6
- data/docs/AddChunkToGroupData.md +4 -2
- data/docs/AuthApi.md +12 -6
- data/docs/ChunkGroup.md +4 -0
- data/docs/ChunkGroupApi.md +13 -13
- data/docs/CreateChunkGroupData.md +4 -0
- data/docs/DatasetApi.md +6 -6
- data/docs/EventsApi.md +1 -1
- data/docs/FileApi.md +2 -2
- data/docs/RecommendChunksRequest.md +3 -1
- data/docs/RecommendGroupChunksRequest.md +34 -0
- data/docs/SearchChunkData.md +1 -3
- data/docs/SearchOverGroupsData.md +3 -5
- data/docs/SearchWithinGroupData.md +1 -3
- data/docs/UpdateChunkGroupData.md +4 -0
- data/docs/UpdateGroupByTrackingIDData.md +4 -0
- data/lib/trieve_ruby_client/api/auth_api.rb +13 -11
- data/lib/trieve_ruby_client/api/chunk_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +18 -18
- data/lib/trieve_ruby_client/api/dataset_api.rb +10 -10
- data/lib/trieve_ruby_client/api/events_api.rb +3 -3
- data/lib/trieve_ruby_client/api/file_api.rb +5 -5
- 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 +17 -12
- 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 +1 -1
- data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group.rb +22 -2
- data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.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 +26 -2
- data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
- 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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/group_slim_chunks_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
- 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 +1 -1
- data/lib/trieve_ruby_client/models/range.rb +1 -1
- data/lib/trieve_ruby_client/models/range_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +17 -6
- data/lib/trieve_ruby_client/models/recommend_chunks_response_types.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_group_chunk_response_types.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +341 -0
- data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
- 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 +3 -14
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_response_types.rb +1 -1
- data/lib/trieve_ruby_client/models/search_group_slim_chunks_result.rb +1 -1
- data/lib/trieve_ruby_client/models/search_groups_result.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +5 -15
- data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_response_types.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_slim_chunks_response_body.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 +3 -14
- data/lib/trieve_ruby_client/models/search_within_group_response_types.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 +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 +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +26 -2
- 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 +26 -2
- 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_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 +2 -2
- data/openapi-generator.yaml +1 -1
- data/openapi.json +176 -177
- data/spec/models/recommend_group_chunks_request_spec.rb +84 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.5.7.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +7 -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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -32,7 +32,7 @@ module TrieveRubyClient
|
|
32
32
|
# Set highlight_results to true to highlight the results. If not specified, this defaults to true.
|
33
33
|
attr_accessor :highlight_results
|
34
34
|
|
35
|
-
# The page of chunks to fetch.
|
35
|
+
# The page of chunks to fetch. Page is 1-indexed.
|
36
36
|
attr_accessor :page
|
37
37
|
|
38
38
|
# The page size is the number of chunks to fetch. This can be used to fetch more than 10 chunks at a time.
|
@@ -41,9 +41,6 @@ module TrieveRubyClient
|
|
41
41
|
# The query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set.
|
42
42
|
attr_accessor :query
|
43
43
|
|
44
|
-
# Turn on quote words and negated words to search for exact phrases and exclude words from the search results. Default is false.
|
45
|
-
attr_accessor :quote_negated_words
|
46
|
-
|
47
44
|
# Set score_threshold to a float to filter out chunks with a score below the threshold.
|
48
45
|
attr_accessor :score_threshold
|
49
46
|
|
@@ -68,7 +65,6 @@ module TrieveRubyClient
|
|
68
65
|
:'page' => :'page',
|
69
66
|
:'page_size' => :'page_size',
|
70
67
|
:'query' => :'query',
|
71
|
-
:'quote_negated_words' => :'quote_negated_words',
|
72
68
|
:'score_threshold' => :'score_threshold',
|
73
69
|
:'search_type' => :'search_type',
|
74
70
|
:'slim_chunks' => :'slim_chunks',
|
@@ -93,7 +89,6 @@ module TrieveRubyClient
|
|
93
89
|
:'page' => :'Integer',
|
94
90
|
:'page_size' => :'Integer',
|
95
91
|
:'query' => :'String',
|
96
|
-
:'quote_negated_words' => :'Boolean',
|
97
92
|
:'score_threshold' => :'Float',
|
98
93
|
:'search_type' => :'String',
|
99
94
|
:'slim_chunks' => :'Boolean',
|
@@ -112,7 +107,6 @@ module TrieveRubyClient
|
|
112
107
|
:'highlight_results',
|
113
108
|
:'page',
|
114
109
|
:'page_size',
|
115
|
-
:'quote_negated_words',
|
116
110
|
:'score_threshold',
|
117
111
|
:'slim_chunks',
|
118
112
|
:'use_weights'
|
@@ -174,10 +168,6 @@ module TrieveRubyClient
|
|
174
168
|
self.query = nil
|
175
169
|
end
|
176
170
|
|
177
|
-
if attributes.key?(:'quote_negated_words')
|
178
|
-
self.quote_negated_words = attributes[:'quote_negated_words']
|
179
|
-
end
|
180
|
-
|
181
171
|
if attributes.key?(:'score_threshold')
|
182
172
|
self.score_threshold = attributes[:'score_threshold']
|
183
173
|
end
|
@@ -266,7 +256,6 @@ module TrieveRubyClient
|
|
266
256
|
page == o.page &&
|
267
257
|
page_size == o.page_size &&
|
268
258
|
query == o.query &&
|
269
|
-
quote_negated_words == o.quote_negated_words &&
|
270
259
|
score_threshold == o.score_threshold &&
|
271
260
|
search_type == o.search_type &&
|
272
261
|
slim_chunks == o.slim_chunks &&
|
@@ -282,7 +271,7 @@ module TrieveRubyClient
|
|
282
271
|
# Calculates hash code according to all attributes.
|
283
272
|
# @return [Integer] Hash code
|
284
273
|
def hash
|
285
|
-
[date_bias, filters, group_id, group_tracking_id, highlight_delimiters, highlight_results, page, page_size, query,
|
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
|
286
275
|
end
|
287
276
|
|
288
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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -21,9 +21,15 @@ module TrieveRubyClient
|
|
21
21
|
# Id of the chunk_group to update.
|
22
22
|
attr_accessor :group_id
|
23
23
|
|
24
|
+
# Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group.
|
25
|
+
attr_accessor :metadata
|
26
|
+
|
24
27
|
# Name to assign to the chunk_group. Does not need to be unique. If not provided, the name will not be updated.
|
25
28
|
attr_accessor :name
|
26
29
|
|
30
|
+
# Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group.
|
31
|
+
attr_accessor :tag_set
|
32
|
+
|
27
33
|
# Tracking Id of the chunk_group to update.
|
28
34
|
attr_accessor :tracking_id
|
29
35
|
|
@@ -32,7 +38,9 @@ module TrieveRubyClient
|
|
32
38
|
{
|
33
39
|
:'description' => :'description',
|
34
40
|
:'group_id' => :'group_id',
|
41
|
+
:'metadata' => :'metadata',
|
35
42
|
:'name' => :'name',
|
43
|
+
:'tag_set' => :'tag_set',
|
36
44
|
:'tracking_id' => :'tracking_id'
|
37
45
|
}
|
38
46
|
end
|
@@ -47,7 +55,9 @@ module TrieveRubyClient
|
|
47
55
|
{
|
48
56
|
:'description' => :'String',
|
49
57
|
:'group_id' => :'String',
|
58
|
+
:'metadata' => :'Object',
|
50
59
|
:'name' => :'String',
|
60
|
+
:'tag_set' => :'Array<String>',
|
51
61
|
:'tracking_id' => :'String'
|
52
62
|
}
|
53
63
|
end
|
@@ -57,7 +67,9 @@ module TrieveRubyClient
|
|
57
67
|
Set.new([
|
58
68
|
:'description',
|
59
69
|
:'group_id',
|
70
|
+
:'metadata',
|
60
71
|
:'name',
|
72
|
+
:'tag_set',
|
61
73
|
:'tracking_id'
|
62
74
|
])
|
63
75
|
end
|
@@ -85,10 +97,20 @@ module TrieveRubyClient
|
|
85
97
|
self.group_id = attributes[:'group_id']
|
86
98
|
end
|
87
99
|
|
100
|
+
if attributes.key?(:'metadata')
|
101
|
+
self.metadata = attributes[:'metadata']
|
102
|
+
end
|
103
|
+
|
88
104
|
if attributes.key?(:'name')
|
89
105
|
self.name = attributes[:'name']
|
90
106
|
end
|
91
107
|
|
108
|
+
if attributes.key?(:'tag_set')
|
109
|
+
if (value = attributes[:'tag_set']).is_a?(Array)
|
110
|
+
self.tag_set = value
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
92
114
|
if attributes.key?(:'tracking_id')
|
93
115
|
self.tracking_id = attributes[:'tracking_id']
|
94
116
|
end
|
@@ -116,7 +138,9 @@ module TrieveRubyClient
|
|
116
138
|
self.class == o.class &&
|
117
139
|
description == o.description &&
|
118
140
|
group_id == o.group_id &&
|
141
|
+
metadata == o.metadata &&
|
119
142
|
name == o.name &&
|
143
|
+
tag_set == o.tag_set &&
|
120
144
|
tracking_id == o.tracking_id
|
121
145
|
end
|
122
146
|
|
@@ -129,7 +153,7 @@ module TrieveRubyClient
|
|
129
153
|
# Calculates hash code according to all attributes.
|
130
154
|
# @return [Integer] Hash code
|
131
155
|
def hash
|
132
|
-
[description, group_id, name, tracking_id].hash
|
156
|
+
[description, group_id, metadata, name, tag_set, tracking_id].hash
|
133
157
|
end
|
134
158
|
|
135
159
|
# 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.6.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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -18,9 +18,15 @@ module TrieveRubyClient
|
|
18
18
|
# Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for. If not provided, the description will not be updated.
|
19
19
|
attr_accessor :description
|
20
20
|
|
21
|
+
# Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group.
|
22
|
+
attr_accessor :metadata
|
23
|
+
|
21
24
|
# Name to assign to the chunk_group. Does not need to be unique. If not provided, the name will not be updated.
|
22
25
|
attr_accessor :name
|
23
26
|
|
27
|
+
# Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group.
|
28
|
+
attr_accessor :tag_set
|
29
|
+
|
24
30
|
# Tracking Id of the chunk_group to update.
|
25
31
|
attr_accessor :tracking_id
|
26
32
|
|
@@ -28,7 +34,9 @@ module TrieveRubyClient
|
|
28
34
|
def self.attribute_map
|
29
35
|
{
|
30
36
|
:'description' => :'description',
|
37
|
+
:'metadata' => :'metadata',
|
31
38
|
:'name' => :'name',
|
39
|
+
:'tag_set' => :'tag_set',
|
32
40
|
:'tracking_id' => :'tracking_id'
|
33
41
|
}
|
34
42
|
end
|
@@ -42,7 +50,9 @@ module TrieveRubyClient
|
|
42
50
|
def self.openapi_types
|
43
51
|
{
|
44
52
|
:'description' => :'String',
|
53
|
+
:'metadata' => :'Object',
|
45
54
|
:'name' => :'String',
|
55
|
+
:'tag_set' => :'Array<String>',
|
46
56
|
:'tracking_id' => :'String'
|
47
57
|
}
|
48
58
|
end
|
@@ -51,7 +61,9 @@ module TrieveRubyClient
|
|
51
61
|
def self.openapi_nullable
|
52
62
|
Set.new([
|
53
63
|
:'description',
|
64
|
+
:'metadata',
|
54
65
|
:'name',
|
66
|
+
:'tag_set',
|
55
67
|
])
|
56
68
|
end
|
57
69
|
|
@@ -74,10 +86,20 @@ module TrieveRubyClient
|
|
74
86
|
self.description = attributes[:'description']
|
75
87
|
end
|
76
88
|
|
89
|
+
if attributes.key?(:'metadata')
|
90
|
+
self.metadata = attributes[:'metadata']
|
91
|
+
end
|
92
|
+
|
77
93
|
if attributes.key?(:'name')
|
78
94
|
self.name = attributes[:'name']
|
79
95
|
end
|
80
96
|
|
97
|
+
if attributes.key?(:'tag_set')
|
98
|
+
if (value = attributes[:'tag_set']).is_a?(Array)
|
99
|
+
self.tag_set = value
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
81
103
|
if attributes.key?(:'tracking_id')
|
82
104
|
self.tracking_id = attributes[:'tracking_id']
|
83
105
|
else
|
@@ -111,7 +133,9 @@ module TrieveRubyClient
|
|
111
133
|
return true if self.equal?(o)
|
112
134
|
self.class == o.class &&
|
113
135
|
description == o.description &&
|
136
|
+
metadata == o.metadata &&
|
114
137
|
name == o.name &&
|
138
|
+
tag_set == o.tag_set &&
|
115
139
|
tracking_id == o.tracking_id
|
116
140
|
end
|
117
141
|
|
@@ -124,7 +148,7 @@ module TrieveRubyClient
|
|
124
148
|
# Calculates hash code according to all attributes.
|
125
149
|
# @return [Integer] Hash code
|
126
150
|
def hash
|
127
|
-
[description, name, tracking_id].hash
|
151
|
+
[description, metadata, name, tag_set, tracking_id].hash
|
128
152
|
end
|
129
153
|
|
130
154
|
# 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.6.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.6.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.6.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.6.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.6.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.6.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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -11,5 +11,5 @@ Generator version: 7.4.0
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module TrieveRubyClient
|
14
|
-
VERSION = '0.
|
14
|
+
VERSION = '0.6.0'
|
15
15
|
end
|
data/lib/trieve_ruby_client.rb
CHANGED
@@ -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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -63,10 +63,10 @@ require 'trieve_ruby_client/models/organization'
|
|
63
63
|
require 'trieve_ruby_client/models/organization_usage_count'
|
64
64
|
require 'trieve_ruby_client/models/range'
|
65
65
|
require 'trieve_ruby_client/models/range_condition'
|
66
|
-
require 'trieve_ruby_client/models/reccomend_group_chunks_request'
|
67
66
|
require 'trieve_ruby_client/models/recommend_chunks_request'
|
68
67
|
require 'trieve_ruby_client/models/recommend_chunks_response_types'
|
69
68
|
require 'trieve_ruby_client/models/recommend_group_chunk_response_types'
|
69
|
+
require 'trieve_ruby_client/models/recommend_group_chunks_request'
|
70
70
|
require 'trieve_ruby_client/models/regenerate_message_data'
|
71
71
|
require 'trieve_ruby_client/models/return_queued_chunk'
|
72
72
|
require 'trieve_ruby_client/models/score_chunk_dto'
|
data/openapi-generator.yaml
CHANGED