trieve_ruby_client 0.6.0 → 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 +15 -19
- data/docs/BookmarkData.md +1 -1
- data/docs/ChunkApi.md +9 -9
- data/docs/ChunkData.md +2 -0
- data/docs/ChunkGroupApi.md +14 -14
- data/docs/ChunkMetadataWithScore.md +44 -0
- data/docs/CreateChunkGroupData.md +1 -1
- data/docs/FileApi.md +1 -1
- data/docs/GetEventsData.md +1 -1
- data/docs/GroupScoreChunk.md +24 -0
- data/docs/GroupScoreSlimChunks.md +20 -0
- data/docs/ScoreChunkDTO.md +1 -1
- data/docs/SearchOverGroupsResults.md +20 -0
- data/docs/SearchOverGroupsSlimResults.md +20 -0
- data/docs/SearchWithinGroupResults.md +22 -0
- data/docs/SearchWithinGroupSlimResults.md +22 -0
- data/docs/SlimChunkMetadataWithScore.md +38 -0
- data/docs/UpdateChunkByTrackingIdData.md +2 -0
- data/docs/UpdateChunkData.md +2 -0
- data/docs/UploadFileData.md +2 -2
- data/docs/UserApi.md +2 -2
- data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_api.rb +9 -9
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +10 -10
- 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 +3 -3
- 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 +2 -2
- 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 +387 -0
- 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 +2 -8
- 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 +2 -2
- 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 +259 -0
- data/lib/trieve_ruby_client/models/group_score_slim_chunks.rb +239 -0
- 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 +2 -2
- 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 +239 -0
- data/lib/trieve_ruby_client/models/search_over_groups_slim_results.rb +239 -0
- 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 +255 -0
- data/lib/trieve_ruby_client/models/search_within_group_slim_results.rb +255 -0
- 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 +345 -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/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 +9 -13
- data/openapi-generator.yaml +1 -1
- data/openapi.json +279 -198
- data/spec/models/chunk_metadata_with_score_spec.rb +114 -0
- data/spec/models/group_score_chunk_spec.rb +48 -0
- data/spec/models/group_score_slim_chunks_spec.rb +42 -0
- data/spec/models/search_over_groups_results_spec.rb +42 -0
- data/spec/models/search_over_groups_slim_results_spec.rb +42 -0
- data/spec/models/search_within_group_results_spec.rb +48 -0
- data/spec/models/search_within_group_slim_results_spec.rb +48 -0
- data/spec/models/slim_chunk_metadata_with_score_spec.rb +96 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.6.0.gem +0 -0
- data/trieve_ruby_client-0.6.2.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +36 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98f7a830f8d3738bbd09ecd1a65b9162f9fabfd8cd15b178e7f97c9ba3d3b3b7
|
4
|
+
data.tar.gz: aa8a52a5502c7e3ba00bc5a7753e2d614780f9d8fb8374ac2dda36a4d2c8f140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 972a16967ebd009b821f9ad19546d93272b612288828aa1fd145c5dc6f3390c29140c322a9bd9dae982b3aac6cf7dbab3db0ced6f2e0c4467b498f6689de955f
|
7
|
+
data.tar.gz: 0ab677d0ee623cef39b3bf4d413f1e0f62c5f3d47747e6a81e61da71c9372fe8bc73ff5f29dd96971057f9bd59c62d9a15251dcaf8280c24196c97cd1cb331a7
|
data/README.md
CHANGED
@@ -6,8 +6,8 @@ Trieve OpenAPI Specification. This document describes all of the operations avai
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
|
-
- API version: 0.6.
|
10
|
-
- Package version: 0.6.
|
9
|
+
- API version: 0.6.7
|
10
|
+
- Package version: 0.6.7
|
11
11
|
- Generator version: 7.4.0
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [https://trieve.ai](https://trieve.ai)
|
@@ -25,16 +25,16 @@ gem build trieve_ruby_client.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./trieve_ruby_client-0.6.
|
28
|
+
gem install ./trieve_ruby_client-0.6.7.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./trieve_ruby_client-0.6.
|
31
|
+
(for development, run `gem install --dev ./trieve_ruby_client-0.6.7.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'trieve_ruby_client', '~> 0.6.
|
37
|
+
gem 'trieve_ruby_client', '~> 0.6.7'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -139,8 +139,8 @@ Class | Method | HTTP request | Description
|
|
139
139
|
*TrieveRubyClient::TopicApi* | [**delete_topic**](docs/TopicApi.md#delete_topic) | **DELETE** /api/topic/{topic_id} | Delete Topic
|
140
140
|
*TrieveRubyClient::TopicApi* | [**get_all_topics_for_user**](docs/TopicApi.md#get_all_topics_for_user) | **GET** /api/topic/user/{user_id} | Get All Topics for User
|
141
141
|
*TrieveRubyClient::TopicApi* | [**update_topic**](docs/TopicApi.md#update_topic) | **PUT** /api/topic | Update Topic
|
142
|
-
*TrieveRubyClient::UserApi* | [**delete_user_api_key**](docs/UserApi.md#delete_user_api_key) | **DELETE** /api/user/
|
143
|
-
*TrieveRubyClient::UserApi* | [**set_user_api_key**](docs/UserApi.md#set_user_api_key) | **POST** /api/user/
|
142
|
+
*TrieveRubyClient::UserApi* | [**delete_user_api_key**](docs/UserApi.md#delete_user_api_key) | **DELETE** /api/user/api_key/{api_key_id} | Delete User Api Key
|
143
|
+
*TrieveRubyClient::UserApi* | [**set_user_api_key**](docs/UserApi.md#set_user_api_key) | **POST** /api/user/api_key | Set User Api Key
|
144
144
|
*TrieveRubyClient::UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /api/user | Update User
|
145
145
|
|
146
146
|
|
@@ -158,7 +158,7 @@ Class | Method | HTTP request | Description
|
|
158
158
|
- [TrieveRubyClient::ChunkGroup](docs/ChunkGroup.md)
|
159
159
|
- [TrieveRubyClient::ChunkGroupAndFile](docs/ChunkGroupAndFile.md)
|
160
160
|
- [TrieveRubyClient::ChunkMetadata](docs/ChunkMetadata.md)
|
161
|
-
- [TrieveRubyClient::
|
161
|
+
- [TrieveRubyClient::ChunkMetadataWithScore](docs/ChunkMetadataWithScore.md)
|
162
162
|
- [TrieveRubyClient::ClientDatasetConfiguration](docs/ClientDatasetConfiguration.md)
|
163
163
|
- [TrieveRubyClient::CreateChunkData](docs/CreateChunkData.md)
|
164
164
|
- [TrieveRubyClient::CreateChunkGroupData](docs/CreateChunkGroupData.md)
|
@@ -183,8 +183,8 @@ Class | Method | HTTP request | Description
|
|
183
183
|
- [TrieveRubyClient::GetEventsData](docs/GetEventsData.md)
|
184
184
|
- [TrieveRubyClient::GetGroupsForChunksData](docs/GetGroupsForChunksData.md)
|
185
185
|
- [TrieveRubyClient::GroupData](docs/GroupData.md)
|
186
|
-
- [TrieveRubyClient::
|
187
|
-
- [TrieveRubyClient::
|
186
|
+
- [TrieveRubyClient::GroupScoreChunk](docs/GroupScoreChunk.md)
|
187
|
+
- [TrieveRubyClient::GroupScoreSlimChunks](docs/GroupScoreSlimChunks.md)
|
188
188
|
- [TrieveRubyClient::InvitationData](docs/InvitationData.md)
|
189
189
|
- [TrieveRubyClient::MatchCondition](docs/MatchCondition.md)
|
190
190
|
- [TrieveRubyClient::Message](docs/Message.md)
|
@@ -193,8 +193,6 @@ Class | Method | HTTP request | Description
|
|
193
193
|
- [TrieveRubyClient::Range](docs/Range.md)
|
194
194
|
- [TrieveRubyClient::RangeCondition](docs/RangeCondition.md)
|
195
195
|
- [TrieveRubyClient::RecommendChunksRequest](docs/RecommendChunksRequest.md)
|
196
|
-
- [TrieveRubyClient::RecommendChunksResponseTypes](docs/RecommendChunksResponseTypes.md)
|
197
|
-
- [TrieveRubyClient::RecommendGroupChunkResponseTypes](docs/RecommendGroupChunkResponseTypes.md)
|
198
196
|
- [TrieveRubyClient::RecommendGroupChunksRequest](docs/RecommendGroupChunksRequest.md)
|
199
197
|
- [TrieveRubyClient::RegenerateMessageData](docs/RegenerateMessageData.md)
|
200
198
|
- [TrieveRubyClient::ReturnQueuedChunk](docs/ReturnQueuedChunk.md)
|
@@ -202,20 +200,18 @@ Class | Method | HTTP request | Description
|
|
202
200
|
- [TrieveRubyClient::ScoreSlimChunks](docs/ScoreSlimChunks.md)
|
203
201
|
- [TrieveRubyClient::SearchChunkData](docs/SearchChunkData.md)
|
204
202
|
- [TrieveRubyClient::SearchChunkQueryResponseBody](docs/SearchChunkQueryResponseBody.md)
|
205
|
-
- [TrieveRubyClient::SearchChunkResponseTypes](docs/SearchChunkResponseTypes.md)
|
206
|
-
- [TrieveRubyClient::SearchGroupSlimChunksResult](docs/SearchGroupSlimChunksResult.md)
|
207
|
-
- [TrieveRubyClient::SearchGroupsResult](docs/SearchGroupsResult.md)
|
208
203
|
- [TrieveRubyClient::SearchOverGroupsData](docs/SearchOverGroupsData.md)
|
209
|
-
- [TrieveRubyClient::
|
210
|
-
- [TrieveRubyClient::
|
211
|
-
- [TrieveRubyClient::SearchOverGroupsSlimChunksResponseBody](docs/SearchOverGroupsSlimChunksResponseBody.md)
|
204
|
+
- [TrieveRubyClient::SearchOverGroupsResults](docs/SearchOverGroupsResults.md)
|
205
|
+
- [TrieveRubyClient::SearchOverGroupsSlimResults](docs/SearchOverGroupsSlimResults.md)
|
212
206
|
- [TrieveRubyClient::SearchSlimChunkQueryResponseBody](docs/SearchSlimChunkQueryResponseBody.md)
|
213
207
|
- [TrieveRubyClient::SearchWithinGroupData](docs/SearchWithinGroupData.md)
|
214
|
-
- [TrieveRubyClient::
|
208
|
+
- [TrieveRubyClient::SearchWithinGroupResults](docs/SearchWithinGroupResults.md)
|
209
|
+
- [TrieveRubyClient::SearchWithinGroupSlimResults](docs/SearchWithinGroupSlimResults.md)
|
215
210
|
- [TrieveRubyClient::SetUserApiKeyRequest](docs/SetUserApiKeyRequest.md)
|
216
211
|
- [TrieveRubyClient::SetUserApiKeyResponse](docs/SetUserApiKeyResponse.md)
|
217
212
|
- [TrieveRubyClient::SingleQueuedChunkResponse](docs/SingleQueuedChunkResponse.md)
|
218
213
|
- [TrieveRubyClient::SlimChunkMetadata](docs/SlimChunkMetadata.md)
|
214
|
+
- [TrieveRubyClient::SlimChunkMetadataWithScore](docs/SlimChunkMetadataWithScore.md)
|
219
215
|
- [TrieveRubyClient::SlimGroup](docs/SlimGroup.md)
|
220
216
|
- [TrieveRubyClient::SlimUser](docs/SlimUser.md)
|
221
217
|
- [TrieveRubyClient::StripePlan](docs/StripePlan.md)
|
data/docs/BookmarkData.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **chunks** | [**Array<
|
7
|
+
| **chunks** | [**Array<ChunkMetadata>**](ChunkMetadata.md) | | |
|
8
8
|
| **group** | [**ChunkGroup**](ChunkGroup.md) | | |
|
9
9
|
| **total_pages** | **Integer** | | |
|
10
10
|
|
data/docs/ChunkApi.md
CHANGED
@@ -528,7 +528,7 @@ end
|
|
528
528
|
|
529
529
|
## get_recommended_chunks
|
530
530
|
|
531
|
-
> <
|
531
|
+
> <Array<ChunkMetadataWithScore>> get_recommended_chunks(tr_dataset, recommend_chunks_request)
|
532
532
|
|
533
533
|
Get Recommended Chunks
|
534
534
|
|
@@ -564,7 +564,7 @@ end
|
|
564
564
|
|
565
565
|
This returns an Array which contains the response data, status code and headers.
|
566
566
|
|
567
|
-
> <Array(<
|
567
|
+
> <Array(<Array<ChunkMetadataWithScore>>, Integer, Hash)> get_recommended_chunks_with_http_info(tr_dataset, recommend_chunks_request)
|
568
568
|
|
569
569
|
```ruby
|
570
570
|
begin
|
@@ -572,7 +572,7 @@ begin
|
|
572
572
|
data, status_code, headers = api_instance.get_recommended_chunks_with_http_info(tr_dataset, recommend_chunks_request)
|
573
573
|
p status_code # => 2xx
|
574
574
|
p headers # => { ... }
|
575
|
-
p data # => <
|
575
|
+
p data # => <Array<ChunkMetadataWithScore>>
|
576
576
|
rescue TrieveRubyClient::ApiError => e
|
577
577
|
puts "Error when calling ChunkApi->get_recommended_chunks_with_http_info: #{e}"
|
578
578
|
end
|
@@ -587,7 +587,7 @@ end
|
|
587
587
|
|
588
588
|
### Return type
|
589
589
|
|
590
|
-
[**
|
590
|
+
[**Array<ChunkMetadataWithScore>**](ChunkMetadataWithScore.md)
|
591
591
|
|
592
592
|
### Authorization
|
593
593
|
|
@@ -601,11 +601,11 @@ end
|
|
601
601
|
|
602
602
|
## search_chunk
|
603
603
|
|
604
|
-
> <
|
604
|
+
> <SearchChunkQueryResponseBody> search_chunk(tr_dataset, search_chunk_data)
|
605
605
|
|
606
606
|
Search
|
607
607
|
|
608
|
-
Search This 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.
|
608
|
+
Search This 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.
|
609
609
|
|
610
610
|
### Examples
|
611
611
|
|
@@ -637,7 +637,7 @@ end
|
|
637
637
|
|
638
638
|
This returns an Array which contains the response data, status code and headers.
|
639
639
|
|
640
|
-
> <Array(<
|
640
|
+
> <Array(<SearchChunkQueryResponseBody>, Integer, Hash)> search_chunk_with_http_info(tr_dataset, search_chunk_data)
|
641
641
|
|
642
642
|
```ruby
|
643
643
|
begin
|
@@ -645,7 +645,7 @@ begin
|
|
645
645
|
data, status_code, headers = api_instance.search_chunk_with_http_info(tr_dataset, search_chunk_data)
|
646
646
|
p status_code # => 2xx
|
647
647
|
p headers # => { ... }
|
648
|
-
p data # => <
|
648
|
+
p data # => <SearchChunkQueryResponseBody>
|
649
649
|
rescue TrieveRubyClient::ApiError => e
|
650
650
|
puts "Error when calling ChunkApi->search_chunk_with_http_info: #{e}"
|
651
651
|
end
|
@@ -660,7 +660,7 @@ end
|
|
660
660
|
|
661
661
|
### Return type
|
662
662
|
|
663
|
-
[**
|
663
|
+
[**SearchChunkQueryResponseBody**](SearchChunkQueryResponseBody.md)
|
664
664
|
|
665
665
|
### Authorization
|
666
666
|
|
data/docs/ChunkData.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **chunk_html** | **String** | HTML content of the chunk. 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. | [optional] |
|
8
8
|
| **chunk_vector** | **Array<Float>** | 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. | [optional] |
|
9
|
+
| **convert_html_to_text** | **Boolean** | 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. | [optional] |
|
9
10
|
| **file_id** | **String** | File_uuid is the uuid of the file that the chunk is associated with. This is used to associate chunks with files. This is useful for when you want to delete a file and all of its associated chunks. | [optional] |
|
10
11
|
| **group_ids** | **Array<String>** | Group ids are the ids of the groups that the chunk should be placed into. This is useful for when you want to create a chunk and add it to a group or multiple groups in one request. Necessary because this route queues the chunk for ingestion and the chunk may not exist yet immediately after response. | [optional] |
|
11
12
|
| **group_tracking_ids** | **Array<String>** | Group tracking_ids are the tracking_ids of the groups that the chunk should be placed into. This is useful for when you want to create a chunk and add it to a group or multiple groups in one request. Necessary because this route queues the chunk for ingestion and the chunk may not exist yet immediately after response. | [optional] |
|
@@ -26,6 +27,7 @@ require 'trieve_ruby_client'
|
|
26
27
|
instance = TrieveRubyClient::ChunkData.new(
|
27
28
|
chunk_html: null,
|
28
29
|
chunk_vector: null,
|
30
|
+
convert_html_to_text: null,
|
29
31
|
file_id: null,
|
30
32
|
group_ids: null,
|
31
33
|
group_tracking_ids: null,
|
data/docs/ChunkGroupApi.md
CHANGED
@@ -194,7 +194,7 @@ end
|
|
194
194
|
|
195
195
|
api_instance = TrieveRubyClient::ChunkGroupApi.new
|
196
196
|
tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
|
197
|
-
create_chunk_group_data = TrieveRubyClient::CreateChunkGroupData.new({
|
197
|
+
create_chunk_group_data = TrieveRubyClient::CreateChunkGroupData.new({name: 'name_example'}) # CreateChunkGroupData | JSON request payload to cretea a chunkGroup
|
198
198
|
|
199
199
|
begin
|
200
200
|
# Create Chunk Group
|
@@ -761,7 +761,7 @@ end
|
|
761
761
|
|
762
762
|
## get_recommended_groups
|
763
763
|
|
764
|
-
> <
|
764
|
+
> <Array<GroupScoreChunk>> get_recommended_groups(tr_dataset, recommend_group_chunks_request)
|
765
765
|
|
766
766
|
Get Recommended Groups
|
767
767
|
|
@@ -797,7 +797,7 @@ end
|
|
797
797
|
|
798
798
|
This returns an Array which contains the response data, status code and headers.
|
799
799
|
|
800
|
-
> <Array(<
|
800
|
+
> <Array(<Array<GroupScoreChunk>>, Integer, Hash)> get_recommended_groups_with_http_info(tr_dataset, recommend_group_chunks_request)
|
801
801
|
|
802
802
|
```ruby
|
803
803
|
begin
|
@@ -805,7 +805,7 @@ begin
|
|
805
805
|
data, status_code, headers = api_instance.get_recommended_groups_with_http_info(tr_dataset, recommend_group_chunks_request)
|
806
806
|
p status_code # => 2xx
|
807
807
|
p headers # => { ... }
|
808
|
-
p data # => <
|
808
|
+
p data # => <Array<GroupScoreChunk>>
|
809
809
|
rescue TrieveRubyClient::ApiError => e
|
810
810
|
puts "Error when calling ChunkGroupApi->get_recommended_groups_with_http_info: #{e}"
|
811
811
|
end
|
@@ -820,7 +820,7 @@ end
|
|
820
820
|
|
821
821
|
### Return type
|
822
822
|
|
823
|
-
[**
|
823
|
+
[**Array<GroupScoreChunk>**](GroupScoreChunk.md)
|
824
824
|
|
825
825
|
### Authorization
|
826
826
|
|
@@ -931,7 +931,7 @@ end
|
|
931
931
|
api_instance = TrieveRubyClient::ChunkGroupApi.new
|
932
932
|
tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
|
933
933
|
group_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Id of the group to remove the bookmark'ed chunk from
|
934
|
-
create_chunk_group_data = TrieveRubyClient::CreateChunkGroupData.new({
|
934
|
+
create_chunk_group_data = TrieveRubyClient::CreateChunkGroupData.new({name: 'name_example'}) # CreateChunkGroupData | JSON request payload to cretea a chunkGroup
|
935
935
|
|
936
936
|
begin
|
937
937
|
# Remove Chunk from Group
|
@@ -983,7 +983,7 @@ nil (empty response body)
|
|
983
983
|
|
984
984
|
## search_over_groups
|
985
985
|
|
986
|
-
> <
|
986
|
+
> <SearchOverGroupsResults> search_over_groups(tr_dataset, search_over_groups_data)
|
987
987
|
|
988
988
|
Search Over Groups
|
989
989
|
|
@@ -1019,7 +1019,7 @@ end
|
|
1019
1019
|
|
1020
1020
|
This returns an Array which contains the response data, status code and headers.
|
1021
1021
|
|
1022
|
-
> <Array(<
|
1022
|
+
> <Array(<SearchOverGroupsResults>, Integer, Hash)> search_over_groups_with_http_info(tr_dataset, search_over_groups_data)
|
1023
1023
|
|
1024
1024
|
```ruby
|
1025
1025
|
begin
|
@@ -1027,7 +1027,7 @@ begin
|
|
1027
1027
|
data, status_code, headers = api_instance.search_over_groups_with_http_info(tr_dataset, search_over_groups_data)
|
1028
1028
|
p status_code # => 2xx
|
1029
1029
|
p headers # => { ... }
|
1030
|
-
p data # => <
|
1030
|
+
p data # => <SearchOverGroupsResults>
|
1031
1031
|
rescue TrieveRubyClient::ApiError => e
|
1032
1032
|
puts "Error when calling ChunkGroupApi->search_over_groups_with_http_info: #{e}"
|
1033
1033
|
end
|
@@ -1042,7 +1042,7 @@ end
|
|
1042
1042
|
|
1043
1043
|
### Return type
|
1044
1044
|
|
1045
|
-
[**
|
1045
|
+
[**SearchOverGroupsResults**](SearchOverGroupsResults.md)
|
1046
1046
|
|
1047
1047
|
### Authorization
|
1048
1048
|
|
@@ -1056,7 +1056,7 @@ end
|
|
1056
1056
|
|
1057
1057
|
## search_within_group
|
1058
1058
|
|
1059
|
-
> <
|
1059
|
+
> <SearchWithinGroupResults> search_within_group(tr_dataset, search_within_group_data)
|
1060
1060
|
|
1061
1061
|
Search Within Group
|
1062
1062
|
|
@@ -1092,7 +1092,7 @@ end
|
|
1092
1092
|
|
1093
1093
|
This returns an Array which contains the response data, status code and headers.
|
1094
1094
|
|
1095
|
-
> <Array(<
|
1095
|
+
> <Array(<SearchWithinGroupResults>, Integer, Hash)> search_within_group_with_http_info(tr_dataset, search_within_group_data)
|
1096
1096
|
|
1097
1097
|
```ruby
|
1098
1098
|
begin
|
@@ -1100,7 +1100,7 @@ begin
|
|
1100
1100
|
data, status_code, headers = api_instance.search_within_group_with_http_info(tr_dataset, search_within_group_data)
|
1101
1101
|
p status_code # => 2xx
|
1102
1102
|
p headers # => { ... }
|
1103
|
-
p data # => <
|
1103
|
+
p data # => <SearchWithinGroupResults>
|
1104
1104
|
rescue TrieveRubyClient::ApiError => e
|
1105
1105
|
puts "Error when calling ChunkGroupApi->search_within_group_with_http_info: #{e}"
|
1106
1106
|
end
|
@@ -1115,7 +1115,7 @@ end
|
|
1115
1115
|
|
1116
1116
|
### Return type
|
1117
1117
|
|
1118
|
-
[**
|
1118
|
+
[**SearchWithinGroupResults**](SearchWithinGroupResults.md)
|
1119
1119
|
|
1120
1120
|
### Authorization
|
1121
1121
|
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# TrieveRubyClient::ChunkMetadataWithScore
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **chunk_html** | **String** | | [optional] |
|
8
|
+
| **content** | **String** | | |
|
9
|
+
| **created_at** | **Time** | | |
|
10
|
+
| **dataset_id** | **String** | | |
|
11
|
+
| **id** | **String** | | |
|
12
|
+
| **link** | **String** | | [optional] |
|
13
|
+
| **metadata** | **Object** | | [optional] |
|
14
|
+
| **qdrant_point_id** | **String** | | [optional] |
|
15
|
+
| **score** | **Float** | | |
|
16
|
+
| **tag_set** | **String** | | [optional] |
|
17
|
+
| **time_stamp** | **Time** | | [optional] |
|
18
|
+
| **tracking_id** | **String** | | [optional] |
|
19
|
+
| **updated_at** | **Time** | | |
|
20
|
+
| **weight** | **Float** | | |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'trieve_ruby_client'
|
26
|
+
|
27
|
+
instance = TrieveRubyClient::ChunkMetadataWithScore.new(
|
28
|
+
chunk_html: null,
|
29
|
+
content: null,
|
30
|
+
created_at: null,
|
31
|
+
dataset_id: null,
|
32
|
+
id: null,
|
33
|
+
link: null,
|
34
|
+
metadata: null,
|
35
|
+
qdrant_point_id: null,
|
36
|
+
score: null,
|
37
|
+
tag_set: null,
|
38
|
+
time_stamp: null,
|
39
|
+
tracking_id: null,
|
40
|
+
updated_at: null,
|
41
|
+
weight: null
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **description** | **String** | Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for. |
|
7
|
+
| **description** | **String** | Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for. | [optional] |
|
8
8
|
| **metadata** | **Object** | Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group. | [optional] |
|
9
9
|
| **name** | **String** | Name to assign to the chunk_group. Does not need to be unique. | |
|
10
10
|
| **tag_set** | **Array<String>** | Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group. | [optional] |
|
data/docs/FileApi.md
CHANGED
@@ -255,7 +255,7 @@ end
|
|
255
255
|
|
256
256
|
api_instance = TrieveRubyClient::FileApi.new
|
257
257
|
tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
|
258
|
-
upload_file_data = TrieveRubyClient::UploadFileData.new({base64_file: 'base64_file_example',
|
258
|
+
upload_file_data = TrieveRubyClient::UploadFileData.new({base64_file: 'base64_file_example', file_name: 'file_name_example'}) # UploadFileData | JSON request payload to upload a file
|
259
259
|
|
260
260
|
begin
|
261
261
|
# Upload File
|
data/docs/GetEventsData.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **event_types** | **Array<String>** | The types of events to get. Any combination of file_uploaded,
|
7
|
+
| **event_types** | **Array<String>** | The types of events to get. Any combination of file_uploaded, chunk_uploaded, chunk_action_failed, or chunk_updated. Leave undefined to get all events. | [optional] |
|
8
8
|
| **page** | **Integer** | The page number to get. Default is 1. | [optional] |
|
9
9
|
| **page_size** | **Integer** | The number of items per page. Default is 10. | [optional] |
|
10
10
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# TrieveRubyClient::GroupScoreChunk
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **group_id** | **String** | | |
|
8
|
+
| **group_name** | **String** | | [optional] |
|
9
|
+
| **group_tracking_id** | **String** | | [optional] |
|
10
|
+
| **metadata** | [**Array<ScoreChunkDTO>**](ScoreChunkDTO.md) | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'trieve_ruby_client'
|
16
|
+
|
17
|
+
instance = TrieveRubyClient::GroupScoreChunk.new(
|
18
|
+
group_id: null,
|
19
|
+
group_name: null,
|
20
|
+
group_tracking_id: null,
|
21
|
+
metadata: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TrieveRubyClient::GroupScoreSlimChunks
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **group_id** | **String** | | |
|
8
|
+
| **metadata** | [**Array<ScoreSlimChunks>**](ScoreSlimChunks.md) | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'trieve_ruby_client'
|
14
|
+
|
15
|
+
instance = TrieveRubyClient::GroupScoreSlimChunks.new(
|
16
|
+
group_id: null,
|
17
|
+
metadata: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/ScoreChunkDTO.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **metadata** | [**Array<
|
7
|
+
| **metadata** | [**Array<ChunkMetadata>**](ChunkMetadata.md) | | |
|
8
8
|
| **score** | **Float** | | |
|
9
9
|
|
10
10
|
## Example
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TrieveRubyClient::SearchOverGroupsResults
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **group_chunks** | [**Array<GroupScoreChunk>**](GroupScoreChunk.md) | | |
|
8
|
+
| **total_chunk_pages** | **Integer** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'trieve_ruby_client'
|
14
|
+
|
15
|
+
instance = TrieveRubyClient::SearchOverGroupsResults.new(
|
16
|
+
group_chunks: null,
|
17
|
+
total_chunk_pages: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TrieveRubyClient::SearchOverGroupsSlimResults
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **group_chunks** | [**Array<GroupScoreSlimChunks>**](GroupScoreSlimChunks.md) | | |
|
8
|
+
| **total_chunk_pages** | **Integer** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'trieve_ruby_client'
|
14
|
+
|
15
|
+
instance = TrieveRubyClient::SearchOverGroupsSlimResults.new(
|
16
|
+
group_chunks: null,
|
17
|
+
total_chunk_pages: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TrieveRubyClient::SearchWithinGroupResults
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **bookmarks** | [**Array<ScoreChunkDTO>**](ScoreChunkDTO.md) | | |
|
8
|
+
| **group** | [**ChunkGroup**](ChunkGroup.md) | | |
|
9
|
+
| **total_pages** | **Integer** | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'trieve_ruby_client'
|
15
|
+
|
16
|
+
instance = TrieveRubyClient::SearchWithinGroupResults.new(
|
17
|
+
bookmarks: null,
|
18
|
+
group: null,
|
19
|
+
total_pages: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TrieveRubyClient::SearchWithinGroupSlimResults
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **bookmarks** | [**Array<ScoreSlimChunks>**](ScoreSlimChunks.md) | | |
|
8
|
+
| **group** | [**ChunkGroup**](ChunkGroup.md) | | |
|
9
|
+
| **total_pages** | **Integer** | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'trieve_ruby_client'
|
15
|
+
|
16
|
+
instance = TrieveRubyClient::SearchWithinGroupSlimResults.new(
|
17
|
+
bookmarks: null,
|
18
|
+
group: null,
|
19
|
+
total_pages: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# TrieveRubyClient::SlimChunkMetadataWithScore
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | |
|
8
|
+
| **id** | **String** | | |
|
9
|
+
| **link** | **String** | | [optional] |
|
10
|
+
| **metadata** | **Object** | | [optional] |
|
11
|
+
| **qdrant_point_id** | **String** | | [optional] |
|
12
|
+
| **score** | **Float** | | |
|
13
|
+
| **tag_set** | **String** | | [optional] |
|
14
|
+
| **time_stamp** | **Time** | | [optional] |
|
15
|
+
| **tracking_id** | **String** | | [optional] |
|
16
|
+
| **updated_at** | **Time** | | |
|
17
|
+
| **weight** | **Float** | | |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'trieve_ruby_client'
|
23
|
+
|
24
|
+
instance = TrieveRubyClient::SlimChunkMetadataWithScore.new(
|
25
|
+
created_at: null,
|
26
|
+
id: null,
|
27
|
+
link: null,
|
28
|
+
metadata: null,
|
29
|
+
qdrant_point_id: null,
|
30
|
+
score: null,
|
31
|
+
tag_set: null,
|
32
|
+
time_stamp: null,
|
33
|
+
tracking_id: null,
|
34
|
+
updated_at: null,
|
35
|
+
weight: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -5,6 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **chunk_html** | **String** | 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. | [optional] |
|
8
|
+
| **convert_html_to_text** | **Boolean** | 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. | [optional] |
|
8
9
|
| **group_ids** | **Array<String>** | 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. | [optional] |
|
9
10
|
| **group_tracking_ids** | **Array<String>** | Group tracking_ids are the tracking_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. | [optional] |
|
10
11
|
| **link** | **String** | Link of the chunk you want to update. This can also be any string. Frequently, this is a link to the source of the chunk. The link value will not affect the embedding creation. If no link is provided, the existing link will be used. | [optional] |
|
@@ -20,6 +21,7 @@ require 'trieve_ruby_client'
|
|
20
21
|
|
21
22
|
instance = TrieveRubyClient::UpdateChunkByTrackingIdData.new(
|
22
23
|
chunk_html: null,
|
24
|
+
convert_html_to_text: null,
|
23
25
|
group_ids: null,
|
24
26
|
group_tracking_ids: null,
|
25
27
|
link: null,
|
data/docs/UpdateChunkData.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **chunk_html** | **String** | 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. | [optional] |
|
8
8
|
| **chunk_id** | **String** | 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. | [optional] |
|
9
|
+
| **convert_html_to_text** | **Boolean** | 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. | [optional] |
|
9
10
|
| **group_ids** | **Array<String>** | 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. | [optional] |
|
10
11
|
| **group_tracking_ids** | **Array<String>** | Group tracking_ids are the tracking_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. | [optional] |
|
11
12
|
| **link** | **String** | Link of the chunk you want to update. This can also be any string. Frequently, this is a link to the source of the chunk. The link value will not affect the embedding creation. If no link is provided, the existing link will be used. | [optional] |
|
@@ -23,6 +24,7 @@ require 'trieve_ruby_client'
|
|
23
24
|
instance = TrieveRubyClient::UpdateChunkData.new(
|
24
25
|
chunk_html: null,
|
25
26
|
chunk_id: null,
|
27
|
+
convert_html_to_text: null,
|
26
28
|
group_ids: null,
|
27
29
|
group_tracking_ids: null,
|
28
30
|
link: null,
|
data/docs/UploadFileData.md
CHANGED
@@ -7,8 +7,8 @@
|
|
7
7
|
| **base64_file** | **String** | Base64 encoded file. Convert + to -, / to _, and remove the ending = if present. This is the standard base64url encoding. | |
|
8
8
|
| **create_chunks** | **Boolean** | Create chunks is a boolean which determines whether or not to create chunks from the file. If false, you can manually chunk the file and send the chunks to the create_chunk endpoint with the file_id to associate chunks with the file. Meant mostly for advanced users. | [optional] |
|
9
9
|
| **description** | **String** | 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. | [optional] |
|
10
|
-
| **file_mime_type** | **String** | MIME type of the file being uploaded. | |
|
11
10
|
| **file_name** | **String** | Name of the file being uploaded, including the extension. | |
|
11
|
+
| **group_tracking_id** | **String** | 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>` | [optional] |
|
12
12
|
| **link** | **String** | 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. | [optional] |
|
13
13
|
| **metadata** | **Object** | Metadata is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata. Will be passed down to the file's chunks. | [optional] |
|
14
14
|
| **tag_set** | **Array<String>** | Tag set is a comma separated list of tags which will be passed down to the chunks made from the file. Tags are used to filter chunks when searching. HNSW indices are created for each tag such that there is no performance loss when filtering on them. | [optional] |
|
@@ -23,8 +23,8 @@ instance = TrieveRubyClient::UploadFileData.new(
|
|
23
23
|
base64_file: null,
|
24
24
|
create_chunks: null,
|
25
25
|
description: null,
|
26
|
-
file_mime_type: null,
|
27
26
|
file_name: null,
|
27
|
+
group_tracking_id: null,
|
28
28
|
link: null,
|
29
29
|
metadata: null,
|
30
30
|
tag_set: null,
|