trieve_ruby_client 0.6.2 → 0.6.9
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/CreateDatasetRequest.md +3 -1
- data/docs/Dataset.md +2 -0
- data/docs/DatasetApi.md +1 -1
- data/docs/DatasetDTO.md +2 -0
- data/docs/FileApi.md +1 -1
- data/docs/GroupScoreChunk.md +2 -0
- data/docs/RecommendChunksRequest.md +2 -0
- data/docs/RecommendGroupChunksRequest.md +2 -0
- data/docs/UpdateChunkByTrackingIdData.md +2 -0
- data/docs/UpdateChunkData.md +2 -0
- data/docs/UpdateDatasetRequest.md +4 -2
- 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 +17 -6
- 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 +12 -2
- data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_dto.rb +12 -2
- 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 +13 -2
- data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +13 -2
- 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 +18 -13
- 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 +59 -12
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.6.2.gem +0 -0
- data/trieve_ruby_client-0.6.7.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +4 -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.9
|
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.9
|
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.9
|
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.9
|
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.9
|
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.9
|
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.9'
|
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.9
|
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.9"
|
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",
|
@@ -4721,6 +4726,11 @@
|
|
4721
4726
|
},
|
4722
4727
|
"server_configuration": {
|
4723
4728
|
"description": "Server configuration for the dataset, can be arbitrary JSON. We recommend setting to `{}` to start. See docs.trieve.ai for more information or adjust with the admin dashboard."
|
4729
|
+
},
|
4730
|
+
"tracking_id": {
|
4731
|
+
"type": "string",
|
4732
|
+
"description": "Optional tracking ID for the dataset. Can be used to track the dataset in external systems.",
|
4733
|
+
"nullable": true
|
4724
4734
|
}
|
4725
4735
|
},
|
4726
4736
|
"example": {
|
@@ -4835,6 +4845,10 @@
|
|
4835
4845
|
"format": "uuid"
|
4836
4846
|
},
|
4837
4847
|
"server_configuration": {},
|
4848
|
+
"tracking_id": {
|
4849
|
+
"type": "string",
|
4850
|
+
"nullable": true
|
4851
|
+
},
|
4838
4852
|
"updated_at": {
|
4839
4853
|
"type": "string",
|
4840
4854
|
"format": "date-time"
|
@@ -4851,6 +4865,7 @@
|
|
4851
4865
|
"server_configuration": {
|
4852
4866
|
"key": "value"
|
4853
4867
|
},
|
4868
|
+
"tracking_id": "3",
|
4854
4869
|
"updated_at": "2021-01-01T00:00:00"
|
4855
4870
|
}
|
4856
4871
|
},
|
@@ -4913,6 +4928,10 @@
|
|
4913
4928
|
"type": "string",
|
4914
4929
|
"format": "uuid"
|
4915
4930
|
},
|
4931
|
+
"tracking_id": {
|
4932
|
+
"type": "string",
|
4933
|
+
"nullable": true
|
4934
|
+
},
|
4916
4935
|
"updated_at": {
|
4917
4936
|
"type": "string",
|
4918
4937
|
"format": "date-time"
|
@@ -4926,6 +4945,7 @@
|
|
4926
4945
|
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
4927
4946
|
"name": "Trieve",
|
4928
4947
|
"organization_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
4948
|
+
"tracking_id": "3",
|
4929
4949
|
"updated_at": "2021-01-01T00:00:00"
|
4930
4950
|
}
|
4931
4951
|
},
|
@@ -5397,6 +5417,10 @@
|
|
5397
5417
|
"type": "string",
|
5398
5418
|
"format": "uuid"
|
5399
5419
|
},
|
5420
|
+
"group_name": {
|
5421
|
+
"type": "string",
|
5422
|
+
"nullable": true
|
5423
|
+
},
|
5400
5424
|
"group_tracking_id": {
|
5401
5425
|
"type": "string",
|
5402
5426
|
"nullable": true
|
@@ -5779,6 +5803,11 @@
|
|
5779
5803
|
"description": "The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.",
|
5780
5804
|
"nullable": true
|
5781
5805
|
},
|
5806
|
+
"recommend_type": {
|
5807
|
+
"type": "string",
|
5808
|
+
"description": "The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`.",
|
5809
|
+
"nullable": true
|
5810
|
+
},
|
5782
5811
|
"slim_chunks": {
|
5783
5812
|
"type": "boolean",
|
5784
5813
|
"description": "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. Default is false.",
|
@@ -5850,6 +5879,11 @@
|
|
5850
5879
|
"description": "The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups.",
|
5851
5880
|
"nullable": true
|
5852
5881
|
},
|
5882
|
+
"recommend_type": {
|
5883
|
+
"type": "string",
|
5884
|
+
"description": "The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`.",
|
5885
|
+
"nullable": true
|
5886
|
+
},
|
5853
5887
|
"slim_chunks": {
|
5854
5888
|
"type": "boolean",
|
5855
5889
|
"description": "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. Default is false.",
|
@@ -6866,6 +6900,11 @@
|
|
6866
6900
|
"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
6901
|
"nullable": true
|
6868
6902
|
},
|
6903
|
+
"convert_html_to_text": {
|
6904
|
+
"type": "boolean",
|
6905
|
+
"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.",
|
6906
|
+
"nullable": true
|
6907
|
+
},
|
6869
6908
|
"group_ids": {
|
6870
6909
|
"type": "array",
|
6871
6910
|
"items": {
|
@@ -6923,6 +6962,11 @@
|
|
6923
6962
|
"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
6963
|
"nullable": true
|
6925
6964
|
},
|
6965
|
+
"convert_html_to_text": {
|
6966
|
+
"type": "boolean",
|
6967
|
+
"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.",
|
6968
|
+
"nullable": true
|
6969
|
+
},
|
6926
6970
|
"group_ids": {
|
6927
6971
|
"type": "array",
|
6928
6972
|
"items": {
|
@@ -7029,9 +7073,6 @@
|
|
7029
7073
|
},
|
7030
7074
|
"UpdateDatasetRequest": {
|
7031
7075
|
"type": "object",
|
7032
|
-
"required": [
|
7033
|
-
"dataset_id"
|
7034
|
-
],
|
7035
7076
|
"properties": {
|
7036
7077
|
"client_configuration": {
|
7037
7078
|
"description": "The new client configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the client configuration will not be updated.",
|
@@ -7040,7 +7081,8 @@
|
|
7040
7081
|
"dataset_id": {
|
7041
7082
|
"type": "string",
|
7042
7083
|
"format": "uuid",
|
7043
|
-
"description": "The id of the dataset you want to update."
|
7084
|
+
"description": "The id of the dataset you want to update.",
|
7085
|
+
"nullable": true
|
7044
7086
|
},
|
7045
7087
|
"dataset_name": {
|
7046
7088
|
"type": "string",
|
@@ -7050,6 +7092,11 @@
|
|
7050
7092
|
"server_configuration": {
|
7051
7093
|
"description": "The new server configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the server configuration will not be updated.",
|
7052
7094
|
"nullable": true
|
7095
|
+
},
|
7096
|
+
"tracking_id": {
|
7097
|
+
"type": "string",
|
7098
|
+
"description": "tracking ID for the dataset. Can be used to track the dataset in external systems.",
|
7099
|
+
"nullable": true
|
7053
7100
|
}
|
7054
7101
|
},
|
7055
7102
|
"example": {
|
@@ -7163,8 +7210,7 @@
|
|
7163
7210
|
"type": "object",
|
7164
7211
|
"required": [
|
7165
7212
|
"base64_file",
|
7166
|
-
"file_name"
|
7167
|
-
"file_mime_type"
|
7213
|
+
"file_name"
|
7168
7214
|
],
|
7169
7215
|
"properties": {
|
7170
7216
|
"base64_file": {
|
@@ -7181,14 +7227,15 @@
|
|
7181
7227
|
"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
7228
|
"nullable": true
|
7183
7229
|
},
|
7184
|
-
"file_mime_type": {
|
7185
|
-
"type": "string",
|
7186
|
-
"description": "MIME type of the file being uploaded."
|
7187
|
-
},
|
7188
7230
|
"file_name": {
|
7189
7231
|
"type": "string",
|
7190
7232
|
"description": "Name of the file being uploaded, including the extension."
|
7191
7233
|
},
|
7234
|
+
"group_tracking_id": {
|
7235
|
+
"type": "string",
|
7236
|
+
"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>`",
|
7237
|
+
"nullable": true
|
7238
|
+
},
|
7192
7239
|
"link": {
|
7193
7240
|
"type": "string",
|
7194
7241
|
"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.9
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
Binary file
|
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.9
|
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.9
|
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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -406,6 +406,8 @@ 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
|
410
|
+
- trieve_ruby_client-0.6.7.gem
|
409
411
|
- trieve_ruby_client.gemspec
|
410
412
|
homepage: https://trieve.ai
|
411
413
|
licenses:
|