trieve_ruby_client 0.3.4 → 0.4.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 +78 -81
- data/docs/AuthApi.md +29 -40
- data/docs/AuthQuery.md +22 -0
- data/docs/BatchQueuedChunkResponse.md +20 -0
- data/docs/ChunkApi.md +80 -214
- data/docs/ChunkData.md +42 -0
- data/docs/ChunkGroupApi.md +183 -174
- data/docs/CreateChunkData.md +41 -34
- data/docs/DatasetApi.md +37 -67
- data/docs/EventsApi.md +14 -19
- data/docs/FileApi.md +25 -45
- data/docs/GetEventsData.md +22 -0
- data/docs/HealthApi.md +6 -4
- data/docs/InvitationApi.md +7 -12
- data/docs/MessageApi.md +25 -45
- data/docs/OrganizationApi.md +37 -67
- data/docs/ReturnQueuedChunk.md +39 -10
- data/docs/SingleQueuedChunkResponse.md +20 -0
- data/docs/StripeApi.md +23 -25
- data/docs/TopicApi.md +25 -45
- data/docs/UserApi.md +19 -34
- data/lib/trieve_ruby_client/api/auth_api.rb +28 -35
- data/lib/trieve_ruby_client/api/chunk_api.rb +68 -143
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +164 -76
- data/lib/trieve_ruby_client/api/dataset_api.rb +31 -31
- data/lib/trieve_ruby_client/api/events_api.rb +22 -17
- data/lib/trieve_ruby_client/api/file_api.rb +21 -21
- data/lib/trieve_ruby_client/api/health_api.rb +5 -1
- data/lib/trieve_ruby_client/api/invitation_api.rb +6 -6
- data/lib/trieve_ruby_client/api/message_api.rb +21 -21
- data/lib/trieve_ruby_client/api/organization_api.rb +31 -31
- data/lib/trieve_ruby_client/api/stripe_api.rb +19 -3
- data/lib/trieve_ruby_client/api/topic_api.rb +21 -21
- data/lib/trieve_ruby_client/api/user_api.rb +16 -16
- 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 +8 -11
- 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 +238 -0
- data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +240 -0
- 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 +356 -0
- 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_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 +79 -330
- 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_dataset_request.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 +240 -0
- 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/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/reccomend_group_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_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 +75 -207
- data/lib/trieve_ruby_client/models/score_chunk_dto.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_groups_result.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_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_data.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 +238 -0
- 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/stripe_subscription.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 +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 +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 +6 -2
- data/openapi-generator.yaml +2 -2
- data/openapi.json +1280 -876
- data/spec/models/auth_query_spec.rb +48 -0
- data/spec/models/batch_queued_chunk_response_spec.rb +42 -0
- data/spec/models/chunk_data_spec.rb +108 -0
- data/spec/models/get_events_data_spec.rb +48 -0
- data/spec/models/single_queued_chunk_response_spec.rb +42 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.3.5.gem +0 -0
- data/trieve_ruby_client.gemspec +2 -2
- metadata +25 -3
data/docs/ChunkGroupApi.md
CHANGED
@@ -1,34 +1,35 @@
|
|
1
1
|
# TrieveRubyClient::ChunkGroupApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://localhost*
|
3
|
+
All URIs are relative to *http://localhost:8090*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**add_chunk_to_group**](ChunkGroupApi.md#add_chunk_to_group) | **POST** /api/chunk_group/chunk/{group_id} |
|
8
|
-
| [**add_chunk_to_group_by_tracking_id**](ChunkGroupApi.md#add_chunk_to_group_by_tracking_id) | **POST** /api/chunk_group/tracking_id/{tracking_id} |
|
9
|
-
| [**create_chunk_group**](ChunkGroupApi.md#create_chunk_group) | **POST** /api/chunk_group |
|
10
|
-
| [**delete_chunk_group**](ChunkGroupApi.md#delete_chunk_group) | **DELETE** /api/{tracking_or_chunk}/{group_id} |
|
11
|
-
| [**delete_group_by_tracking_id**](ChunkGroupApi.md#delete_group_by_tracking_id) | **DELETE** /api/chunk_group/tracking_id/{tracking_id} |
|
12
|
-
| [**
|
13
|
-
| [**
|
14
|
-
| [**
|
15
|
-
| [**
|
16
|
-
| [**
|
17
|
-
| [**
|
18
|
-
| [**
|
19
|
-
| [**
|
20
|
-
| [**
|
21
|
-
| [**
|
22
|
-
| [**
|
7
|
+
| [**add_chunk_to_group**](ChunkGroupApi.md#add_chunk_to_group) | **POST** /api/chunk_group/chunk/{group_id} | Add Chunk to Group |
|
8
|
+
| [**add_chunk_to_group_by_tracking_id**](ChunkGroupApi.md#add_chunk_to_group_by_tracking_id) | **POST** /api/chunk_group/tracking_id/{tracking_id} | Add Chunk to Group by Tracking ID |
|
9
|
+
| [**create_chunk_group**](ChunkGroupApi.md#create_chunk_group) | **POST** /api/chunk_group | Create Chunk Group |
|
10
|
+
| [**delete_chunk_group**](ChunkGroupApi.md#delete_chunk_group) | **DELETE** /api/chunk_group/{tracking_or_chunk}/{group_id} | Delete Group |
|
11
|
+
| [**delete_group_by_tracking_id**](ChunkGroupApi.md#delete_group_by_tracking_id) | **DELETE** /api/chunk_group/tracking_id/{tracking_id} | Delete Group by Tracking ID |
|
12
|
+
| [**get_chunk_group**](ChunkGroupApi.md#get_chunk_group) | **GET** /api/chunk_group/{tracking_or_chunk}/{group_id} | Get Group |
|
13
|
+
| [**get_chunks_in_group**](ChunkGroupApi.md#get_chunks_in_group) | **GET** /api/chunk_group/{tracking_or_chunk}/{group_id}/{page} | Get Chunks in Group |
|
14
|
+
| [**get_chunks_in_group_by_tracking_id**](ChunkGroupApi.md#get_chunks_in_group_by_tracking_id) | **GET** /api/chunk_group/tracking_id/{group_tracking_id}/{page} | Get Chunks in Group by Tracking ID |
|
15
|
+
| [**get_group_by_tracking_id**](ChunkGroupApi.md#get_group_by_tracking_id) | **GET** /api/chunk_group/tracking_id/{tracking_id} | Get Group by Tracking ID |
|
16
|
+
| [**get_groups_chunk_is_in**](ChunkGroupApi.md#get_groups_chunk_is_in) | **POST** /api/chunk_group/chunks | Get Groups for Chunks |
|
17
|
+
| [**get_recommended_groups**](ChunkGroupApi.md#get_recommended_groups) | **POST** /api/chunk_group/recommend | Get Recommended Groups |
|
18
|
+
| [**get_specific_dataset_chunk_groups**](ChunkGroupApi.md#get_specific_dataset_chunk_groups) | **GET** /api/dataset/groups/{dataset_id}/{page} | Get Groups for Dataset |
|
19
|
+
| [**remove_chunk_from_group**](ChunkGroupApi.md#remove_chunk_from_group) | **DELETE** /api/chunk_group/chunk/{group_id} | Remove Chunk from Group |
|
20
|
+
| [**search_over_groups**](ChunkGroupApi.md#search_over_groups) | **POST** /api/chunk_group/group_oriented_search | Search Over Groups |
|
21
|
+
| [**search_within_group**](ChunkGroupApi.md#search_within_group) | **POST** /api/chunk_group/search | Search Within Group |
|
22
|
+
| [**update_chunk_group**](ChunkGroupApi.md#update_chunk_group) | **PUT** /api/chunk_group | Update Group |
|
23
|
+
| [**update_group_by_tracking_id**](ChunkGroupApi.md#update_group_by_tracking_id) | **PUT** /api/chunk_group/tracking_id/{tracking_id} | Update Group by Tracking ID |
|
23
24
|
|
24
25
|
|
25
26
|
## add_chunk_to_group
|
26
27
|
|
27
28
|
> add_chunk_to_group(tr_dataset, group_id, add_chunk_to_group_data)
|
28
29
|
|
29
|
-
|
30
|
+
Add Chunk to Group
|
30
31
|
|
31
|
-
|
32
|
+
Add Chunk to Group Route to add a chunk to a group
|
32
33
|
|
33
34
|
### Examples
|
34
35
|
|
@@ -37,11 +38,6 @@ require 'time'
|
|
37
38
|
require 'trieve_ruby_client'
|
38
39
|
# setup authorization
|
39
40
|
TrieveRubyClient.configure do |config|
|
40
|
-
# Configure API key authorization: Cookie
|
41
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
42
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
43
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
44
|
-
|
45
41
|
# Configure API key authorization: ApiKey
|
46
42
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
47
43
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -54,7 +50,7 @@ group_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Id of the group to
|
|
54
50
|
add_chunk_to_group_data = TrieveRubyClient::AddChunkToGroupData.new({chunk_id: 'chunk_id_example'}) # AddChunkToGroupData | JSON request payload to add a chunk to a group (bookmark it)
|
55
51
|
|
56
52
|
begin
|
57
|
-
#
|
53
|
+
# Add Chunk to Group
|
58
54
|
api_instance.add_chunk_to_group(tr_dataset, group_id, add_chunk_to_group_data)
|
59
55
|
rescue TrieveRubyClient::ApiError => e
|
60
56
|
puts "Error when calling ChunkGroupApi->add_chunk_to_group: #{e}"
|
@@ -69,7 +65,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
69
65
|
|
70
66
|
```ruby
|
71
67
|
begin
|
72
|
-
#
|
68
|
+
# Add Chunk to Group
|
73
69
|
data, status_code, headers = api_instance.add_chunk_to_group_with_http_info(tr_dataset, group_id, add_chunk_to_group_data)
|
74
70
|
p status_code # => 2xx
|
75
71
|
p headers # => { ... }
|
@@ -93,7 +89,7 @@ nil (empty response body)
|
|
93
89
|
|
94
90
|
### Authorization
|
95
91
|
|
96
|
-
[
|
92
|
+
[ApiKey](../README.md#ApiKey)
|
97
93
|
|
98
94
|
### HTTP request headers
|
99
95
|
|
@@ -105,9 +101,9 @@ nil (empty response body)
|
|
105
101
|
|
106
102
|
> add_chunk_to_group_by_tracking_id(tr_dataset, tracking_id, add_chunk_to_group_data)
|
107
103
|
|
108
|
-
|
104
|
+
Add Chunk to Group by Tracking ID
|
109
105
|
|
110
|
-
|
106
|
+
Add Chunk to Group by Tracking ID Route to add a chunk to a group by tracking id. Think of a bookmark as a chunk which is a member of a group.
|
111
107
|
|
112
108
|
### Examples
|
113
109
|
|
@@ -116,11 +112,6 @@ require 'time'
|
|
116
112
|
require 'trieve_ruby_client'
|
117
113
|
# setup authorization
|
118
114
|
TrieveRubyClient.configure do |config|
|
119
|
-
# Configure API key authorization: Cookie
|
120
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
121
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
122
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
123
|
-
|
124
115
|
# Configure API key authorization: ApiKey
|
125
116
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
126
117
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -133,7 +124,7 @@ tracking_id = 'tracking_id_example' # String | Id of the group to add the chunk
|
|
133
124
|
add_chunk_to_group_data = TrieveRubyClient::AddChunkToGroupData.new({chunk_id: 'chunk_id_example'}) # AddChunkToGroupData | JSON request payload to add a chunk to a group (bookmark it)
|
134
125
|
|
135
126
|
begin
|
136
|
-
#
|
127
|
+
# Add Chunk to Group by Tracking ID
|
137
128
|
api_instance.add_chunk_to_group_by_tracking_id(tr_dataset, tracking_id, add_chunk_to_group_data)
|
138
129
|
rescue TrieveRubyClient::ApiError => e
|
139
130
|
puts "Error when calling ChunkGroupApi->add_chunk_to_group_by_tracking_id: #{e}"
|
@@ -148,7 +139,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
148
139
|
|
149
140
|
```ruby
|
150
141
|
begin
|
151
|
-
#
|
142
|
+
# Add Chunk to Group by Tracking ID
|
152
143
|
data, status_code, headers = api_instance.add_chunk_to_group_by_tracking_id_with_http_info(tr_dataset, tracking_id, add_chunk_to_group_data)
|
153
144
|
p status_code # => 2xx
|
154
145
|
p headers # => { ... }
|
@@ -172,7 +163,7 @@ nil (empty response body)
|
|
172
163
|
|
173
164
|
### Authorization
|
174
165
|
|
175
|
-
[
|
166
|
+
[ApiKey](../README.md#ApiKey)
|
176
167
|
|
177
168
|
### HTTP request headers
|
178
169
|
|
@@ -184,9 +175,9 @@ nil (empty response body)
|
|
184
175
|
|
185
176
|
> <ChunkGroup> create_chunk_group(tr_dataset, create_chunk_group_data)
|
186
177
|
|
187
|
-
|
178
|
+
Create Chunk Group
|
188
179
|
|
189
|
-
|
180
|
+
Create Chunk Group Create a new chunk_group.
|
190
181
|
|
191
182
|
### Examples
|
192
183
|
|
@@ -195,11 +186,6 @@ require 'time'
|
|
195
186
|
require 'trieve_ruby_client'
|
196
187
|
# setup authorization
|
197
188
|
TrieveRubyClient.configure do |config|
|
198
|
-
# Configure API key authorization: Cookie
|
199
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
200
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
201
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
202
|
-
|
203
189
|
# Configure API key authorization: ApiKey
|
204
190
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
205
191
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -211,7 +197,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
211
197
|
create_chunk_group_data = TrieveRubyClient::CreateChunkGroupData.new({description: 'description_example', name: 'name_example'}) # CreateChunkGroupData | JSON request payload to cretea a chunkGroup
|
212
198
|
|
213
199
|
begin
|
214
|
-
#
|
200
|
+
# Create Chunk Group
|
215
201
|
result = api_instance.create_chunk_group(tr_dataset, create_chunk_group_data)
|
216
202
|
p result
|
217
203
|
rescue TrieveRubyClient::ApiError => e
|
@@ -227,7 +213,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
227
213
|
|
228
214
|
```ruby
|
229
215
|
begin
|
230
|
-
#
|
216
|
+
# Create Chunk Group
|
231
217
|
data, status_code, headers = api_instance.create_chunk_group_with_http_info(tr_dataset, create_chunk_group_data)
|
232
218
|
p status_code # => 2xx
|
233
219
|
p headers # => { ... }
|
@@ -250,7 +236,7 @@ end
|
|
250
236
|
|
251
237
|
### Authorization
|
252
238
|
|
253
|
-
[
|
239
|
+
[ApiKey](../README.md#ApiKey)
|
254
240
|
|
255
241
|
### HTTP request headers
|
256
242
|
|
@@ -260,11 +246,11 @@ end
|
|
260
246
|
|
261
247
|
## delete_chunk_group
|
262
248
|
|
263
|
-
> delete_chunk_group(tr_dataset,
|
249
|
+
> delete_chunk_group(tr_dataset, tracking_or_chunk, group_id, delete_chunks)
|
264
250
|
|
265
|
-
|
251
|
+
Delete Group
|
266
252
|
|
267
|
-
|
253
|
+
Delete Group This will delete a chunk_group. This will not delete the chunks that are in the group. We will soon support deleting a chunk_group along with its member chunks.
|
268
254
|
|
269
255
|
### Examples
|
270
256
|
|
@@ -273,11 +259,6 @@ require 'time'
|
|
273
259
|
require 'trieve_ruby_client'
|
274
260
|
# setup authorization
|
275
261
|
TrieveRubyClient.configure do |config|
|
276
|
-
# Configure API key authorization: Cookie
|
277
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
278
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
279
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
280
|
-
|
281
262
|
# Configure API key authorization: ApiKey
|
282
263
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
283
264
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -286,13 +267,13 @@ end
|
|
286
267
|
|
287
268
|
api_instance = TrieveRubyClient::ChunkGroupApi.new
|
288
269
|
tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
|
289
|
-
group_id = TODO # Uuid | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used.
|
290
270
|
tracking_or_chunk = 'tracking_or_chunk_example' # String | The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'
|
271
|
+
group_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used.
|
291
272
|
delete_chunks = true # Boolean | Delete the chunks within the group
|
292
273
|
|
293
274
|
begin
|
294
|
-
#
|
295
|
-
api_instance.delete_chunk_group(tr_dataset,
|
275
|
+
# Delete Group
|
276
|
+
api_instance.delete_chunk_group(tr_dataset, tracking_or_chunk, group_id, delete_chunks)
|
296
277
|
rescue TrieveRubyClient::ApiError => e
|
297
278
|
puts "Error when calling ChunkGroupApi->delete_chunk_group: #{e}"
|
298
279
|
end
|
@@ -302,12 +283,12 @@ end
|
|
302
283
|
|
303
284
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
304
285
|
|
305
|
-
> <Array(nil, Integer, Hash)> delete_chunk_group_with_http_info(tr_dataset,
|
286
|
+
> <Array(nil, Integer, Hash)> delete_chunk_group_with_http_info(tr_dataset, tracking_or_chunk, group_id, delete_chunks)
|
306
287
|
|
307
288
|
```ruby
|
308
289
|
begin
|
309
|
-
#
|
310
|
-
data, status_code, headers = api_instance.delete_chunk_group_with_http_info(tr_dataset,
|
290
|
+
# Delete Group
|
291
|
+
data, status_code, headers = api_instance.delete_chunk_group_with_http_info(tr_dataset, tracking_or_chunk, group_id, delete_chunks)
|
311
292
|
p status_code # => 2xx
|
312
293
|
p headers # => { ... }
|
313
294
|
p data # => nil
|
@@ -321,8 +302,8 @@ end
|
|
321
302
|
| Name | Type | Description | Notes |
|
322
303
|
| ---- | ---- | ----------- | ----- |
|
323
304
|
| **tr_dataset** | **String** | The dataset id to use for the request | |
|
324
|
-
| **group_id** | [**Uuid**](.md) | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used. | |
|
325
305
|
| **tracking_or_chunk** | **String** | The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id' | |
|
306
|
+
| **group_id** | **String** | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used. | |
|
326
307
|
| **delete_chunks** | **Boolean** | Delete the chunks within the group | |
|
327
308
|
|
328
309
|
### Return type
|
@@ -331,7 +312,7 @@ nil (empty response body)
|
|
331
312
|
|
332
313
|
### Authorization
|
333
314
|
|
334
|
-
[
|
315
|
+
[ApiKey](../README.md#ApiKey)
|
335
316
|
|
336
317
|
### HTTP request headers
|
337
318
|
|
@@ -343,7 +324,9 @@ nil (empty response body)
|
|
343
324
|
|
344
325
|
> delete_group_by_tracking_id(tr_dataset, tracking_id)
|
345
326
|
|
327
|
+
Delete Group by Tracking ID
|
346
328
|
|
329
|
+
Delete Group by Tracking ID Delete a chunk_group with the given tracking id.
|
347
330
|
|
348
331
|
### Examples
|
349
332
|
|
@@ -352,11 +335,6 @@ require 'time'
|
|
352
335
|
require 'trieve_ruby_client'
|
353
336
|
# setup authorization
|
354
337
|
TrieveRubyClient.configure do |config|
|
355
|
-
# Configure API key authorization: Cookie
|
356
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
357
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
358
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
359
|
-
|
360
338
|
# Configure API key authorization: ApiKey
|
361
339
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
362
340
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -368,7 +346,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
368
346
|
tracking_id = 'tracking_id_example' # String | Tracking id of the chunk_group to delete
|
369
347
|
|
370
348
|
begin
|
371
|
-
|
349
|
+
# Delete Group by Tracking ID
|
372
350
|
api_instance.delete_group_by_tracking_id(tr_dataset, tracking_id)
|
373
351
|
rescue TrieveRubyClient::ApiError => e
|
374
352
|
puts "Error when calling ChunkGroupApi->delete_group_by_tracking_id: #{e}"
|
@@ -383,7 +361,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
383
361
|
|
384
362
|
```ruby
|
385
363
|
begin
|
386
|
-
|
364
|
+
# Delete Group by Tracking ID
|
387
365
|
data, status_code, headers = api_instance.delete_group_by_tracking_id_with_http_info(tr_dataset, tracking_id)
|
388
366
|
p status_code # => 2xx
|
389
367
|
p headers # => { ... }
|
@@ -406,7 +384,7 @@ nil (empty response body)
|
|
406
384
|
|
407
385
|
### Authorization
|
408
386
|
|
409
|
-
[
|
387
|
+
[ApiKey](../README.md#ApiKey)
|
410
388
|
|
411
389
|
### HTTP request headers
|
412
390
|
|
@@ -414,13 +392,13 @@ nil (empty response body)
|
|
414
392
|
- **Accept**: application/json
|
415
393
|
|
416
394
|
|
417
|
-
##
|
395
|
+
## get_chunk_group
|
418
396
|
|
419
|
-
> <
|
397
|
+
> <ChunkGroup> get_chunk_group(tr_dataset, tracking_or_chunk, group_id)
|
420
398
|
|
421
|
-
|
399
|
+
Get Group
|
422
400
|
|
423
|
-
|
401
|
+
Get Group Fetch the group with the given id. get_group
|
424
402
|
|
425
403
|
### Examples
|
426
404
|
|
@@ -429,11 +407,81 @@ require 'time'
|
|
429
407
|
require 'trieve_ruby_client'
|
430
408
|
# setup authorization
|
431
409
|
TrieveRubyClient.configure do |config|
|
432
|
-
# Configure API key authorization:
|
433
|
-
config.api_key['
|
410
|
+
# Configure API key authorization: ApiKey
|
411
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
434
412
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
435
|
-
# config.api_key_prefix['
|
413
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
414
|
+
end
|
415
|
+
|
416
|
+
api_instance = TrieveRubyClient::ChunkGroupApi.new
|
417
|
+
tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
|
418
|
+
tracking_or_chunk = 'tracking_or_chunk_example' # String | The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'
|
419
|
+
group_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Id of the group you want to fetch. This can be either the group_id or the tracking_id.
|
420
|
+
|
421
|
+
begin
|
422
|
+
# Get Group
|
423
|
+
result = api_instance.get_chunk_group(tr_dataset, tracking_or_chunk, group_id)
|
424
|
+
p result
|
425
|
+
rescue TrieveRubyClient::ApiError => e
|
426
|
+
puts "Error when calling ChunkGroupApi->get_chunk_group: #{e}"
|
427
|
+
end
|
428
|
+
```
|
429
|
+
|
430
|
+
#### Using the get_chunk_group_with_http_info variant
|
431
|
+
|
432
|
+
This returns an Array which contains the response data, status code and headers.
|
433
|
+
|
434
|
+
> <Array(<ChunkGroup>, Integer, Hash)> get_chunk_group_with_http_info(tr_dataset, tracking_or_chunk, group_id)
|
435
|
+
|
436
|
+
```ruby
|
437
|
+
begin
|
438
|
+
# Get Group
|
439
|
+
data, status_code, headers = api_instance.get_chunk_group_with_http_info(tr_dataset, tracking_or_chunk, group_id)
|
440
|
+
p status_code # => 2xx
|
441
|
+
p headers # => { ... }
|
442
|
+
p data # => <ChunkGroup>
|
443
|
+
rescue TrieveRubyClient::ApiError => e
|
444
|
+
puts "Error when calling ChunkGroupApi->get_chunk_group_with_http_info: #{e}"
|
445
|
+
end
|
446
|
+
```
|
447
|
+
|
448
|
+
### Parameters
|
449
|
+
|
450
|
+
| Name | Type | Description | Notes |
|
451
|
+
| ---- | ---- | ----------- | ----- |
|
452
|
+
| **tr_dataset** | **String** | The dataset id to use for the request | |
|
453
|
+
| **tracking_or_chunk** | **String** | The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id' | |
|
454
|
+
| **group_id** | **String** | Id of the group you want to fetch. This can be either the group_id or the tracking_id. | |
|
455
|
+
|
456
|
+
### Return type
|
457
|
+
|
458
|
+
[**ChunkGroup**](ChunkGroup.md)
|
459
|
+
|
460
|
+
### Authorization
|
461
|
+
|
462
|
+
[ApiKey](../README.md#ApiKey)
|
463
|
+
|
464
|
+
### HTTP request headers
|
465
|
+
|
466
|
+
- **Content-Type**: Not defined
|
467
|
+
- **Accept**: application/json
|
468
|
+
|
469
|
+
|
470
|
+
## get_chunks_in_group
|
471
|
+
|
472
|
+
> <BookmarkData> get_chunks_in_group(tr_dataset, tracking_or_chunk, group_id, page)
|
436
473
|
|
474
|
+
Get Chunks in Group
|
475
|
+
|
476
|
+
Get Chunks in Group Route to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon.
|
477
|
+
|
478
|
+
### Examples
|
479
|
+
|
480
|
+
```ruby
|
481
|
+
require 'time'
|
482
|
+
require 'trieve_ruby_client'
|
483
|
+
# setup authorization
|
484
|
+
TrieveRubyClient.configure do |config|
|
437
485
|
# Configure API key authorization: ApiKey
|
438
486
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
439
487
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -442,13 +490,13 @@ end
|
|
442
490
|
|
443
491
|
api_instance = TrieveRubyClient::ChunkGroupApi.new
|
444
492
|
tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
|
445
|
-
group_id = TODO # Uuid | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used.
|
446
493
|
tracking_or_chunk = 'tracking_or_chunk_example' # String | The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'
|
494
|
+
group_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used.
|
447
495
|
page = 789 # Integer | The page of chunks to get from the group
|
448
496
|
|
449
497
|
begin
|
450
|
-
#
|
451
|
-
result = api_instance.get_chunks_in_group(tr_dataset,
|
498
|
+
# Get Chunks in Group
|
499
|
+
result = api_instance.get_chunks_in_group(tr_dataset, tracking_or_chunk, group_id, page)
|
452
500
|
p result
|
453
501
|
rescue TrieveRubyClient::ApiError => e
|
454
502
|
puts "Error when calling ChunkGroupApi->get_chunks_in_group: #{e}"
|
@@ -459,12 +507,12 @@ end
|
|
459
507
|
|
460
508
|
This returns an Array which contains the response data, status code and headers.
|
461
509
|
|
462
|
-
> <Array(<BookmarkData>, Integer, Hash)> get_chunks_in_group_with_http_info(tr_dataset,
|
510
|
+
> <Array(<BookmarkData>, Integer, Hash)> get_chunks_in_group_with_http_info(tr_dataset, tracking_or_chunk, group_id, page)
|
463
511
|
|
464
512
|
```ruby
|
465
513
|
begin
|
466
|
-
#
|
467
|
-
data, status_code, headers = api_instance.get_chunks_in_group_with_http_info(tr_dataset,
|
514
|
+
# Get Chunks in Group
|
515
|
+
data, status_code, headers = api_instance.get_chunks_in_group_with_http_info(tr_dataset, tracking_or_chunk, group_id, page)
|
468
516
|
p status_code # => 2xx
|
469
517
|
p headers # => { ... }
|
470
518
|
p data # => <BookmarkData>
|
@@ -478,8 +526,8 @@ end
|
|
478
526
|
| Name | Type | Description | Notes |
|
479
527
|
| ---- | ---- | ----------- | ----- |
|
480
528
|
| **tr_dataset** | **String** | The dataset id to use for the request | |
|
481
|
-
| **group_id** | [**Uuid**](.md) | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used. | |
|
482
529
|
| **tracking_or_chunk** | **String** | The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id' | |
|
530
|
+
| **group_id** | **String** | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used. | |
|
483
531
|
| **page** | **Integer** | The page of chunks to get from the group | |
|
484
532
|
|
485
533
|
### Return type
|
@@ -488,7 +536,7 @@ end
|
|
488
536
|
|
489
537
|
### Authorization
|
490
538
|
|
491
|
-
[
|
539
|
+
[ApiKey](../README.md#ApiKey)
|
492
540
|
|
493
541
|
### HTTP request headers
|
494
542
|
|
@@ -500,9 +548,9 @@ end
|
|
500
548
|
|
501
549
|
> <BookmarkData> get_chunks_in_group_by_tracking_id(tr_dataset, group_tracking_id, page)
|
502
550
|
|
503
|
-
|
551
|
+
Get Chunks in Group by Tracking ID
|
504
552
|
|
505
|
-
|
553
|
+
Get Chunks in Group by Tracking ID Route to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon.
|
506
554
|
|
507
555
|
### Examples
|
508
556
|
|
@@ -511,11 +559,6 @@ require 'time'
|
|
511
559
|
require 'trieve_ruby_client'
|
512
560
|
# setup authorization
|
513
561
|
TrieveRubyClient.configure do |config|
|
514
|
-
# Configure API key authorization: Cookie
|
515
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
516
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
517
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
518
|
-
|
519
562
|
# Configure API key authorization: ApiKey
|
520
563
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
521
564
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -528,7 +571,7 @@ group_tracking_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of
|
|
528
571
|
page = 789 # Integer | The page of chunks to get from the group
|
529
572
|
|
530
573
|
begin
|
531
|
-
#
|
574
|
+
# Get Chunks in Group by Tracking ID
|
532
575
|
result = api_instance.get_chunks_in_group_by_tracking_id(tr_dataset, group_tracking_id, page)
|
533
576
|
p result
|
534
577
|
rescue TrieveRubyClient::ApiError => e
|
@@ -544,7 +587,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
544
587
|
|
545
588
|
```ruby
|
546
589
|
begin
|
547
|
-
#
|
590
|
+
# Get Chunks in Group by Tracking ID
|
548
591
|
data, status_code, headers = api_instance.get_chunks_in_group_by_tracking_id_with_http_info(tr_dataset, group_tracking_id, page)
|
549
592
|
p status_code # => 2xx
|
550
593
|
p headers # => { ... }
|
@@ -568,7 +611,7 @@ end
|
|
568
611
|
|
569
612
|
### Authorization
|
570
613
|
|
571
|
-
[
|
614
|
+
[ApiKey](../README.md#ApiKey)
|
572
615
|
|
573
616
|
### HTTP request headers
|
574
617
|
|
@@ -580,9 +623,9 @@ end
|
|
580
623
|
|
581
624
|
> <ChunkGroup> get_group_by_tracking_id(tr_dataset, tracking_id)
|
582
625
|
|
583
|
-
|
626
|
+
Get Group by Tracking ID
|
584
627
|
|
585
|
-
get_group_by_tracking_id
|
628
|
+
Get Group by Tracking ID Fetch the group with the given tracking id. get_group_by_tracking_id
|
586
629
|
|
587
630
|
### Examples
|
588
631
|
|
@@ -591,11 +634,6 @@ require 'time'
|
|
591
634
|
require 'trieve_ruby_client'
|
592
635
|
# setup authorization
|
593
636
|
TrieveRubyClient.configure do |config|
|
594
|
-
# Configure API key authorization: Cookie
|
595
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
596
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
597
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
598
|
-
|
599
637
|
# Configure API key authorization: ApiKey
|
600
638
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
601
639
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -607,7 +645,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
607
645
|
tracking_id = 'tracking_id_example' # String | The tracking id of the group to fetch.
|
608
646
|
|
609
647
|
begin
|
610
|
-
#
|
648
|
+
# Get Group by Tracking ID
|
611
649
|
result = api_instance.get_group_by_tracking_id(tr_dataset, tracking_id)
|
612
650
|
p result
|
613
651
|
rescue TrieveRubyClient::ApiError => e
|
@@ -623,7 +661,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
623
661
|
|
624
662
|
```ruby
|
625
663
|
begin
|
626
|
-
#
|
664
|
+
# Get Group by Tracking ID
|
627
665
|
data, status_code, headers = api_instance.get_group_by_tracking_id_with_http_info(tr_dataset, tracking_id)
|
628
666
|
p status_code # => 2xx
|
629
667
|
p headers # => { ... }
|
@@ -646,7 +684,7 @@ end
|
|
646
684
|
|
647
685
|
### Authorization
|
648
686
|
|
649
|
-
[
|
687
|
+
[ApiKey](../README.md#ApiKey)
|
650
688
|
|
651
689
|
### HTTP request headers
|
652
690
|
|
@@ -658,7 +696,9 @@ end
|
|
658
696
|
|
659
697
|
> <Array<BookmarkGroupResult>> get_groups_chunk_is_in(tr_dataset, get_groups_for_chunks_data)
|
660
698
|
|
699
|
+
Get Groups for Chunks
|
661
700
|
|
701
|
+
Get Groups for Chunks Route to get the groups that a chunk is in.
|
662
702
|
|
663
703
|
### Examples
|
664
704
|
|
@@ -667,11 +707,6 @@ require 'time'
|
|
667
707
|
require 'trieve_ruby_client'
|
668
708
|
# setup authorization
|
669
709
|
TrieveRubyClient.configure do |config|
|
670
|
-
# Configure API key authorization: Cookie
|
671
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
672
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
673
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
674
|
-
|
675
710
|
# Configure API key authorization: ApiKey
|
676
711
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
677
712
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -683,7 +718,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
683
718
|
get_groups_for_chunks_data = TrieveRubyClient::GetGroupsForChunksData.new({chunk_ids: ['chunk_ids_example']}) # GetGroupsForChunksData | JSON request payload to get the groups that a chunk is in
|
684
719
|
|
685
720
|
begin
|
686
|
-
|
721
|
+
# Get Groups for Chunks
|
687
722
|
result = api_instance.get_groups_chunk_is_in(tr_dataset, get_groups_for_chunks_data)
|
688
723
|
p result
|
689
724
|
rescue TrieveRubyClient::ApiError => e
|
@@ -699,7 +734,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
699
734
|
|
700
735
|
```ruby
|
701
736
|
begin
|
702
|
-
|
737
|
+
# Get Groups for Chunks
|
703
738
|
data, status_code, headers = api_instance.get_groups_chunk_is_in_with_http_info(tr_dataset, get_groups_for_chunks_data)
|
704
739
|
p status_code # => 2xx
|
705
740
|
p headers # => { ... }
|
@@ -722,7 +757,7 @@ end
|
|
722
757
|
|
723
758
|
### Authorization
|
724
759
|
|
725
|
-
[
|
760
|
+
[ApiKey](../README.md#ApiKey)
|
726
761
|
|
727
762
|
### HTTP request headers
|
728
763
|
|
@@ -734,7 +769,9 @@ end
|
|
734
769
|
|
735
770
|
> <Array<GroupScoreChunkDTO>> get_recommended_groups(tr_dataset, reccomend_group_chunks_request)
|
736
771
|
|
772
|
+
Get Recommended Groups
|
737
773
|
|
774
|
+
Get Recommended Groups Route to get recommended groups. This route will return groups which are similar to the groups in the request body.
|
738
775
|
|
739
776
|
### Examples
|
740
777
|
|
@@ -743,11 +780,6 @@ require 'time'
|
|
743
780
|
require 'trieve_ruby_client'
|
744
781
|
# setup authorization
|
745
782
|
TrieveRubyClient.configure do |config|
|
746
|
-
# Configure API key authorization: Cookie
|
747
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
748
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
749
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
750
|
-
|
751
783
|
# Configure API key authorization: ApiKey
|
752
784
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
753
785
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -759,7 +791,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
759
791
|
reccomend_group_chunks_request = TrieveRubyClient::ReccomendGroupChunksRequest.new # ReccomendGroupChunksRequest | JSON request payload to get recommendations of chunks similar to the chunks in the request
|
760
792
|
|
761
793
|
begin
|
762
|
-
|
794
|
+
# Get Recommended Groups
|
763
795
|
result = api_instance.get_recommended_groups(tr_dataset, reccomend_group_chunks_request)
|
764
796
|
p result
|
765
797
|
rescue TrieveRubyClient::ApiError => e
|
@@ -775,7 +807,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
775
807
|
|
776
808
|
```ruby
|
777
809
|
begin
|
778
|
-
|
810
|
+
# Get Recommended Groups
|
779
811
|
data, status_code, headers = api_instance.get_recommended_groups_with_http_info(tr_dataset, reccomend_group_chunks_request)
|
780
812
|
p status_code # => 2xx
|
781
813
|
p headers # => { ... }
|
@@ -798,7 +830,7 @@ end
|
|
798
830
|
|
799
831
|
### Authorization
|
800
832
|
|
801
|
-
[
|
833
|
+
[ApiKey](../README.md#ApiKey)
|
802
834
|
|
803
835
|
### HTTP request headers
|
804
836
|
|
@@ -810,9 +842,9 @@ end
|
|
810
842
|
|
811
843
|
> <GroupData> get_specific_dataset_chunk_groups(tr_dataset, dataset_id, page)
|
812
844
|
|
813
|
-
|
845
|
+
Get Groups for Dataset
|
814
846
|
|
815
|
-
|
847
|
+
Get Groups for Dataset Fetch the groups which belong to a dataset specified by its id.
|
816
848
|
|
817
849
|
### Examples
|
818
850
|
|
@@ -821,11 +853,6 @@ require 'time'
|
|
821
853
|
require 'trieve_ruby_client'
|
822
854
|
# setup authorization
|
823
855
|
TrieveRubyClient.configure do |config|
|
824
|
-
# Configure API key authorization: Cookie
|
825
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
826
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
827
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
828
|
-
|
829
856
|
# Configure API key authorization: ApiKey
|
830
857
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
831
858
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -838,7 +865,7 @@ dataset_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the dat
|
|
838
865
|
page = 789 # Integer | The page of groups to fetch. Each page contains 10 groups. Support for custom page size is coming soon.
|
839
866
|
|
840
867
|
begin
|
841
|
-
#
|
868
|
+
# Get Groups for Dataset
|
842
869
|
result = api_instance.get_specific_dataset_chunk_groups(tr_dataset, dataset_id, page)
|
843
870
|
p result
|
844
871
|
rescue TrieveRubyClient::ApiError => e
|
@@ -854,7 +881,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
854
881
|
|
855
882
|
```ruby
|
856
883
|
begin
|
857
|
-
#
|
884
|
+
# Get Groups for Dataset
|
858
885
|
data, status_code, headers = api_instance.get_specific_dataset_chunk_groups_with_http_info(tr_dataset, dataset_id, page)
|
859
886
|
p status_code # => 2xx
|
860
887
|
p headers # => { ... }
|
@@ -878,7 +905,7 @@ end
|
|
878
905
|
|
879
906
|
### Authorization
|
880
907
|
|
881
|
-
[
|
908
|
+
[ApiKey](../README.md#ApiKey)
|
882
909
|
|
883
910
|
### HTTP request headers
|
884
911
|
|
@@ -890,9 +917,9 @@ end
|
|
890
917
|
|
891
918
|
> remove_chunk_from_group(tr_dataset, group_id, create_chunk_group_data)
|
892
919
|
|
893
|
-
|
920
|
+
Remove Chunk from Group
|
894
921
|
|
895
|
-
|
922
|
+
Remove Chunk from Group Route to remove a chunk from a group.
|
896
923
|
|
897
924
|
### Examples
|
898
925
|
|
@@ -901,11 +928,6 @@ require 'time'
|
|
901
928
|
require 'trieve_ruby_client'
|
902
929
|
# setup authorization
|
903
930
|
TrieveRubyClient.configure do |config|
|
904
|
-
# Configure API key authorization: Cookie
|
905
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
906
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
907
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
908
|
-
|
909
931
|
# Configure API key authorization: ApiKey
|
910
932
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
911
933
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -918,7 +940,7 @@ group_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Id of the group to
|
|
918
940
|
create_chunk_group_data = TrieveRubyClient::CreateChunkGroupData.new({description: 'description_example', name: 'name_example'}) # CreateChunkGroupData | JSON request payload to cretea a chunkGroup
|
919
941
|
|
920
942
|
begin
|
921
|
-
#
|
943
|
+
# Remove Chunk from Group
|
922
944
|
api_instance.remove_chunk_from_group(tr_dataset, group_id, create_chunk_group_data)
|
923
945
|
rescue TrieveRubyClient::ApiError => e
|
924
946
|
puts "Error when calling ChunkGroupApi->remove_chunk_from_group: #{e}"
|
@@ -933,7 +955,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
933
955
|
|
934
956
|
```ruby
|
935
957
|
begin
|
936
|
-
#
|
958
|
+
# Remove Chunk from Group
|
937
959
|
data, status_code, headers = api_instance.remove_chunk_from_group_with_http_info(tr_dataset, group_id, create_chunk_group_data)
|
938
960
|
p status_code # => 2xx
|
939
961
|
p headers # => { ... }
|
@@ -957,7 +979,7 @@ nil (empty response body)
|
|
957
979
|
|
958
980
|
### Authorization
|
959
981
|
|
960
|
-
[
|
982
|
+
[ApiKey](../README.md#ApiKey)
|
961
983
|
|
962
984
|
### HTTP request headers
|
963
985
|
|
@@ -969,9 +991,9 @@ nil (empty response body)
|
|
969
991
|
|
970
992
|
> <SearchOverGroupsResponseBody> search_over_groups(search_over_groups_data)
|
971
993
|
|
972
|
-
|
994
|
+
Search Over Groups
|
973
995
|
|
974
|
-
|
996
|
+
Search Over Groups This route allows you to get groups as results instead of chunks. Each group returned will have the matching chunks sorted by similarity within the group. This is useful for when you want to get groups of chunks which are similar to the search query. If choosing hybrid search, the results will be re-ranked using BAAI/bge-reranker-large. Compatible with semantic, fulltext, or hybrid search modes.
|
975
997
|
|
976
998
|
### Examples
|
977
999
|
|
@@ -983,7 +1005,7 @@ api_instance = TrieveRubyClient::ChunkGroupApi.new
|
|
983
1005
|
search_over_groups_data = TrieveRubyClient::SearchOverGroupsData.new({query: 'query_example', search_type: 'search_type_example'}) # SearchOverGroupsData | JSON request payload to semantically search over groups
|
984
1006
|
|
985
1007
|
begin
|
986
|
-
#
|
1008
|
+
# Search Over Groups
|
987
1009
|
result = api_instance.search_over_groups(search_over_groups_data)
|
988
1010
|
p result
|
989
1011
|
rescue TrieveRubyClient::ApiError => e
|
@@ -999,7 +1021,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
999
1021
|
|
1000
1022
|
```ruby
|
1001
1023
|
begin
|
1002
|
-
#
|
1024
|
+
# Search Over Groups
|
1003
1025
|
data, status_code, headers = api_instance.search_over_groups_with_http_info(search_over_groups_data)
|
1004
1026
|
p status_code # => 2xx
|
1005
1027
|
p headers # => { ... }
|
@@ -1033,9 +1055,9 @@ No authorization required
|
|
1033
1055
|
|
1034
1056
|
> <SearchGroupsResult> search_within_group(tr_dataset, search_within_group_data)
|
1035
1057
|
|
1036
|
-
|
1058
|
+
Search Within Group
|
1037
1059
|
|
1038
|
-
|
1060
|
+
Search Within Group This route allows you to search only within a group. This is useful for when you only want search results to contain chunks which are members of a specific group. If choosing hybrid search, the results will be re-ranked using BAAI/bge-reranker-large.
|
1039
1061
|
|
1040
1062
|
### Examples
|
1041
1063
|
|
@@ -1044,11 +1066,6 @@ require 'time'
|
|
1044
1066
|
require 'trieve_ruby_client'
|
1045
1067
|
# setup authorization
|
1046
1068
|
TrieveRubyClient.configure do |config|
|
1047
|
-
# Configure API key authorization: Cookie
|
1048
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
1049
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1050
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
1051
|
-
|
1052
1069
|
# Configure API key authorization: ApiKey
|
1053
1070
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
1054
1071
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -1060,7 +1077,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
1060
1077
|
search_within_group_data = TrieveRubyClient::SearchWithinGroupData.new({query: 'query_example', search_type: 'search_type_example'}) # SearchWithinGroupData | JSON request payload to semantically search a group
|
1061
1078
|
|
1062
1079
|
begin
|
1063
|
-
#
|
1080
|
+
# Search Within Group
|
1064
1081
|
result = api_instance.search_within_group(tr_dataset, search_within_group_data)
|
1065
1082
|
p result
|
1066
1083
|
rescue TrieveRubyClient::ApiError => e
|
@@ -1076,7 +1093,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
1076
1093
|
|
1077
1094
|
```ruby
|
1078
1095
|
begin
|
1079
|
-
#
|
1096
|
+
# Search Within Group
|
1080
1097
|
data, status_code, headers = api_instance.search_within_group_with_http_info(tr_dataset, search_within_group_data)
|
1081
1098
|
p status_code # => 2xx
|
1082
1099
|
p headers # => { ... }
|
@@ -1099,7 +1116,7 @@ end
|
|
1099
1116
|
|
1100
1117
|
### Authorization
|
1101
1118
|
|
1102
|
-
[
|
1119
|
+
[ApiKey](../README.md#ApiKey)
|
1103
1120
|
|
1104
1121
|
### HTTP request headers
|
1105
1122
|
|
@@ -1111,9 +1128,9 @@ end
|
|
1111
1128
|
|
1112
1129
|
> update_chunk_group(tr_dataset, update_chunk_group_data)
|
1113
1130
|
|
1114
|
-
|
1131
|
+
Update Group
|
1115
1132
|
|
1116
|
-
|
1133
|
+
Update Group Update a chunk_group.
|
1117
1134
|
|
1118
1135
|
### Examples
|
1119
1136
|
|
@@ -1122,11 +1139,6 @@ require 'time'
|
|
1122
1139
|
require 'trieve_ruby_client'
|
1123
1140
|
# setup authorization
|
1124
1141
|
TrieveRubyClient.configure do |config|
|
1125
|
-
# Configure API key authorization: Cookie
|
1126
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
1127
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1128
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
1129
|
-
|
1130
1142
|
# Configure API key authorization: ApiKey
|
1131
1143
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
1132
1144
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -1138,7 +1150,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
1138
1150
|
update_chunk_group_data = TrieveRubyClient::UpdateChunkGroupData.new # UpdateChunkGroupData | JSON request payload to update a chunkGroup
|
1139
1151
|
|
1140
1152
|
begin
|
1141
|
-
#
|
1153
|
+
# Update Group
|
1142
1154
|
api_instance.update_chunk_group(tr_dataset, update_chunk_group_data)
|
1143
1155
|
rescue TrieveRubyClient::ApiError => e
|
1144
1156
|
puts "Error when calling ChunkGroupApi->update_chunk_group: #{e}"
|
@@ -1153,7 +1165,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
1153
1165
|
|
1154
1166
|
```ruby
|
1155
1167
|
begin
|
1156
|
-
#
|
1168
|
+
# Update Group
|
1157
1169
|
data, status_code, headers = api_instance.update_chunk_group_with_http_info(tr_dataset, update_chunk_group_data)
|
1158
1170
|
p status_code # => 2xx
|
1159
1171
|
p headers # => { ... }
|
@@ -1176,7 +1188,7 @@ nil (empty response body)
|
|
1176
1188
|
|
1177
1189
|
### Authorization
|
1178
1190
|
|
1179
|
-
[
|
1191
|
+
[ApiKey](../README.md#ApiKey)
|
1180
1192
|
|
1181
1193
|
### HTTP request headers
|
1182
1194
|
|
@@ -1188,7 +1200,9 @@ nil (empty response body)
|
|
1188
1200
|
|
1189
1201
|
> update_group_by_tracking_id(tr_dataset, tracking_id, update_group_by_tracking_id_data)
|
1190
1202
|
|
1203
|
+
Update Group by Tracking ID
|
1191
1204
|
|
1205
|
+
Update Group by Tracking ID Update a chunk_group with the given tracking id.
|
1192
1206
|
|
1193
1207
|
### Examples
|
1194
1208
|
|
@@ -1197,11 +1211,6 @@ require 'time'
|
|
1197
1211
|
require 'trieve_ruby_client'
|
1198
1212
|
# setup authorization
|
1199
1213
|
TrieveRubyClient.configure do |config|
|
1200
|
-
# Configure API key authorization: Cookie
|
1201
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
1202
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1203
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
1204
|
-
|
1205
1214
|
# Configure API key authorization: ApiKey
|
1206
1215
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
1207
1216
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -1214,7 +1223,7 @@ tracking_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Tracking id of t
|
|
1214
1223
|
update_group_by_tracking_id_data = TrieveRubyClient::UpdateGroupByTrackingIDData.new({tracking_id: 'tracking_id_example'}) # UpdateGroupByTrackingIDData | JSON request payload to update a chunkGroup
|
1215
1224
|
|
1216
1225
|
begin
|
1217
|
-
|
1226
|
+
# Update Group by Tracking ID
|
1218
1227
|
api_instance.update_group_by_tracking_id(tr_dataset, tracking_id, update_group_by_tracking_id_data)
|
1219
1228
|
rescue TrieveRubyClient::ApiError => e
|
1220
1229
|
puts "Error when calling ChunkGroupApi->update_group_by_tracking_id: #{e}"
|
@@ -1229,7 +1238,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
1229
1238
|
|
1230
1239
|
```ruby
|
1231
1240
|
begin
|
1232
|
-
|
1241
|
+
# Update Group by Tracking ID
|
1233
1242
|
data, status_code, headers = api_instance.update_group_by_tracking_id_with_http_info(tr_dataset, tracking_id, update_group_by_tracking_id_data)
|
1234
1243
|
p status_code # => 2xx
|
1235
1244
|
p headers # => { ... }
|
@@ -1253,7 +1262,7 @@ nil (empty response body)
|
|
1253
1262
|
|
1254
1263
|
### Authorization
|
1255
1264
|
|
1256
|
-
[
|
1265
|
+
[ApiKey](../README.md#ApiKey)
|
1257
1266
|
|
1258
1267
|
### HTTP request headers
|
1259
1268
|
|