trieve_ruby_client 0.8.2 → 0.10.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.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +39 -30
  3. data/docs/ApiKeyRespBody.md +32 -0
  4. data/docs/AutocompleteData.md +42 -0
  5. data/docs/AutocompleteReqPayload.md +50 -0
  6. data/docs/BoostPhrase.md +20 -0
  7. data/docs/ChunkApi.md +140 -66
  8. data/docs/ChunkData.md +3 -1
  9. data/docs/ChunkFilter.md +3 -3
  10. data/docs/ChunkGroup.md +1 -1
  11. data/docs/ChunkGroupApi.md +35 -33
  12. data/docs/ChunkMetadata.md +5 -1
  13. data/docs/ChunkMetadataStringTagSet.md +46 -0
  14. data/docs/ChunkMetadataTypes.md +51 -0
  15. data/docs/ChunkReqPayload.md +50 -0
  16. data/docs/ClientDatasetConfiguration.md +0 -2
  17. data/docs/ConditionType.md +49 -0
  18. data/docs/ContentChunkMetadata.md +32 -0
  19. data/docs/CreateChunkGroupReqPayload.md +28 -0
  20. data/docs/CreateChunkReqPayloadEnum.md +49 -0
  21. data/docs/CreateDatasetRequest.md +2 -2
  22. data/docs/CreateMessageData.md +2 -2
  23. data/docs/CreateMessageReqPayload.md +42 -0
  24. data/docs/CreateTopicReqPayload.md +22 -0
  25. data/docs/Dataset.md +2 -0
  26. data/docs/DatasetApi.md +236 -12
  27. data/docs/DateRange.md +24 -0
  28. data/docs/EditMessageReqPayload.md +44 -0
  29. data/docs/FieldCondition.md +2 -0
  30. data/docs/File.md +1 -1
  31. data/docs/FileApi.md +7 -7
  32. data/docs/GenerateChunksRequest.md +2 -0
  33. data/docs/GetDatasetsPagination.md +20 -0
  34. data/docs/HasIDCondition.md +20 -0
  35. data/docs/InvitationApi.md +1 -1
  36. data/docs/MatchCondition.md +3 -1
  37. data/docs/MessageApi.md +42 -42
  38. data/docs/Organization.md +2 -0
  39. data/docs/OrganizationApi.md +24 -25
  40. data/docs/RangeCondition.md +1 -3
  41. data/docs/RegenerateMessageReqPayload.md +40 -0
  42. data/docs/RemoveChunkFromGroupReqPayload.md +18 -0
  43. data/docs/ScoreChunkDTO.md +3 -1
  44. data/docs/SearchChunkData.md +9 -3
  45. data/docs/SearchChunksReqPayload.md +54 -0
  46. data/docs/SearchOverGroupsData.md +10 -2
  47. data/docs/SearchWithinGroupData.md +12 -2
  48. data/docs/SetUserApiKeyRequest.md +4 -0
  49. data/docs/SlimChunkMetadata.md +4 -0
  50. data/docs/SuggestedQueriesReqPayload.md +18 -0
  51. data/docs/TopicApi.md +16 -16
  52. data/docs/UpdateChunkData.md +2 -0
  53. data/docs/UpdateChunkReqPayload.md +46 -0
  54. data/docs/UpdateDatasetRequest.md +2 -0
  55. data/docs/UpdateGroupByTrackingIDReqPayload.md +26 -0
  56. data/docs/UpdateTopicReqPayload.md +20 -0
  57. data/docs/UpdateUserOrgRoleData.md +1 -1
  58. data/docs/UploadFileReqPayload.md +40 -0
  59. data/docs/UserApi.md +7 -8
  60. data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
  61. data/lib/trieve_ruby_client/api/chunk_api.rb +158 -83
  62. data/lib/trieve_ruby_client/api/chunk_group_api.rb +58 -51
  63. data/lib/trieve_ruby_client/api/dataset_api.rb +224 -15
  64. data/lib/trieve_ruby_client/api/events_api.rb +1 -1
  65. data/lib/trieve_ruby_client/api/file_api.rb +12 -12
  66. data/lib/trieve_ruby_client/api/health_api.rb +1 -1
  67. data/lib/trieve_ruby_client/api/invitation_api.rb +3 -3
  68. data/lib/trieve_ruby_client/api/message_api.rb +50 -50
  69. data/lib/trieve_ruby_client/api/organization_api.rb +27 -27
  70. data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
  71. data/lib/trieve_ruby_client/api/topic_api.rb +27 -27
  72. data/lib/trieve_ruby_client/api/user_api.rb +8 -8
  73. data/lib/trieve_ruby_client/api_client.rb +1 -1
  74. data/lib/trieve_ruby_client/api_error.rb +1 -1
  75. data/lib/trieve_ruby_client/configuration.rb +1 -1
  76. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +1 -1
  77. data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
  78. data/lib/trieve_ruby_client/models/api_key_resp_body.rb +325 -0
  79. data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
  80. data/lib/trieve_ruby_client/models/autocomplete_data.rb +378 -0
  81. data/lib/trieve_ruby_client/models/autocomplete_req_payload.rb +467 -0
  82. data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
  83. data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
  84. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
  85. data/lib/trieve_ruby_client/models/boost_phrase.rb +240 -0
  86. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
  87. data/lib/trieve_ruby_client/models/chunk_data.rb +16 -9
  88. data/lib/trieve_ruby_client/models/chunk_filter.rb +4 -4
  89. data/lib/trieve_ruby_client/models/chunk_group.rb +5 -3
  90. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
  91. data/lib/trieve_ruby_client/models/chunk_metadata.rb +28 -4
  92. data/lib/trieve_ruby_client/models/chunk_metadata_string_tag_set.rb +387 -0
  93. data/lib/trieve_ruby_client/models/chunk_metadata_types.rb +106 -0
  94. data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +1 -1
  95. data/lib/trieve_ruby_client/models/chunk_req_payload.rb +400 -0
  96. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +2 -18
  97. data/lib/trieve_ruby_client/models/condition_type.rb +105 -0
  98. data/lib/trieve_ruby_client/models/content_chunk_metadata.rb +299 -0
  99. data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
  100. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +1 -1
  101. data/lib/trieve_ruby_client/models/create_chunk_group_req_payload.rb +273 -0
  102. data/lib/trieve_ruby_client/models/create_chunk_req_payload_enum.rb +105 -0
  103. data/lib/trieve_ruby_client/models/create_dataset_request.rb +3 -3
  104. data/lib/trieve_ruby_client/models/create_message_data.rb +13 -13
  105. data/lib/trieve_ruby_client/models/create_message_req_payload.rb +378 -0
  106. data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
  107. data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
  108. data/lib/trieve_ruby_client/models/create_topic_req_payload.rb +244 -0
  109. data/lib/trieve_ruby_client/models/dataset.rb +18 -2
  110. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
  111. data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
  112. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
  113. data/lib/trieve_ruby_client/models/date_range.rb +245 -0
  114. data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
  115. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
  116. data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
  117. data/lib/trieve_ruby_client/models/edit_message_req_payload.rb +395 -0
  118. data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
  119. data/lib/trieve_ruby_client/models/event.rb +1 -1
  120. data/lib/trieve_ruby_client/models/event_return.rb +1 -1
  121. data/lib/trieve_ruby_client/models/field_condition.rb +12 -2
  122. data/lib/trieve_ruby_client/models/file.rb +5 -3
  123. data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
  124. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +13 -2
  125. data/lib/trieve_ruby_client/models/geo_info.rb +1 -1
  126. data/lib/trieve_ruby_client/models/geo_types.rb +1 -1
  127. data/lib/trieve_ruby_client/models/get_chunks_data.rb +1 -1
  128. data/lib/trieve_ruby_client/models/get_datasets_pagination.rb +225 -0
  129. data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
  130. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
  131. data/lib/trieve_ruby_client/models/get_tracking_chunks_data.rb +1 -1
  132. data/lib/trieve_ruby_client/models/group_data.rb +1 -1
  133. data/lib/trieve_ruby_client/models/group_score_chunk.rb +1 -1
  134. data/lib/trieve_ruby_client/models/has_id_condition.rb +229 -0
  135. data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
  136. data/lib/trieve_ruby_client/models/location_bounding_box.rb +1 -1
  137. data/lib/trieve_ruby_client/models/location_polygon.rb +1 -1
  138. data/lib/trieve_ruby_client/models/location_radius.rb +1 -1
  139. data/lib/trieve_ruby_client/models/match_condition.rb +2 -1
  140. data/lib/trieve_ruby_client/models/message.rb +1 -1
  141. data/lib/trieve_ruby_client/models/organization.rb +18 -2
  142. data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
  143. data/lib/trieve_ruby_client/models/range.rb +1 -1
  144. data/lib/trieve_ruby_client/models/range_condition.rb +2 -3
  145. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +1 -1
  146. data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +1 -1
  147. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
  148. data/lib/trieve_ruby_client/models/regenerate_message_req_payload.rb +361 -0
  149. data/lib/trieve_ruby_client/models/remove_chunk_from_group_req_payload.rb +222 -0
  150. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
  151. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +15 -3
  152. data/lib/trieve_ruby_client/models/search_chunk_data.rb +40 -5
  153. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
  154. data/lib/trieve_ruby_client/models/search_chunks_req_payload.rb +504 -0
  155. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +93 -4
  156. data/lib/trieve_ruby_client/models/search_over_groups_results.rb +1 -1
  157. data/lib/trieve_ruby_client/models/search_within_group_data.rb +106 -4
  158. data/lib/trieve_ruby_client/models/search_within_group_results.rb +1 -1
  159. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +28 -2
  160. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
  161. data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
  162. data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +24 -2
  163. data/lib/trieve_ruby_client/models/slim_chunk_metadata_with_score.rb +1 -1
  164. data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
  165. data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
  166. data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
  167. data/lib/trieve_ruby_client/models/suggested_queries_req_payload.rb +222 -0
  168. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
  169. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
  170. data/lib/trieve_ruby_client/models/topic.rb +1 -1
  171. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
  172. data/lib/trieve_ruby_client/models/update_chunk_data.rb +15 -2
  173. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
  174. data/lib/trieve_ruby_client/models/update_chunk_req_payload.rb +376 -0
  175. data/lib/trieve_ruby_client/models/update_dataset_request.rb +13 -2
  176. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
  177. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_req_payload.rb +268 -0
  178. data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
  179. data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
  180. data/lib/trieve_ruby_client/models/update_topic_req_payload.rb +239 -0
  181. data/lib/trieve_ruby_client/models/update_user_org_role_data.rb +2 -2
  182. data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
  183. data/lib/trieve_ruby_client/models/upload_file_req_payload.rb +368 -0
  184. data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
  185. data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
  186. data/lib/trieve_ruby_client/version.rb +2 -2
  187. data/lib/trieve_ruby_client.rb +25 -20
  188. data/openapi-generator.yaml +1 -1
  189. data/openapi.json +1 -7789
  190. data/spec/models/api_key_resp_body_spec.rb +78 -0
  191. data/spec/models/autocomplete_data_spec.rb +108 -0
  192. data/spec/models/autocomplete_req_payload_spec.rb +132 -0
  193. data/spec/models/boost_phrase_spec.rb +42 -0
  194. data/spec/models/chunk_metadata_string_tag_set_spec.rb +120 -0
  195. data/spec/models/chunk_metadata_types_spec.rb +32 -0
  196. data/spec/models/chunk_req_payload_spec.rb +132 -0
  197. data/spec/models/condition_type_spec.rb +32 -0
  198. data/spec/models/content_chunk_metadata_spec.rb +72 -0
  199. data/spec/models/create_chunk_group_req_payload_spec.rb +66 -0
  200. data/spec/models/create_chunk_req_payload_enum_spec.rb +32 -0
  201. data/spec/models/create_message_req_payload_spec.rb +108 -0
  202. data/spec/models/create_topic_req_payload_spec.rb +48 -0
  203. data/spec/models/date_range_spec.rb +54 -0
  204. data/spec/models/edit_message_req_payload_spec.rb +114 -0
  205. data/spec/models/get_datasets_pagination_spec.rb +42 -0
  206. data/spec/models/has_id_condition_spec.rb +42 -0
  207. data/spec/models/regenerate_message_req_payload_spec.rb +102 -0
  208. data/spec/models/remove_chunk_from_group_req_payload_spec.rb +36 -0
  209. data/spec/models/search_chunks_req_payload_spec.rb +144 -0
  210. data/spec/models/suggested_queries_req_payload_spec.rb +36 -0
  211. data/spec/models/update_chunk_req_payload_spec.rb +120 -0
  212. data/spec/models/update_group_by_tracking_id_req_payload_spec.rb +60 -0
  213. data/spec/models/update_topic_req_payload_spec.rb +42 -0
  214. data/spec/models/upload_file_req_payload_spec.rb +102 -0
  215. data/spec/spec_helper.rb +1 -1
  216. data/trieve_ruby_client-0.8.2.gem +0 -0
  217. data/trieve_ruby_client-0.8.5.gem +0 -0
  218. data/trieve_ruby_client.gemspec +1 -1
  219. metadata +104 -2
@@ -0,0 +1,42 @@
1
+ # TrieveRubyClient::CreateMessageReqPayload
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **completion_first** | **Boolean** | Completion first decides whether the stream should contain the stream of the completion response or the chunks first. Default is false. Keep in mind that || is used to separate the chunks from the completion response. If || is in the completion then you may want to split on ||{ instead. | [optional] |
8
+ | **filters** | [**ChunkFilter**](ChunkFilter.md) | | [optional] |
9
+ | **frequency_penalty** | **Float** | Frequency penalty is a number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Default is 0.7. | [optional] |
10
+ | **highlight_delimiters** | **Array<String>** | The delimiters to use for highlighting the citations. If this is not included, the default delimiters will be used. Default is `[\".\", \"!\", \"?\", \"\\n\", \"\\t\", \",\"]`. | [optional] |
11
+ | **highlight_results** | **Boolean** | Set highlight_results to false for a slight latency improvement (1-10ms). If not specified, this defaults to true. This will add `<b><mark>` tags to the chunk_html of the chunks to highlight matching splits and return the highlights on each scored chunk in the response. | [optional] |
12
+ | **max_tokens** | **Integer** | The maximum number of tokens to generate in the chat completion. Default is None. | [optional] |
13
+ | **new_message_content** | **String** | The content of the user message to attach to the topic and then generate an assistant message in response to. | |
14
+ | **presence_penalty** | **Float** | Presence penalty is a number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Default is 0.7. | [optional] |
15
+ | **search_type** | **String** | Search_type can be either \"semantic\", \"fulltext\", or \"hybrid\". \"hybrid\" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using BAAI/bge-reranker-large. \"semantic\" will pull in one page (10 chunks) of the nearest cosine distant vectors. \"fulltext\" will pull in one page (10 chunks) of full-text results based on SPLADE. Default is \"hybrid\". | [optional] |
16
+ | **stop_tokens** | **Array<String>** | Stop tokens are up to 4 sequences where the API will stop generating further tokens. Default is None. | [optional] |
17
+ | **stream_response** | **Boolean** | Whether or not to stream the response. If this is set to true or not included, the response will be a stream. If this is set to false, the response will be a normal JSON response. Default is true. | [optional] |
18
+ | **temperature** | **Float** | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Default is 0.5. | [optional] |
19
+ | **topic_id** | **String** | The ID of the topic to attach the message to. | |
20
+
21
+ ## Example
22
+
23
+ ```ruby
24
+ require 'trieve_ruby_client'
25
+
26
+ instance = TrieveRubyClient::CreateMessageReqPayload.new(
27
+ completion_first: null,
28
+ filters: null,
29
+ frequency_penalty: null,
30
+ highlight_delimiters: null,
31
+ highlight_results: null,
32
+ max_tokens: null,
33
+ new_message_content: null,
34
+ presence_penalty: null,
35
+ search_type: null,
36
+ stop_tokens: null,
37
+ stream_response: null,
38
+ temperature: null,
39
+ topic_id: null
40
+ )
41
+ ```
42
+
@@ -0,0 +1,22 @@
1
+ # TrieveRubyClient::CreateTopicReqPayload
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **first_user_message** | **String** | The first message which will belong to the topic. The topic name is generated based on this message similar to how it works in the OpenAI chat UX if a name is not explicitly provided on the name request body key. | [optional] |
8
+ | **name** | **String** | The name of the topic. If this is not provided, the topic name is generated from the first_user_message. | [optional] |
9
+ | **owner_id** | **String** | The owner_id of the topic. This is typically a browser fingerprint or your user's id. It is used to group topics together for a user. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'trieve_ruby_client'
15
+
16
+ instance = TrieveRubyClient::CreateTopicReqPayload.new(
17
+ first_user_message: null,
18
+ name: null,
19
+ owner_id: null
20
+ )
21
+ ```
22
+
data/docs/Dataset.md CHANGED
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **client_configuration** | **Object** | | |
8
8
  | **created_at** | **Time** | | |
9
+ | **deleted** | **Integer** | | |
9
10
  | **id** | **String** | | |
10
11
  | **name** | **String** | | |
11
12
  | **organization_id** | **String** | | |
@@ -21,6 +22,7 @@ require 'trieve_ruby_client'
21
22
  instance = TrieveRubyClient::Dataset.new(
22
23
  client_configuration: null,
23
24
  created_at: null,
25
+ deleted: null,
24
26
  id: null,
25
27
  name: null,
26
28
  organization_id: null,
data/docs/DatasetApi.md CHANGED
@@ -4,14 +4,89 @@ All URIs are relative to *https://api.trieve.ai*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**clear_dataset**](DatasetApi.md#clear_dataset) | **PUT** /api/dataset/clear/{dataset_id} | Clear Dataset |
7
8
  | [**create_dataset**](DatasetApi.md#create_dataset) | **POST** /api/dataset | Create dataset |
8
9
  | [**delete_dataset**](DatasetApi.md#delete_dataset) | **DELETE** /api/dataset/{dataset_id} | Delete Dataset |
10
+ | [**delete_dataset_by_tracking_id**](DatasetApi.md#delete_dataset_by_tracking_id) | **DELETE** /api/dataset/tracking_id/{tracking_id} | Delete Dataset by Tracking ID |
9
11
  | [**get_client_dataset_config**](DatasetApi.md#get_client_dataset_config) | **GET** /api/dataset/envs | Get Client Configuration |
10
12
  | [**get_dataset**](DatasetApi.md#get_dataset) | **GET** /api/dataset/{dataset_id} | Get Dataset |
11
13
  | [**get_datasets_from_organization**](DatasetApi.md#get_datasets_from_organization) | **GET** /api/dataset/organization/{organization_id} | Get Datasets from Organization |
14
+ | [**get_usage_by_dataset_id**](DatasetApi.md#get_usage_by_dataset_id) | **GET** /api/dataset/usage/{dataset_id} | Get Usage By Dataset ID |
12
15
  | [**update_dataset**](DatasetApi.md#update_dataset) | **PUT** /api/dataset | Update Dataset |
13
16
 
14
17
 
18
+ ## clear_dataset
19
+
20
+ > clear_dataset(tr_dataset, dataset_id)
21
+
22
+ Clear Dataset
23
+
24
+ Clear Dataset Clears a dataset. The auth'ed user must be an owner of the organization to clear a dataset.
25
+
26
+ ### Examples
27
+
28
+ ```ruby
29
+ require 'time'
30
+ require 'trieve_ruby_client'
31
+ # setup authorization
32
+ TrieveRubyClient.configure do |config|
33
+ # Configure API key authorization: ApiKey
34
+ config.api_key['ApiKey'] = 'YOUR API KEY'
35
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
36
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
37
+ end
38
+
39
+ api_instance = TrieveRubyClient::DatasetApi.new
40
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
41
+ dataset_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the dataset you want to clear.
42
+
43
+ begin
44
+ # Clear Dataset
45
+ api_instance.clear_dataset(tr_dataset, dataset_id)
46
+ rescue TrieveRubyClient::ApiError => e
47
+ puts "Error when calling DatasetApi->clear_dataset: #{e}"
48
+ end
49
+ ```
50
+
51
+ #### Using the clear_dataset_with_http_info variant
52
+
53
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
54
+
55
+ > <Array(nil, Integer, Hash)> clear_dataset_with_http_info(tr_dataset, dataset_id)
56
+
57
+ ```ruby
58
+ begin
59
+ # Clear Dataset
60
+ data, status_code, headers = api_instance.clear_dataset_with_http_info(tr_dataset, dataset_id)
61
+ p status_code # => 2xx
62
+ p headers # => { ... }
63
+ p data # => nil
64
+ rescue TrieveRubyClient::ApiError => e
65
+ puts "Error when calling DatasetApi->clear_dataset_with_http_info: #{e}"
66
+ end
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+ | Name | Type | Description | Notes |
72
+ | ---- | ---- | ----------- | ----- |
73
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
74
+ | **dataset_id** | **String** | The id of the dataset you want to clear. | |
75
+
76
+ ### Return type
77
+
78
+ nil (empty response body)
79
+
80
+ ### Authorization
81
+
82
+ [ApiKey](../README.md#ApiKey)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: Not defined
87
+ - **Accept**: application/json
88
+
89
+
15
90
  ## create_dataset
16
91
 
17
92
  > <Dataset> create_dataset(tr_organization, create_dataset_request)
@@ -157,6 +232,78 @@ nil (empty response body)
157
232
  - **Accept**: application/json
158
233
 
159
234
 
235
+ ## delete_dataset_by_tracking_id
236
+
237
+ > delete_dataset_by_tracking_id(tr_dataset, tracking_id)
238
+
239
+ Delete Dataset by Tracking ID
240
+
241
+ Delete Dataset by Tracking ID Delete a dataset by its tracking id. The auth'ed user must be an owner of the organization to delete a dataset.
242
+
243
+ ### Examples
244
+
245
+ ```ruby
246
+ require 'time'
247
+ require 'trieve_ruby_client'
248
+ # setup authorization
249
+ TrieveRubyClient.configure do |config|
250
+ # Configure API key authorization: ApiKey
251
+ config.api_key['ApiKey'] = 'YOUR API KEY'
252
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
253
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
254
+ end
255
+
256
+ api_instance = TrieveRubyClient::DatasetApi.new
257
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
258
+ tracking_id = 'tracking_id_example' # String | The tracking id of the dataset you want to delete.
259
+
260
+ begin
261
+ # Delete Dataset by Tracking ID
262
+ api_instance.delete_dataset_by_tracking_id(tr_dataset, tracking_id)
263
+ rescue TrieveRubyClient::ApiError => e
264
+ puts "Error when calling DatasetApi->delete_dataset_by_tracking_id: #{e}"
265
+ end
266
+ ```
267
+
268
+ #### Using the delete_dataset_by_tracking_id_with_http_info variant
269
+
270
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
271
+
272
+ > <Array(nil, Integer, Hash)> delete_dataset_by_tracking_id_with_http_info(tr_dataset, tracking_id)
273
+
274
+ ```ruby
275
+ begin
276
+ # Delete Dataset by Tracking ID
277
+ data, status_code, headers = api_instance.delete_dataset_by_tracking_id_with_http_info(tr_dataset, tracking_id)
278
+ p status_code # => 2xx
279
+ p headers # => { ... }
280
+ p data # => nil
281
+ rescue TrieveRubyClient::ApiError => e
282
+ puts "Error when calling DatasetApi->delete_dataset_by_tracking_id_with_http_info: #{e}"
283
+ end
284
+ ```
285
+
286
+ ### Parameters
287
+
288
+ | Name | Type | Description | Notes |
289
+ | ---- | ---- | ----------- | ----- |
290
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
291
+ | **tracking_id** | **String** | The tracking id of the dataset you want to delete. | |
292
+
293
+ ### Return type
294
+
295
+ nil (empty response body)
296
+
297
+ ### Authorization
298
+
299
+ [ApiKey](../README.md#ApiKey)
300
+
301
+ ### HTTP request headers
302
+
303
+ - **Content-Type**: Not defined
304
+ - **Accept**: application/json
305
+
306
+
160
307
  ## get_client_dataset_config
161
308
 
162
309
  > <ClientDatasetConfiguration> get_client_dataset_config(tr_dataset)
@@ -230,11 +377,11 @@ end
230
377
 
231
378
  ## get_dataset
232
379
 
233
- > <Dataset> get_dataset(tr_organization, tr_dataset, dataset_id)
380
+ > <Dataset> get_dataset(tr_dataset, dataset_id)
234
381
 
235
382
  Get Dataset
236
383
 
237
- Get Dataset Get a dataset by id. The auth'ed user must be an admin or owner of the organization to get a dataset.
384
+ Get Dataset Get a dataset by id. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
238
385
 
239
386
  ### Examples
240
387
 
@@ -250,13 +397,12 @@ TrieveRubyClient.configure do |config|
250
397
  end
251
398
 
252
399
  api_instance = TrieveRubyClient::DatasetApi.new
253
- tr_organization = 'tr_organization_example' # String | The organization id to use for the request
254
400
  tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
255
401
  dataset_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the dataset you want to retrieve.
256
402
 
257
403
  begin
258
404
  # Get Dataset
259
- result = api_instance.get_dataset(tr_organization, tr_dataset, dataset_id)
405
+ result = api_instance.get_dataset(tr_dataset, dataset_id)
260
406
  p result
261
407
  rescue TrieveRubyClient::ApiError => e
262
408
  puts "Error when calling DatasetApi->get_dataset: #{e}"
@@ -267,12 +413,12 @@ end
267
413
 
268
414
  This returns an Array which contains the response data, status code and headers.
269
415
 
270
- > <Array(<Dataset>, Integer, Hash)> get_dataset_with_http_info(tr_organization, tr_dataset, dataset_id)
416
+ > <Array(<Dataset>, Integer, Hash)> get_dataset_with_http_info(tr_dataset, dataset_id)
271
417
 
272
418
  ```ruby
273
419
  begin
274
420
  # Get Dataset
275
- data, status_code, headers = api_instance.get_dataset_with_http_info(tr_organization, tr_dataset, dataset_id)
421
+ data, status_code, headers = api_instance.get_dataset_with_http_info(tr_dataset, dataset_id)
276
422
  p status_code # => 2xx
277
423
  p headers # => { ... }
278
424
  p data # => <Dataset>
@@ -285,7 +431,6 @@ end
285
431
 
286
432
  | Name | Type | Description | Notes |
287
433
  | ---- | ---- | ----------- | ----- |
288
- | **tr_organization** | **String** | The organization id to use for the request | |
289
434
  | **tr_dataset** | **String** | The dataset id to use for the request | |
290
435
  | **dataset_id** | **String** | The id of the dataset you want to retrieve. | |
291
436
 
@@ -305,11 +450,11 @@ end
305
450
 
306
451
  ## get_datasets_from_organization
307
452
 
308
- > <Array<DatasetAndUsage>> get_datasets_from_organization(tr_organization, organization_id)
453
+ > <Array<DatasetAndUsage>> get_datasets_from_organization(tr_organization, organization_id, opts)
309
454
 
310
455
  Get Datasets from Organization
311
456
 
312
- Get Datasets from Organization Get all datasets for an organization. The auth'ed user must be an admin or owner of the organization to get its datasets.
457
+ Get Datasets from Organization Get all datasets for an organization. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
313
458
 
314
459
  ### Examples
315
460
 
@@ -327,10 +472,14 @@ end
327
472
  api_instance = TrieveRubyClient::DatasetApi.new
328
473
  tr_organization = 'tr_organization_example' # String | The organization id to use for the request
329
474
  organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the organization you want to retrieve datasets for
475
+ opts = {
476
+ limit: 789, # Integer | The number of records to return
477
+ offset: 789 # Integer | The number of records to skip
478
+ }
330
479
 
331
480
  begin
332
481
  # Get Datasets from Organization
333
- result = api_instance.get_datasets_from_organization(tr_organization, organization_id)
482
+ result = api_instance.get_datasets_from_organization(tr_organization, organization_id, opts)
334
483
  p result
335
484
  rescue TrieveRubyClient::ApiError => e
336
485
  puts "Error when calling DatasetApi->get_datasets_from_organization: #{e}"
@@ -341,12 +490,12 @@ end
341
490
 
342
491
  This returns an Array which contains the response data, status code and headers.
343
492
 
344
- > <Array(<Array<DatasetAndUsage>>, Integer, Hash)> get_datasets_from_organization_with_http_info(tr_organization, organization_id)
493
+ > <Array(<Array<DatasetAndUsage>>, Integer, Hash)> get_datasets_from_organization_with_http_info(tr_organization, organization_id, opts)
345
494
 
346
495
  ```ruby
347
496
  begin
348
497
  # Get Datasets from Organization
349
- data, status_code, headers = api_instance.get_datasets_from_organization_with_http_info(tr_organization, organization_id)
498
+ data, status_code, headers = api_instance.get_datasets_from_organization_with_http_info(tr_organization, organization_id, opts)
350
499
  p status_code # => 2xx
351
500
  p headers # => { ... }
352
501
  p data # => <Array<DatasetAndUsage>>
@@ -361,6 +510,8 @@ end
361
510
  | ---- | ---- | ----------- | ----- |
362
511
  | **tr_organization** | **String** | The organization id to use for the request | |
363
512
  | **organization_id** | **String** | id of the organization you want to retrieve datasets for | |
513
+ | **limit** | **Integer** | The number of records to return | [optional] |
514
+ | **offset** | **Integer** | The number of records to skip | [optional] |
364
515
 
365
516
  ### Return type
366
517
 
@@ -376,6 +527,79 @@ end
376
527
  - **Accept**: application/json
377
528
 
378
529
 
530
+ ## get_usage_by_dataset_id
531
+
532
+ > <DatasetUsageCount> get_usage_by_dataset_id(tr_dataset, dataset_id)
533
+
534
+ Get Usage By Dataset ID
535
+
536
+ Get Usage By Dataset ID Get the usage for a dataset by its id.
537
+
538
+ ### Examples
539
+
540
+ ```ruby
541
+ require 'time'
542
+ require 'trieve_ruby_client'
543
+ # setup authorization
544
+ TrieveRubyClient.configure do |config|
545
+ # Configure API key authorization: ApiKey
546
+ config.api_key['ApiKey'] = 'YOUR API KEY'
547
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
548
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
549
+ end
550
+
551
+ api_instance = TrieveRubyClient::DatasetApi.new
552
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
553
+ dataset_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the dataset you want to retrieve usage for.
554
+
555
+ begin
556
+ # Get Usage By Dataset ID
557
+ result = api_instance.get_usage_by_dataset_id(tr_dataset, dataset_id)
558
+ p result
559
+ rescue TrieveRubyClient::ApiError => e
560
+ puts "Error when calling DatasetApi->get_usage_by_dataset_id: #{e}"
561
+ end
562
+ ```
563
+
564
+ #### Using the get_usage_by_dataset_id_with_http_info variant
565
+
566
+ This returns an Array which contains the response data, status code and headers.
567
+
568
+ > <Array(<DatasetUsageCount>, Integer, Hash)> get_usage_by_dataset_id_with_http_info(tr_dataset, dataset_id)
569
+
570
+ ```ruby
571
+ begin
572
+ # Get Usage By Dataset ID
573
+ data, status_code, headers = api_instance.get_usage_by_dataset_id_with_http_info(tr_dataset, dataset_id)
574
+ p status_code # => 2xx
575
+ p headers # => { ... }
576
+ p data # => <DatasetUsageCount>
577
+ rescue TrieveRubyClient::ApiError => e
578
+ puts "Error when calling DatasetApi->get_usage_by_dataset_id_with_http_info: #{e}"
579
+ end
580
+ ```
581
+
582
+ ### Parameters
583
+
584
+ | Name | Type | Description | Notes |
585
+ | ---- | ---- | ----------- | ----- |
586
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
587
+ | **dataset_id** | **String** | The id of the dataset you want to retrieve usage for. | |
588
+
589
+ ### Return type
590
+
591
+ [**DatasetUsageCount**](DatasetUsageCount.md)
592
+
593
+ ### Authorization
594
+
595
+ [ApiKey](../README.md#ApiKey)
596
+
597
+ ### HTTP request headers
598
+
599
+ - **Content-Type**: Not defined
600
+ - **Accept**: application/json
601
+
602
+
379
603
  ## update_dataset
380
604
 
381
605
  > <Dataset> update_dataset(tr_organization, update_dataset_request)
data/docs/DateRange.md ADDED
@@ -0,0 +1,24 @@
1
+ # TrieveRubyClient::DateRange
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **gt** | **String** | | [optional] |
8
+ | **gte** | **String** | | [optional] |
9
+ | **lt** | **String** | | [optional] |
10
+ | **lte** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'trieve_ruby_client'
16
+
17
+ instance = TrieveRubyClient::DateRange.new(
18
+ gt: null,
19
+ gte: null,
20
+ lt: null,
21
+ lte: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,44 @@
1
+ # TrieveRubyClient::EditMessageReqPayload
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **completion_first** | **Boolean** | Completion first decides whether the stream should contain the stream of the completion response or the chunks first. Default is false. Keep in mind that || is used to separate the chunks from the completion response. If || is in the completion then you may want to split on ||{ instead. | [optional] |
8
+ | **filters** | [**ChunkFilter**](ChunkFilter.md) | | [optional] |
9
+ | **frequency_penalty** | **Float** | Frequency penalty is a number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model&#39;s likelihood to repeat the same line verbatim. Default is 0.7. | [optional] |
10
+ | **highlight_citations** | **Boolean** | Whether or not to highlight the citations in the response. If this is set to true or not included, the citations will be highlighted. If this is set to false, the citations will not be highlighted. Default is true. | [optional] |
11
+ | **highlight_delimiters** | **Array&lt;String&gt;** | The delimiters to use for highlighting the citations. If this is not included, the default delimiters will be used. Default is &#x60;[\&quot;.\&quot;, \&quot;!\&quot;, \&quot;?\&quot;, \&quot;\\n\&quot;, \&quot;\\t\&quot;, \&quot;,\&quot;]&#x60;. | [optional] |
12
+ | **max_tokens** | **Integer** | The maximum number of tokens to generate in the chat completion. | [optional] |
13
+ | **message_sort_order** | **Integer** | The sort order of the message to edit. | |
14
+ | **new_message_content** | **String** | The new content of the message to replace the old content with. | |
15
+ | **presence_penalty** | **Float** | Presence penalty is a number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model&#39;s likelihood to talk about new topics. | [optional] |
16
+ | **search_type** | **String** | Search_type can be either \&quot;semantic\&quot;, \&quot;fulltext\&quot;, or \&quot;hybrid\&quot;. \&quot;hybrid\&quot; will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using BAAI/bge-reranker-large. \&quot;semantic\&quot; will pull in one page (10 chunks) of the nearest cosine distant vectors. \&quot;fulltext\&quot; will pull in one page (10 chunks) of full-text results based on SPLADE. | [optional] |
17
+ | **stop_tokens** | **Array&lt;String&gt;** | Stop tokens are up to 4 sequences where the API will stop generating further tokens. | [optional] |
18
+ | **stream_response** | **Boolean** | Whether or not to stream the response. If this is set to true or not included, the response will be a stream. If this is set to false, the response will be a normal JSON response. Default is true. | [optional] |
19
+ | **temperature** | **Float** | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Default is 0.7. | [optional] |
20
+ | **topic_id** | **String** | The id of the topic to edit the message at the given sort order for. | |
21
+
22
+ ## Example
23
+
24
+ ```ruby
25
+ require 'trieve_ruby_client'
26
+
27
+ instance = TrieveRubyClient::EditMessageReqPayload.new(
28
+ completion_first: null,
29
+ filters: null,
30
+ frequency_penalty: null,
31
+ highlight_citations: null,
32
+ highlight_delimiters: null,
33
+ max_tokens: null,
34
+ message_sort_order: null,
35
+ new_message_content: null,
36
+ presence_penalty: null,
37
+ search_type: null,
38
+ stop_tokens: null,
39
+ stream_response: null,
40
+ temperature: null,
41
+ topic_id: null
42
+ )
43
+ ```
44
+
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **date_range** | [**DateRange**](DateRange.md) | | [optional] |
7
8
  | **field** | **String** | Field is the name of the field to filter on. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with &#x60;metadata.&#x60;. | |
8
9
  | **geo_bounding_box** | [**LocationBoundingBox**](LocationBoundingBox.md) | | [optional] |
9
10
  | **geo_polygon** | [**LocationPolygon**](LocationPolygon.md) | | [optional] |
@@ -17,6 +18,7 @@
17
18
  require 'trieve_ruby_client'
18
19
 
19
20
  instance = TrieveRubyClient::FieldCondition.new(
21
+ date_range: null,
20
22
  field: null,
21
23
  geo_bounding_box: null,
22
24
  geo_polygon: null,
data/docs/File.md CHANGED
@@ -11,7 +11,7 @@
11
11
  | **link** | **String** | | [optional] |
12
12
  | **metadata** | **Object** | | [optional] |
13
13
  | **size** | **Integer** | | |
14
- | **tag_set** | **String** | | [optional] |
14
+ | **tag_set** | **Array&lt;String&gt;** | | [optional] |
15
15
  | **time_stamp** | **Time** | | [optional] |
16
16
  | **updated_at** | **Time** | | |
17
17
 
data/docs/FileApi.md CHANGED
@@ -16,7 +16,7 @@ All URIs are relative to *https://api.trieve.ai*
16
16
 
17
17
  Delete File
18
18
 
19
- Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth'ed user must be an admin or owner of the dataset's organization to delete a file.
19
+ Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
20
20
 
21
21
  ### Examples
22
22
 
@@ -232,7 +232,7 @@ end
232
232
 
233
233
  ## upload_file_handler
234
234
 
235
- > <UploadFileResult> upload_file_handler(tr_dataset, upload_file_data)
235
+ > <UploadFileResult> upload_file_handler(tr_dataset, upload_file_req_payload)
236
236
 
237
237
  Upload File
238
238
 
@@ -253,11 +253,11 @@ end
253
253
 
254
254
  api_instance = TrieveRubyClient::FileApi.new
255
255
  tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
256
- upload_file_data = TrieveRubyClient::UploadFileData.new({base64_file: 'base64_file_example', file_name: 'file_name_example'}) # UploadFileData | JSON request payload to upload a file
256
+ upload_file_req_payload = TrieveRubyClient::UploadFileReqPayload.new({base64_file: 'base64_file_example', file_name: 'file_name_example'}) # UploadFileReqPayload | JSON request payload to upload a file
257
257
 
258
258
  begin
259
259
  # Upload File
260
- result = api_instance.upload_file_handler(tr_dataset, upload_file_data)
260
+ result = api_instance.upload_file_handler(tr_dataset, upload_file_req_payload)
261
261
  p result
262
262
  rescue TrieveRubyClient::ApiError => e
263
263
  puts "Error when calling FileApi->upload_file_handler: #{e}"
@@ -268,12 +268,12 @@ end
268
268
 
269
269
  This returns an Array which contains the response data, status code and headers.
270
270
 
271
- > <Array(<UploadFileResult>, Integer, Hash)> upload_file_handler_with_http_info(tr_dataset, upload_file_data)
271
+ > <Array(<UploadFileResult>, Integer, Hash)> upload_file_handler_with_http_info(tr_dataset, upload_file_req_payload)
272
272
 
273
273
  ```ruby
274
274
  begin
275
275
  # Upload File
276
- data, status_code, headers = api_instance.upload_file_handler_with_http_info(tr_dataset, upload_file_data)
276
+ data, status_code, headers = api_instance.upload_file_handler_with_http_info(tr_dataset, upload_file_req_payload)
277
277
  p status_code # => 2xx
278
278
  p headers # => { ... }
279
279
  p data # => <UploadFileResult>
@@ -287,7 +287,7 @@ end
287
287
  | Name | Type | Description | Notes |
288
288
  | ---- | ---- | ----------- | ----- |
289
289
  | **tr_dataset** | **String** | The dataset id to use for the request | |
290
- | **upload_file_data** | [**UploadFileData**](UploadFileData.md) | JSON request payload to upload a file | |
290
+ | **upload_file_req_payload** | [**UploadFileReqPayload**](UploadFileReqPayload.md) | JSON request payload to upload a file | |
291
291
 
292
292
  ### Return type
293
293
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **chunk_ids** | **Array&lt;String&gt;** | The ids of the chunks to be retrieved and injected into the context window for RAG. | |
8
+ | **highlight_results** | **Boolean** | Set highlight_results to false for a slight latency improvement (1-10ms). If not specified, this defaults to true. This will add &#x60;&lt;b&gt;&lt;mark&gt;&#x60;&#x60; tags to the chunk_html of the chunks to highlight matching splits. | [optional] |
8
9
  | **prev_messages** | [**Array&lt;ChatMessageProxy&gt;**](ChatMessageProxy.md) | The previous messages to be placed into the chat history. The last message in this array will be the prompt for the model to inference on. The length of this array must be at least 1. | |
9
10
  | **prompt** | **String** | Prompt for the last message in the prev_messages array. This will be used to generate the next message in the chat. The default is &#39;Respond to the instruction and include the doc numbers that you used in square brackets at the end of the sentences that you used the docs for:&#39;. You can also specify an empty string to leave the final message alone such that your user&#39;s final message can be used as the prompt. See docs.trieve.ai or contact us for more information. | [optional] |
10
11
  | **stream_response** | **Boolean** | Whether or not to stream the response. If this is set to true or not included, the response will be a stream. If this is set to false, the response will be a normal JSON response. Default is true. | [optional] |
@@ -16,6 +17,7 @@ require 'trieve_ruby_client'
16
17
 
17
18
  instance = TrieveRubyClient::GenerateChunksRequest.new(
18
19
  chunk_ids: null,
20
+ highlight_results: null,
19
21
  prev_messages: null,
20
22
  prompt: null,
21
23
  stream_response: null
@@ -0,0 +1,20 @@
1
+ # TrieveRubyClient::GetDatasetsPagination
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **limit** | **Integer** | | [optional] |
8
+ | **offset** | **Integer** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'trieve_ruby_client'
14
+
15
+ instance = TrieveRubyClient::GetDatasetsPagination.new(
16
+ limit: null,
17
+ offset: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # TrieveRubyClient::HasIDCondition
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **ids** | **Array&lt;String&gt;** | | [optional] |
8
+ | **tracking_ids** | **Array&lt;String&gt;** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'trieve_ruby_client'
14
+
15
+ instance = TrieveRubyClient::HasIDCondition.new(
16
+ ids: null,
17
+ tracking_ids: null
18
+ )
19
+ ```
20
+
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.trieve.ai*
13
13
 
14
14
  Send Invitation
15
15
 
16
- Send Invitation Invitations act as a way to invite users to join an organization. After a user is invited, they will automatically be added to the organization with the role specified in the invitation once they set their.
16
+ Send Invitation Invitations act as a way to invite users to join an organization. After a user is invited, they will automatically be added to the organization with the role specified in the invitation once they set their. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
17
17
 
18
18
  ### Examples
19
19