trieve_ruby_client 0.6.2 → 0.6.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 +5 -5
- data/docs/ChunkApi.md +1 -1
- data/docs/ChunkData.md +2 -0
- data/docs/FileApi.md +1 -1
- data/docs/GroupScoreChunk.md +2 -0
- data/docs/UpdateChunkByTrackingIdData.md +2 -0
- data/docs/UpdateChunkData.md +2 -0
- data/docs/UploadFileData.md +2 -2
- data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_api.rb +3 -3
- 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 +13 -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 +1 -1
- 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 +1 -1
- 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.rb +12 -2
- 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/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 +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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +13 -2
- data/lib/trieve_ruby_client/models/update_chunk_data.rb +13 -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_data.rb +1 -1
- data/lib/trieve_ruby_client/models/upload_file_data.rb +13 -19
- 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 +1 -1
- data/openapi-generator.yaml +1 -1
- data/openapi.json +27 -8
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.6.2.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +3 -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.
|
6
|
+
The version of the OpenAPI document: 0.6.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -21,6 +21,9 @@ module TrieveRubyClient
|
|
21
21
|
# Id of the chunk you want to update. You can provide either the chunk_id or the tracking_id. If both are provided, the chunk_id will be used.
|
22
22
|
attr_accessor :chunk_id
|
23
23
|
|
24
|
+
# Convert HTML to raw text before processing to avoid adding noise to the vector embeddings. By default this is true. If you are using HTML content that you want to be included in the vector embeddings, set this to false.
|
25
|
+
attr_accessor :convert_html_to_text
|
26
|
+
|
24
27
|
# Group ids are the ids of the groups that the chunk should be placed into. This is useful for when you want to update a chunk and add it to a group or multiple groups in one request.
|
25
28
|
attr_accessor :group_ids
|
26
29
|
|
@@ -50,6 +53,7 @@ module TrieveRubyClient
|
|
50
53
|
{
|
51
54
|
:'chunk_html' => :'chunk_html',
|
52
55
|
:'chunk_id' => :'chunk_id',
|
56
|
+
:'convert_html_to_text' => :'convert_html_to_text',
|
53
57
|
:'group_ids' => :'group_ids',
|
54
58
|
:'group_tracking_ids' => :'group_tracking_ids',
|
55
59
|
:'link' => :'link',
|
@@ -71,6 +75,7 @@ module TrieveRubyClient
|
|
71
75
|
{
|
72
76
|
:'chunk_html' => :'String',
|
73
77
|
:'chunk_id' => :'String',
|
78
|
+
:'convert_html_to_text' => :'Boolean',
|
74
79
|
:'group_ids' => :'Array<String>',
|
75
80
|
:'group_tracking_ids' => :'Array<String>',
|
76
81
|
:'link' => :'String',
|
@@ -87,6 +92,7 @@ module TrieveRubyClient
|
|
87
92
|
Set.new([
|
88
93
|
:'chunk_html',
|
89
94
|
:'chunk_id',
|
95
|
+
:'convert_html_to_text',
|
90
96
|
:'group_ids',
|
91
97
|
:'group_tracking_ids',
|
92
98
|
:'link',
|
@@ -121,6 +127,10 @@ module TrieveRubyClient
|
|
121
127
|
self.chunk_id = attributes[:'chunk_id']
|
122
128
|
end
|
123
129
|
|
130
|
+
if attributes.key?(:'convert_html_to_text')
|
131
|
+
self.convert_html_to_text = attributes[:'convert_html_to_text']
|
132
|
+
end
|
133
|
+
|
124
134
|
if attributes.key?(:'group_ids')
|
125
135
|
if (value = attributes[:'group_ids']).is_a?(Array)
|
126
136
|
self.group_ids = value
|
@@ -182,6 +192,7 @@ module TrieveRubyClient
|
|
182
192
|
self.class == o.class &&
|
183
193
|
chunk_html == o.chunk_html &&
|
184
194
|
chunk_id == o.chunk_id &&
|
195
|
+
convert_html_to_text == o.convert_html_to_text &&
|
185
196
|
group_ids == o.group_ids &&
|
186
197
|
group_tracking_ids == o.group_tracking_ids &&
|
187
198
|
link == o.link &&
|
@@ -201,7 +212,7 @@ module TrieveRubyClient
|
|
201
212
|
# Calculates hash code according to all attributes.
|
202
213
|
# @return [Integer] Hash code
|
203
214
|
def hash
|
204
|
-
[chunk_html, chunk_id, group_ids, group_tracking_ids, link, metadata, tag_set, time_stamp, tracking_id, weight].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
|
205
216
|
end
|
206
217
|
|
207
218
|
# 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.
|
6
|
+
The version of the OpenAPI document: 0.6.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.
|
6
|
+
The version of the OpenAPI document: 0.6.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.
|
6
|
+
The version of the OpenAPI document: 0.6.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.
|
6
|
+
The version of the OpenAPI document: 0.6.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.
|
6
|
+
The version of the OpenAPI document: 0.6.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.
|
6
|
+
The version of the OpenAPI document: 0.6.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.
|
6
|
+
The version of the OpenAPI document: 0.6.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -24,12 +24,12 @@ module TrieveRubyClient
|
|
24
24
|
# Description is an optional convience field so you do not have to remember what the file contains or is about. It will be included on the group resulting from the file which will hold its chunk.
|
25
25
|
attr_accessor :description
|
26
26
|
|
27
|
-
# MIME type of the file being uploaded.
|
28
|
-
attr_accessor :file_mime_type
|
29
|
-
|
30
27
|
# Name of the file being uploaded, including the extension.
|
31
28
|
attr_accessor :file_name
|
32
29
|
|
30
|
+
# Group tracking id is an optional field which allows you to specify the tracking id of the group that is created from the file. Chunks created will be created with the tracking id of `group_tracking_id|<index of chunk>`
|
31
|
+
attr_accessor :group_tracking_id
|
32
|
+
|
33
33
|
# Link to the file. This can also be any string. This can be used to filter when searching for the file's resulting chunks. The link value will not affect embedding creation.
|
34
34
|
attr_accessor :link
|
35
35
|
|
@@ -48,8 +48,8 @@ module TrieveRubyClient
|
|
48
48
|
:'base64_file' => :'base64_file',
|
49
49
|
:'create_chunks' => :'create_chunks',
|
50
50
|
:'description' => :'description',
|
51
|
-
:'file_mime_type' => :'file_mime_type',
|
52
51
|
:'file_name' => :'file_name',
|
52
|
+
:'group_tracking_id' => :'group_tracking_id',
|
53
53
|
:'link' => :'link',
|
54
54
|
:'metadata' => :'metadata',
|
55
55
|
:'tag_set' => :'tag_set',
|
@@ -68,8 +68,8 @@ module TrieveRubyClient
|
|
68
68
|
:'base64_file' => :'String',
|
69
69
|
:'create_chunks' => :'Boolean',
|
70
70
|
:'description' => :'String',
|
71
|
-
:'file_mime_type' => :'String',
|
72
71
|
:'file_name' => :'String',
|
72
|
+
:'group_tracking_id' => :'String',
|
73
73
|
:'link' => :'String',
|
74
74
|
:'metadata' => :'Object',
|
75
75
|
:'tag_set' => :'Array<String>',
|
@@ -82,6 +82,7 @@ module TrieveRubyClient
|
|
82
82
|
Set.new([
|
83
83
|
:'create_chunks',
|
84
84
|
:'description',
|
85
|
+
:'group_tracking_id',
|
85
86
|
:'link',
|
86
87
|
:'metadata',
|
87
88
|
:'tag_set',
|
@@ -118,18 +119,16 @@ module TrieveRubyClient
|
|
118
119
|
self.description = attributes[:'description']
|
119
120
|
end
|
120
121
|
|
121
|
-
if attributes.key?(:'file_mime_type')
|
122
|
-
self.file_mime_type = attributes[:'file_mime_type']
|
123
|
-
else
|
124
|
-
self.file_mime_type = nil
|
125
|
-
end
|
126
|
-
|
127
122
|
if attributes.key?(:'file_name')
|
128
123
|
self.file_name = attributes[:'file_name']
|
129
124
|
else
|
130
125
|
self.file_name = nil
|
131
126
|
end
|
132
127
|
|
128
|
+
if attributes.key?(:'group_tracking_id')
|
129
|
+
self.group_tracking_id = attributes[:'group_tracking_id']
|
130
|
+
end
|
131
|
+
|
133
132
|
if attributes.key?(:'link')
|
134
133
|
self.link = attributes[:'link']
|
135
134
|
end
|
@@ -158,10 +157,6 @@ module TrieveRubyClient
|
|
158
157
|
invalid_properties.push('invalid value for "base64_file", base64_file cannot be nil.')
|
159
158
|
end
|
160
159
|
|
161
|
-
if @file_mime_type.nil?
|
162
|
-
invalid_properties.push('invalid value for "file_mime_type", file_mime_type cannot be nil.')
|
163
|
-
end
|
164
|
-
|
165
160
|
if @file_name.nil?
|
166
161
|
invalid_properties.push('invalid value for "file_name", file_name cannot be nil.')
|
167
162
|
end
|
@@ -174,7 +169,6 @@ module TrieveRubyClient
|
|
174
169
|
def valid?
|
175
170
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
176
171
|
return false if @base64_file.nil?
|
177
|
-
return false if @file_mime_type.nil?
|
178
172
|
return false if @file_name.nil?
|
179
173
|
true
|
180
174
|
end
|
@@ -187,8 +181,8 @@ module TrieveRubyClient
|
|
187
181
|
base64_file == o.base64_file &&
|
188
182
|
create_chunks == o.create_chunks &&
|
189
183
|
description == o.description &&
|
190
|
-
file_mime_type == o.file_mime_type &&
|
191
184
|
file_name == o.file_name &&
|
185
|
+
group_tracking_id == o.group_tracking_id &&
|
192
186
|
link == o.link &&
|
193
187
|
metadata == o.metadata &&
|
194
188
|
tag_set == o.tag_set &&
|
@@ -204,7 +198,7 @@ module TrieveRubyClient
|
|
204
198
|
# Calculates hash code according to all attributes.
|
205
199
|
# @return [Integer] Hash code
|
206
200
|
def hash
|
207
|
-
[base64_file, create_chunks, description,
|
201
|
+
[base64_file, create_chunks, description, file_name, group_tracking_id, link, metadata, tag_set, time_stamp].hash
|
208
202
|
end
|
209
203
|
|
210
204
|
# 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.
|
6
|
+
The version of the OpenAPI document: 0.6.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.
|
6
|
+
The version of the OpenAPI document: 0.6.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.
|
6
|
+
The version of the OpenAPI document: 0.6.7
|
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.6.
|
14
|
+
VERSION = '0.6.7'
|
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.
|
6
|
+
The version of the OpenAPI document: 0.6.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
data/openapi-generator.yaml
CHANGED
data/openapi.json
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
"name": "BSL",
|
13
13
|
"url": "https://github.com/devflowinc/trieve/blob/main/LICENSE.txt"
|
14
14
|
},
|
15
|
-
"version": "0.6.
|
15
|
+
"version": "0.6.7"
|
16
16
|
},
|
17
17
|
"servers": [
|
18
18
|
{
|
@@ -496,7 +496,7 @@
|
|
496
496
|
"chunk"
|
497
497
|
],
|
498
498
|
"summary": "Search",
|
499
|
-
"description": "Search\n\nThis route provides the primary search functionality for the API. It can be used to search for chunks by semantic similarity, full-text similarity, or a combination of both. Results' `chunk_html` values will be modified with `<b>` tags for sub-sentence highlighting.",
|
499
|
+
"description": "Search\n\nThis route provides the primary search functionality for the API. It can be used to search for chunks by semantic similarity, full-text similarity, or a combination of both. Results' `chunk_html` values will be modified with `<b><mark>` tags for sub-sentence highlighting.",
|
500
500
|
"operationId": "search_chunk",
|
501
501
|
"parameters": [
|
502
502
|
{
|
@@ -4073,6 +4073,11 @@
|
|
4073
4073
|
"description": "Chunk_vector is a vector of floats which can be used instead of generating a new embedding. This is useful for when you are using a pre-embedded dataset. If this is not provided, the innerText of the chunk_html will be used to create the embedding.",
|
4074
4074
|
"nullable": true
|
4075
4075
|
},
|
4076
|
+
"convert_html_to_text": {
|
4077
|
+
"type": "boolean",
|
4078
|
+
"description": "Convert HTML to raw text before processing to avoid adding noise to the vector embeddings. By default this is true. If you are using HTML content that you want to be included in the vector embeddings, set this to false.",
|
4079
|
+
"nullable": true
|
4080
|
+
},
|
4076
4081
|
"file_id": {
|
4077
4082
|
"type": "string",
|
4078
4083
|
"format": "uuid",
|
@@ -5397,6 +5402,10 @@
|
|
5397
5402
|
"type": "string",
|
5398
5403
|
"format": "uuid"
|
5399
5404
|
},
|
5405
|
+
"group_name": {
|
5406
|
+
"type": "string",
|
5407
|
+
"nullable": true
|
5408
|
+
},
|
5400
5409
|
"group_tracking_id": {
|
5401
5410
|
"type": "string",
|
5402
5411
|
"nullable": true
|
@@ -6866,6 +6875,11 @@
|
|
6866
6875
|
"description": "HTML content of the chunk you want to update. This can also be plaintext. The innerText of the HTML will be used to create the embedding vector. The point of using HTML is for convienience, as some users have applications where users submit HTML content. If no chunk_html is provided, the existing chunk_html will be used.",
|
6867
6876
|
"nullable": true
|
6868
6877
|
},
|
6878
|
+
"convert_html_to_text": {
|
6879
|
+
"type": "boolean",
|
6880
|
+
"description": "Convert HTML to raw text before processing to avoid adding noise to the vector embeddings. By default this is true. If you are using HTML content that you want to be included in the vector embeddings, set this to false.",
|
6881
|
+
"nullable": true
|
6882
|
+
},
|
6869
6883
|
"group_ids": {
|
6870
6884
|
"type": "array",
|
6871
6885
|
"items": {
|
@@ -6923,6 +6937,11 @@
|
|
6923
6937
|
"description": "Id of the chunk you want to update. You can provide either the chunk_id or the tracking_id. If both are provided, the chunk_id will be used.",
|
6924
6938
|
"nullable": true
|
6925
6939
|
},
|
6940
|
+
"convert_html_to_text": {
|
6941
|
+
"type": "boolean",
|
6942
|
+
"description": "Convert HTML to raw text before processing to avoid adding noise to the vector embeddings. By default this is true. If you are using HTML content that you want to be included in the vector embeddings, set this to false.",
|
6943
|
+
"nullable": true
|
6944
|
+
},
|
6926
6945
|
"group_ids": {
|
6927
6946
|
"type": "array",
|
6928
6947
|
"items": {
|
@@ -7163,8 +7182,7 @@
|
|
7163
7182
|
"type": "object",
|
7164
7183
|
"required": [
|
7165
7184
|
"base64_file",
|
7166
|
-
"file_name"
|
7167
|
-
"file_mime_type"
|
7185
|
+
"file_name"
|
7168
7186
|
],
|
7169
7187
|
"properties": {
|
7170
7188
|
"base64_file": {
|
@@ -7181,14 +7199,15 @@
|
|
7181
7199
|
"description": "Description is an optional convience field so you do not have to remember what the file contains or is about. It will be included on the group resulting from the file which will hold its chunk.",
|
7182
7200
|
"nullable": true
|
7183
7201
|
},
|
7184
|
-
"file_mime_type": {
|
7185
|
-
"type": "string",
|
7186
|
-
"description": "MIME type of the file being uploaded."
|
7187
|
-
},
|
7188
7202
|
"file_name": {
|
7189
7203
|
"type": "string",
|
7190
7204
|
"description": "Name of the file being uploaded, including the extension."
|
7191
7205
|
},
|
7206
|
+
"group_tracking_id": {
|
7207
|
+
"type": "string",
|
7208
|
+
"description": "Group tracking id is an optional field which allows you to specify the tracking id of the group that is created from the file. Chunks created will be created with the tracking id of `group_tracking_id|<index of chunk>`",
|
7209
|
+
"nullable": true
|
7210
|
+
},
|
7192
7211
|
"link": {
|
7193
7212
|
"type": "string",
|
7194
7213
|
"description": "Link to the file. This can also be any string. This can be used to filter when searching for the file's resulting chunks. The link value will not affect embedding creation.",
|
data/spec/spec_helper.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.
|
6
|
+
The version of the OpenAPI document: 0.6.7
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
Binary file
|
data/trieve_ruby_client.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 0.6.
|
8
|
+
The version of the OpenAPI document: 0.6.7
|
9
9
|
Contact: developers@trieve.ai
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
11
|
Generator version: 7.4.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trieve_ruby_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trieve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -406,6 +406,7 @@ files:
|
|
406
406
|
- trieve_ruby_client-0.5.0.gem
|
407
407
|
- trieve_ruby_client-0.5.7.gem
|
408
408
|
- trieve_ruby_client-0.6.0.gem
|
409
|
+
- trieve_ruby_client-0.6.2.gem
|
409
410
|
- trieve_ruby_client.gemspec
|
410
411
|
homepage: https://trieve.ai
|
411
412
|
licenses:
|