trieve_ruby_client 0.4.0 → 0.5.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 (255) hide show
  1. checksums.yaml +4 -4
  2. data/GENERATE_COMMAND.txt +1 -0
  3. data/README.md +29 -18
  4. data/docs/AddChunkToGroupData.md +1 -1
  5. data/docs/AuthApi.md +1 -1
  6. data/docs/ChunkApi.md +34 -38
  7. data/docs/ChunkGroupApi.md +51 -48
  8. data/docs/DatasetApi.md +9 -9
  9. data/docs/EventsApi.md +1 -1
  10. data/docs/FileApi.md +1 -1
  11. data/docs/GetEventsData.md +1 -1
  12. data/docs/GroupScoreChunkDTO.md +2 -0
  13. data/docs/GroupSlimChunksDTO.md +20 -0
  14. data/docs/HealthApi.md +1 -1
  15. data/docs/InvitationApi.md +1 -1
  16. data/docs/MessageApi.md +1 -1
  17. data/docs/OrganizationApi.md +1 -1
  18. data/docs/Range.md +4 -4
  19. data/docs/RangeCondition.md +49 -0
  20. data/docs/ReccomendGroupChunksRequest.md +3 -1
  21. data/docs/RecommendChunksRequest.md +3 -1
  22. data/docs/RecommendChunksResponseTypes.md +49 -0
  23. data/docs/RecommendGroupChunkResponseTypes.md +49 -0
  24. data/docs/ScoreSlimChunks.md +20 -0
  25. data/docs/SearchChunkData.md +4 -0
  26. data/docs/SearchChunkResponseTypes.md +49 -0
  27. data/docs/SearchGroupSlimChunksResult.md +22 -0
  28. data/docs/SearchOverGroupsData.md +5 -1
  29. data/docs/SearchOverGroupsResponseTypes.md +49 -0
  30. data/docs/SearchOverGroupsSlimChunksResponseBody.md +20 -0
  31. data/docs/SearchSlimChunkQueryResponseBody.md +20 -0
  32. data/docs/SearchWithinGroupData.md +4 -0
  33. data/docs/SearchWithinGroupResponseTypes.md +49 -0
  34. data/docs/SlimChunkMetadata.md +36 -0
  35. data/docs/SlimUser.md +1 -7
  36. data/docs/StripeApi.md +1 -1
  37. data/docs/TopicApi.md +9 -9
  38. data/docs/UpdateChunkData.md +2 -0
  39. data/docs/UpdateUserData.md +1 -7
  40. data/docs/UserApi.md +9 -9
  41. data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
  42. data/lib/trieve_ruby_client/api/chunk_api.rb +34 -38
  43. data/lib/trieve_ruby_client/api/chunk_group_api.rb +56 -59
  44. data/lib/trieve_ruby_client/api/dataset_api.rb +11 -16
  45. data/lib/trieve_ruby_client/api/events_api.rb +1 -1
  46. data/lib/trieve_ruby_client/api/file_api.rb +1 -1
  47. data/lib/trieve_ruby_client/api/health_api.rb +1 -1
  48. data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
  49. data/lib/trieve_ruby_client/api/message_api.rb +1 -1
  50. data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
  51. data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
  52. data/lib/trieve_ruby_client/api/topic_api.rb +11 -16
  53. data/lib/trieve_ruby_client/api/user_api.rb +11 -16
  54. data/lib/trieve_ruby_client/api_client.rb +1 -1
  55. data/lib/trieve_ruby_client/api_error.rb +1 -1
  56. data/lib/trieve_ruby_client/configuration.rb +7 -7
  57. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +2 -2
  58. data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
  59. data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
  60. data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
  61. data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
  62. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
  63. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
  64. data/lib/trieve_ruby_client/models/chunk_data.rb +1 -1
  65. data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
  66. data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
  67. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
  68. data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
  69. data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +1 -1
  70. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
  71. data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
  72. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +1 -1
  73. data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
  74. data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
  75. data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
  76. data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
  77. data/lib/trieve_ruby_client/models/dataset.rb +1 -1
  78. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
  79. data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
  80. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
  81. data/lib/trieve_ruby_client/models/delete_dataset_request.rb +1 -1
  82. data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
  83. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
  84. data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
  85. data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
  86. data/lib/trieve_ruby_client/models/event.rb +1 -1
  87. data/lib/trieve_ruby_client/models/event_return.rb +1 -1
  88. data/lib/trieve_ruby_client/models/field_condition.rb +1 -1
  89. data/lib/trieve_ruby_client/models/file.rb +1 -1
  90. data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
  91. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +1 -1
  92. data/lib/trieve_ruby_client/models/get_events_data.rb +2 -2
  93. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
  94. data/lib/trieve_ruby_client/models/group_data.rb +1 -1
  95. data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +12 -2
  96. data/lib/trieve_ruby_client/models/group_slim_chunks_dto.rb +239 -0
  97. data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
  98. data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
  99. data/lib/trieve_ruby_client/models/message.rb +1 -1
  100. data/lib/trieve_ruby_client/models/organization.rb +1 -1
  101. data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
  102. data/lib/trieve_ruby_client/models/range.rb +5 -5
  103. data/lib/trieve_ruby_client/models/range_condition.rb +105 -0
  104. data/lib/trieve_ruby_client/models/reccomend_group_chunks_request.rb +17 -6
  105. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +17 -6
  106. data/lib/trieve_ruby_client/models/recommend_chunks_response_types.rb +105 -0
  107. data/lib/trieve_ruby_client/models/recommend_group_chunk_response_types.rb +105 -0
  108. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
  109. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
  110. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
  111. data/lib/trieve_ruby_client/models/score_slim_chunks.rb +239 -0
  112. data/lib/trieve_ruby_client/models/search_chunk_data.rb +24 -2
  113. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
  114. data/lib/trieve_ruby_client/models/search_chunk_response_types.rb +105 -0
  115. data/lib/trieve_ruby_client/models/search_group_slim_chunks_result.rb +255 -0
  116. data/lib/trieve_ruby_client/models/search_groups_result.rb +1 -1
  117. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +27 -5
  118. data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +1 -1
  119. data/lib/trieve_ruby_client/models/search_over_groups_response_types.rb +105 -0
  120. data/lib/trieve_ruby_client/models/search_over_groups_slim_chunks_response_body.rb +239 -0
  121. data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +239 -0
  122. data/lib/trieve_ruby_client/models/search_within_group_data.rb +24 -2
  123. data/lib/trieve_ruby_client/models/search_within_group_response_types.rb +105 -0
  124. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
  125. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
  126. data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
  127. data/lib/trieve_ruby_client/models/{stripe_subscription.rb → slim_chunk_metadata.rb} +75 -57
  128. data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
  129. data/lib/trieve_ruby_client/models/slim_user.rb +5 -41
  130. data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
  131. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
  132. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
  133. data/lib/trieve_ruby_client/models/topic.rb +1 -1
  134. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
  135. data/lib/trieve_ruby_client/models/update_chunk_data.rb +15 -2
  136. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
  137. data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
  138. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
  139. data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
  140. data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
  141. data/lib/trieve_ruby_client/models/update_user_data.rb +6 -39
  142. data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
  143. data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
  144. data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
  145. data/lib/trieve_ruby_client/version.rb +2 -2
  146. data/lib/trieve_ruby_client.rb +13 -2
  147. data/openapi-generator.yaml +1 -1
  148. data/openapi.json +692 -335
  149. data/spec/api/auth_api_spec.rb +16 -18
  150. data/spec/api/chunk_api_spec.rb +30 -43
  151. data/spec/api/chunk_group_api_spec.rb +54 -33
  152. data/spec/api/dataset_api_spec.rb +19 -19
  153. data/spec/api/events_api_spec.rb +10 -10
  154. data/spec/api/file_api_spec.rb +15 -15
  155. data/spec/api/health_api_spec.rb +9 -7
  156. data/spec/api/invitation_api_spec.rb +9 -9
  157. data/spec/api/message_api_spec.rb +15 -15
  158. data/spec/api/organization_api_spec.rb +19 -19
  159. data/spec/api/stripe_api_spec.rb +15 -7
  160. data/spec/api/topic_api_spec.rb +15 -15
  161. data/spec/api/user_api_spec.rb +13 -13
  162. data/spec/models/add_chunk_to_group_data_spec.rb +8 -8
  163. data/spec/models/api_key_dto_spec.rb +8 -8
  164. data/spec/models/auth_query_spec.rb +1 -1
  165. data/spec/models/batch_queued_chunk_response_spec.rb +1 -1
  166. data/spec/models/bookmark_data_spec.rb +8 -8
  167. data/spec/models/bookmark_group_result_spec.rb +8 -8
  168. data/spec/models/chat_message_proxy_spec.rb +8 -8
  169. data/spec/models/chunk_data_spec.rb +1 -1
  170. data/spec/models/chunk_filter_spec.rb +8 -8
  171. data/spec/models/chunk_group_and_file_spec.rb +8 -8
  172. data/spec/models/chunk_group_spec.rb +8 -8
  173. data/spec/models/chunk_metadata_spec.rb +8 -8
  174. data/spec/models/chunk_metadata_with_file_data_spec.rb +8 -8
  175. data/spec/models/client_dataset_configuration_spec.rb +8 -8
  176. data/spec/models/create_chunk_data_spec.rb +11 -87
  177. data/spec/models/create_chunk_group_data_spec.rb +8 -8
  178. data/spec/models/create_dataset_request_spec.rb +8 -8
  179. data/spec/models/create_message_data_spec.rb +8 -8
  180. data/spec/models/create_organization_data_spec.rb +8 -8
  181. data/spec/models/create_topic_data_spec.rb +8 -8
  182. data/spec/models/dataset_and_usage_spec.rb +8 -8
  183. data/spec/models/dataset_dto_spec.rb +8 -8
  184. data/spec/models/dataset_spec.rb +8 -8
  185. data/spec/models/dataset_usage_count_spec.rb +8 -8
  186. data/spec/models/delete_dataset_request_spec.rb +8 -8
  187. data/spec/models/delete_topic_data_spec.rb +8 -8
  188. data/spec/models/delete_user_api_key_request_spec.rb +8 -8
  189. data/spec/models/edit_message_data_spec.rb +8 -8
  190. data/spec/models/error_response_body_spec.rb +8 -8
  191. data/spec/models/event_return_spec.rb +8 -8
  192. data/spec/models/event_spec.rb +8 -8
  193. data/spec/models/field_condition_spec.rb +8 -8
  194. data/spec/models/file_dto_spec.rb +8 -8
  195. data/spec/models/file_spec.rb +8 -8
  196. data/spec/models/generate_chunks_request_spec.rb +8 -8
  197. data/spec/models/get_events_data_spec.rb +1 -1
  198. data/spec/models/get_groups_for_chunks_data_spec.rb +8 -8
  199. data/spec/models/group_data_spec.rb +8 -8
  200. data/spec/models/group_score_chunk_dto_spec.rb +8 -8
  201. data/spec/models/group_slim_chunks_dto_spec.rb +42 -0
  202. data/spec/models/invitation_data_spec.rb +8 -8
  203. data/spec/models/match_condition_spec.rb +6 -6
  204. data/spec/models/message_spec.rb +8 -8
  205. data/spec/models/organization_spec.rb +8 -8
  206. data/spec/models/organization_usage_count_spec.rb +8 -8
  207. data/spec/models/range_condition_spec.rb +32 -0
  208. data/spec/models/range_spec.rb +8 -8
  209. data/spec/models/reccomend_group_chunks_request_spec.rb +8 -8
  210. data/spec/models/recommend_chunks_request_spec.rb +8 -8
  211. data/spec/models/recommend_chunks_response_types_spec.rb +32 -0
  212. data/spec/models/recommend_group_chunk_response_types_spec.rb +32 -0
  213. data/spec/models/regenerate_message_data_spec.rb +8 -8
  214. data/spec/models/return_queued_chunk_spec.rb +11 -21
  215. data/spec/models/score_chunk_dto_spec.rb +8 -8
  216. data/spec/models/score_slim_chunks_spec.rb +42 -0
  217. data/spec/models/search_chunk_data_spec.rb +8 -8
  218. data/spec/models/search_chunk_query_response_body_spec.rb +8 -8
  219. data/spec/models/search_chunk_response_types_spec.rb +32 -0
  220. data/spec/models/search_group_slim_chunks_result_spec.rb +48 -0
  221. data/spec/models/search_groups_result_spec.rb +8 -8
  222. data/spec/models/search_over_groups_data_spec.rb +8 -8
  223. data/spec/models/search_over_groups_response_body_spec.rb +8 -8
  224. data/spec/models/search_over_groups_response_types_spec.rb +32 -0
  225. data/spec/models/search_over_groups_slim_chunks_response_body_spec.rb +42 -0
  226. data/spec/models/search_slim_chunk_query_response_body_spec.rb +42 -0
  227. data/spec/models/search_within_group_data_spec.rb +8 -8
  228. data/spec/models/search_within_group_response_types_spec.rb +32 -0
  229. data/spec/models/set_user_api_key_request_spec.rb +8 -8
  230. data/spec/models/set_user_api_key_response_spec.rb +8 -8
  231. data/spec/models/single_queued_chunk_response_spec.rb +1 -1
  232. data/spec/models/{stripe_subscription_spec.rb → slim_chunk_metadata_spec.rb} +33 -15
  233. data/spec/models/slim_group_spec.rb +8 -8
  234. data/spec/models/slim_user_spec.rb +8 -8
  235. data/spec/models/stripe_plan_spec.rb +8 -8
  236. data/spec/models/suggested_queries_request_spec.rb +8 -8
  237. data/spec/models/suggested_queries_response_spec.rb +8 -8
  238. data/spec/models/topic_spec.rb +8 -8
  239. data/spec/models/update_chunk_by_tracking_id_data_spec.rb +20 -8
  240. data/spec/models/update_chunk_data_spec.rb +20 -8
  241. data/spec/models/update_chunk_group_data_spec.rb +14 -8
  242. data/spec/models/update_dataset_request_spec.rb +8 -8
  243. data/spec/models/update_group_by_tracking_id_data_spec.rb +8 -8
  244. data/spec/models/update_organization_data_spec.rb +8 -8
  245. data/spec/models/update_topic_data_spec.rb +8 -8
  246. data/spec/models/update_user_data_spec.rb +8 -8
  247. data/spec/models/upload_file_data_spec.rb +8 -8
  248. data/spec/models/upload_file_result_spec.rb +8 -8
  249. data/spec/models/user_organization_spec.rb +8 -8
  250. data/spec/spec_helper.rb +1 -1
  251. data/trieve_ruby_client-0.5.0.gem +0 -0
  252. data/trieve_ruby_client.gemspec +1 -1
  253. metadata +52 -7
  254. data/docs/StripeSubscription.md +0 -30
  255. data/trieve_ruby_client-0.3.5.gem +0 -0
data/openapi.json CHANGED
@@ -12,16 +12,16 @@
12
12
  "name": "BSL",
13
13
  "url": "https://github.com/devflowinc/trieve/blob/main/LICENSE.txt"
14
14
  },
15
- "version": "0.4.0"
15
+ "version": "0.5.7"
16
16
  },
17
17
  "servers": [
18
- {
19
- "url": "http://localhost:8090",
20
- "description": "Local development server"
21
- },
22
18
  {
23
19
  "url": "https://api.trieve.ai",
24
20
  "description": "Production server"
21
+ },
22
+ {
23
+ "url": "http://localhost:8090",
24
+ "description": "Local development server"
25
25
  }
26
26
  ],
27
27
  "paths": {
@@ -150,8 +150,8 @@
150
150
  "tags": [
151
151
  "chunk"
152
152
  ],
153
- "summary": "Create Chunk",
154
- "description": "Create Chunk\n\nCreate a new chunk. If the chunk has the same tracking_id as an existing chunk, the request will fail. Once a chunk is created, it can be searched for using the search endpoint.",
153
+ "summary": "Create or Upsert Chunk or Chunks",
154
+ "description": "Create or Upsert Chunk or Chunks\n\nCreate a new chunk. If the chunk has the same tracking_id as an existing chunk, the request will fail. Once a chunk is created, it can be searched for using the search endpoint.",
155
155
  "operationId": "create_chunk",
156
156
  "parameters": [
157
157
  {
@@ -214,6 +214,58 @@
214
214
  ]
215
215
  }
216
216
  ]
217
+ },
218
+ "put": {
219
+ "tags": [
220
+ "chunk"
221
+ ],
222
+ "summary": "Update Chunk",
223
+ "description": "Update Chunk\n\nUpdate a chunk. If you try to change the tracking_id of the chunk to have the same tracking_id as an existing chunk, the request will fail.",
224
+ "operationId": "update_chunk",
225
+ "parameters": [
226
+ {
227
+ "name": "TR-Dataset",
228
+ "in": "header",
229
+ "description": "The dataset id to use for the request",
230
+ "required": true,
231
+ "schema": {
232
+ "type": "string"
233
+ }
234
+ }
235
+ ],
236
+ "requestBody": {
237
+ "description": "JSON request payload to update a chunk (chunk)",
238
+ "content": {
239
+ "application/json": {
240
+ "schema": {
241
+ "$ref": "#/components/schemas/UpdateChunkData"
242
+ }
243
+ }
244
+ },
245
+ "required": true
246
+ },
247
+ "responses": {
248
+ "204": {
249
+ "description": "No content Ok response indicating the chunk was updated as requested"
250
+ },
251
+ "400": {
252
+ "description": "Service error relating to to updating chunk, likely due to conflicting tracking_id",
253
+ "content": {
254
+ "application/json": {
255
+ "schema": {
256
+ "$ref": "#/components/schemas/ErrorResponseBody"
257
+ }
258
+ }
259
+ }
260
+ }
261
+ },
262
+ "security": [
263
+ {
264
+ "ApiKey": [
265
+ "admin"
266
+ ]
267
+ }
268
+ ]
217
269
  }
218
270
  },
219
271
  "/api/chunk/gen_suggestions": {
@@ -282,8 +334,8 @@
282
334
  "tags": [
283
335
  "chunk"
284
336
  ],
285
- "summary": "RAG on User Defined Chunks",
286
- "description": "RAG on User Defined Chunks\n\nThis endpoint exists as an alternative to the topic+message concept where our API handles chat memory. With this endpoint, the user is responsible for providing the context window and the prompt. See more in the \"search before generate\" page at docs.trieve.ai.",
337
+ "summary": "RAG on Specified Chunks",
338
+ "description": "RAG on Specified Chunks\n\nThis endpoint exists as an alternative to the topic+message concept where our API handles chat memory. With this endpoint, the user is responsible for providing the context window and the prompt. See more in the \"search before generate\" page at docs.trieve.ai.",
287
339
  "operationId": "generate_off_chunks",
288
340
  "parameters": [
289
341
  {
@@ -370,14 +422,11 @@
370
422
  },
371
423
  "responses": {
372
424
  "200": {
373
- "description": "JSON response payload containing chunks with scores which are similar to those in the request body",
425
+ "description": "Chunks with embedding vectors which are similar to those in the request body",
374
426
  "content": {
375
427
  "application/json": {
376
428
  "schema": {
377
- "type": "array",
378
- "items": {
379
- "$ref": "#/components/schemas/ChunkMetadataWithFileData"
380
- }
429
+ "$ref": "#/components/schemas/RecommendChunksResponseTypes"
381
430
  }
382
431
  }
383
432
  }
@@ -434,11 +483,11 @@
434
483
  },
435
484
  "responses": {
436
485
  "200": {
437
- "description": "chunks which are similar to the embedding vector of the search query",
486
+ "description": "Chunks with embedding vectors which are similar to those in the request body",
438
487
  "content": {
439
488
  "application/json": {
440
489
  "schema": {
441
- "$ref": "#/components/schemas/SearchChunkQueryResponseBody"
490
+ "$ref": "#/components/schemas/SearchChunkResponseTypes"
442
491
  }
443
492
  }
444
493
  }
@@ -508,7 +557,6 @@
508
557
  }
509
558
  }
510
559
  },
511
- "deprecated": true,
512
560
  "security": [
513
561
  {
514
562
  "ApiKey": [
@@ -568,7 +616,6 @@
568
616
  }
569
617
  }
570
618
  },
571
- "deprecated": true,
572
619
  "security": [
573
620
  {
574
621
  "ApiKey": [
@@ -619,61 +666,6 @@
619
666
  }
620
667
  }
621
668
  },
622
- "deprecated": true,
623
- "security": [
624
- {
625
- "ApiKey": [
626
- "admin"
627
- ]
628
- }
629
- ]
630
- }
631
- },
632
- "/api/chunk/update": {
633
- "put": {
634
- "tags": [
635
- "chunk"
636
- ],
637
- "summary": "Update Chunk",
638
- "description": "Update Chunk\n\nUpdate a chunk. If you try to change the tracking_id of the chunk to have the same tracking_id as an existing chunk, the request will fail.",
639
- "operationId": "update_chunk",
640
- "parameters": [
641
- {
642
- "name": "TR-Dataset",
643
- "in": "header",
644
- "description": "The dataset id to use for the request",
645
- "required": true,
646
- "schema": {
647
- "type": "string"
648
- }
649
- }
650
- ],
651
- "requestBody": {
652
- "description": "JSON request payload to update a chunk (chunk)",
653
- "content": {
654
- "application/json": {
655
- "schema": {
656
- "$ref": "#/components/schemas/UpdateChunkData"
657
- }
658
- }
659
- },
660
- "required": true
661
- },
662
- "responses": {
663
- "204": {
664
- "description": "No content Ok response indicating the chunk was updated as requested"
665
- },
666
- "400": {
667
- "description": "Service error relating to to updating chunk, likely due to conflicting tracking_id",
668
- "content": {
669
- "application/json": {
670
- "schema": {
671
- "$ref": "#/components/schemas/ErrorResponseBody"
672
- }
673
- }
674
- }
675
- }
676
- },
677
669
  "security": [
678
670
  {
679
671
  "ApiKey": [
@@ -683,7 +675,7 @@
683
675
  ]
684
676
  }
685
677
  },
686
- "/api/chunk/{tracking_or_chunk}/{chunk_id}": {
678
+ "/api/chunk/{chunk_id}": {
687
679
  "get": {
688
680
  "tags": [
689
681
  "chunk"
@@ -701,24 +693,14 @@
701
693
  "type": "string"
702
694
  }
703
695
  },
704
- {
705
- "name": "tracking_or_chunk",
706
- "in": "path",
707
- "description": "The type of id you are using to search for the chunk. This can be either 'chunk' or 'tracking_id'",
708
- "required": true,
709
- "schema": {
710
- "type": "string"
711
- }
712
- },
713
696
  {
714
697
  "name": "chunk_id",
715
698
  "in": "path",
716
- "description": "Id of the chunk you want to fetch. This can be either the chunk_id or the tracking_id.",
699
+ "description": "Id of the chunk you want to fetch.",
717
700
  "required": true,
718
701
  "schema": {
719
702
  "type": "string",
720
- "format": "uuid",
721
- "nullable": true
703
+ "format": "uuid"
722
704
  }
723
705
  }
724
706
  ],
@@ -769,24 +751,14 @@
769
751
  "type": "string"
770
752
  }
771
753
  },
772
- {
773
- "name": "tracking_or_chunk",
774
- "in": "path",
775
- "description": "The type of id you are using to search for the chunk. This can be either 'chunk' or 'tracking_id'",
776
- "required": true,
777
- "schema": {
778
- "type": "string"
779
- }
780
- },
781
754
  {
782
755
  "name": "chunk_id",
783
756
  "in": "path",
784
- "description": "Id of the chunk you want to fetch. This can be either the chunk_id or the tracking_id.",
757
+ "description": "Id of the chunk you want to fetch.",
785
758
  "required": true,
786
759
  "schema": {
787
760
  "type": "string",
788
- "format": "uuid",
789
- "nullable": true
761
+ "format": "uuid"
790
762
  }
791
763
  }
792
764
  ],
@@ -820,7 +792,7 @@
820
792
  "chunk_group"
821
793
  ],
822
794
  "summary": "Create Chunk Group",
823
- "description": "Create Chunk Group\n\nCreate a new chunk_group.",
795
+ "description": "Create Chunk Group\n\nCreate a new chunk_group. This is a way to group chunks together. If you try to create a chunk_group with the same tracking_id as an existing chunk_group, this operation will fail.",
824
796
  "operationId": "create_chunk_group",
825
797
  "parameters": [
826
798
  {
@@ -879,7 +851,7 @@
879
851
  "chunk_group"
880
852
  ],
881
853
  "summary": "Update Group",
882
- "description": "Update Group\n\nUpdate a chunk_group.",
854
+ "description": "Update Group\n\nUpdate a chunk_group. If you try to change the tracking_id to one that already exists, this operation will fail.",
883
855
  "operationId": "update_chunk_group",
884
856
  "parameters": [
885
857
  {
@@ -933,7 +905,7 @@
933
905
  "chunk_group"
934
906
  ],
935
907
  "summary": "Add Chunk to Group",
936
- "description": "Add Chunk to Group\n\nRoute to add a chunk to a group",
908
+ "description": "Add Chunk to Group\n\nRoute to add a chunk to a group.",
937
909
  "operationId": "add_chunk_to_group",
938
910
  "parameters": [
939
911
  {
@@ -982,7 +954,6 @@
982
954
  }
983
955
  }
984
956
  },
985
- "deprecated": true,
986
957
  "security": [
987
958
  {
988
959
  "ApiKey": [
@@ -1045,7 +1016,6 @@
1045
1016
  }
1046
1017
  }
1047
1018
  },
1048
- "deprecated": true,
1049
1019
  "security": [
1050
1020
  {
1051
1021
  "ApiKey": [
@@ -1127,6 +1097,17 @@
1127
1097
  "summary": "Search Over Groups",
1128
1098
  "description": "Search Over Groups\n\nThis 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.",
1129
1099
  "operationId": "search_over_groups",
1100
+ "parameters": [
1101
+ {
1102
+ "name": "TR-Dataset",
1103
+ "in": "header",
1104
+ "description": "The dataset id to use for the request",
1105
+ "required": true,
1106
+ "schema": {
1107
+ "type": "string"
1108
+ }
1109
+ }
1110
+ ],
1130
1111
  "requestBody": {
1131
1112
  "description": "JSON request payload to semantically search over groups",
1132
1113
  "content": {
@@ -1144,7 +1125,7 @@
1144
1125
  "content": {
1145
1126
  "application/json": {
1146
1127
  "schema": {
1147
- "$ref": "#/components/schemas/SearchOverGroupsResponseBody"
1128
+ "$ref": "#/components/schemas/SearchOverGroupsResponseTypes"
1148
1129
  }
1149
1130
  }
1150
1131
  }
@@ -1159,7 +1140,14 @@
1159
1140
  }
1160
1141
  }
1161
1142
  }
1162
- }
1143
+ },
1144
+ "security": [
1145
+ {
1146
+ "ApiKey": [
1147
+ "readonly"
1148
+ ]
1149
+ }
1150
+ ]
1163
1151
  }
1164
1152
  },
1165
1153
  "/api/chunk_group/recommend": {
@@ -1194,14 +1182,11 @@
1194
1182
  },
1195
1183
  "responses": {
1196
1184
  "200": {
1197
- "description": "JSON response payload containing chunks with scores which are similar to those in the request body",
1185
+ "description": "JSON body representing the groups which are similar to the groups in the request",
1198
1186
  "content": {
1199
1187
  "application/json": {
1200
1188
  "schema": {
1201
- "type": "array",
1202
- "items": {
1203
- "$ref": "#/components/schemas/GroupScoreChunkDTO"
1204
- }
1189
+ "$ref": "#/components/schemas/RecommendGroupChunkResponseTypes"
1205
1190
  }
1206
1191
  }
1207
1192
  }
@@ -1262,7 +1247,7 @@
1262
1247
  "content": {
1263
1248
  "application/json": {
1264
1249
  "schema": {
1265
- "$ref": "#/components/schemas/SearchGroupsResult"
1250
+ "$ref": "#/components/schemas/SearchWithinGroupResponseTypes"
1266
1251
  }
1267
1252
  }
1268
1253
  }
@@ -1311,8 +1296,7 @@
1311
1296
  "description": "The id of the group to get the chunks from",
1312
1297
  "required": true,
1313
1298
  "schema": {
1314
- "type": "string",
1315
- "format": "uuid"
1299
+ "type": "string"
1316
1300
  }
1317
1301
  },
1318
1302
  {
@@ -1349,7 +1333,6 @@
1349
1333
  }
1350
1334
  }
1351
1335
  },
1352
- "deprecated": true,
1353
1336
  "security": [
1354
1337
  {
1355
1338
  "ApiKey": [
@@ -1409,7 +1392,6 @@
1409
1392
  }
1410
1393
  }
1411
1394
  },
1412
- "deprecated": true,
1413
1395
  "security": [
1414
1396
  {
1415
1397
  "ApiKey": [
@@ -1423,7 +1405,7 @@
1423
1405
  "chunk_group"
1424
1406
  ],
1425
1407
  "summary": "Add Chunk to Group by Tracking ID",
1426
- "description": "Add Chunk to Group by Tracking ID\n\nRoute to add a chunk to a group by tracking id. Think of a bookmark as a chunk which is a member of a group.",
1408
+ "description": "Add Chunk to Group by Tracking ID\n\nRoute to add a chunk to a group by tracking id.",
1427
1409
  "operationId": "add_chunk_to_group_by_tracking_id",
1428
1410
  "parameters": [
1429
1411
  {
@@ -1471,7 +1453,6 @@
1471
1453
  }
1472
1454
  }
1473
1455
  },
1474
- "deprecated": true,
1475
1456
  "security": [
1476
1457
  {
1477
1458
  "ApiKey": [
@@ -1534,7 +1515,6 @@
1534
1515
  }
1535
1516
  }
1536
1517
  },
1537
- "deprecated": true,
1538
1518
  "security": [
1539
1519
  {
1540
1520
  "ApiKey": [
@@ -1585,7 +1565,6 @@
1585
1565
  }
1586
1566
  }
1587
1567
  },
1588
- "deprecated": true,
1589
1568
  "security": [
1590
1569
  {
1591
1570
  "ApiKey": [
@@ -1595,7 +1574,7 @@
1595
1574
  ]
1596
1575
  }
1597
1576
  },
1598
- "/api/chunk_group/{tracking_or_chunk}/{group_id}": {
1577
+ "/api/chunk_group/{group_id}": {
1599
1578
  "get": {
1600
1579
  "tags": [
1601
1580
  "chunk_group"
@@ -1613,24 +1592,14 @@
1613
1592
  "type": "string"
1614
1593
  }
1615
1594
  },
1616
- {
1617
- "name": "tracking_or_chunk",
1618
- "in": "path",
1619
- "description": "The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'",
1620
- "required": true,
1621
- "schema": {
1622
- "type": "string"
1623
- }
1624
- },
1625
1595
  {
1626
1596
  "name": "group_id",
1627
1597
  "in": "path",
1628
- "description": "Id of the group you want to fetch. This can be either the group_id or the tracking_id.",
1598
+ "description": "Id of the group you want to fetch.",
1629
1599
  "required": true,
1630
1600
  "schema": {
1631
1601
  "type": "string",
1632
- "format": "uuid",
1633
- "nullable": true
1602
+ "format": "uuid"
1634
1603
  }
1635
1604
  }
1636
1605
  ],
@@ -1681,24 +1650,14 @@
1681
1650
  "type": "string"
1682
1651
  }
1683
1652
  },
1684
- {
1685
- "name": "tracking_or_chunk",
1686
- "in": "path",
1687
- "description": "The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'",
1688
- "required": true,
1689
- "schema": {
1690
- "type": "string"
1691
- }
1692
- },
1693
1653
  {
1694
1654
  "name": "group_id",
1695
1655
  "in": "path",
1696
- "description": "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.",
1656
+ "description": "Id of the group you want to fetch.",
1697
1657
  "required": true,
1698
1658
  "schema": {
1699
1659
  "type": "string",
1700
- "format": "uuid",
1701
- "nullable": true
1660
+ "format": "uuid"
1702
1661
  }
1703
1662
  },
1704
1663
  {
@@ -1735,7 +1694,7 @@
1735
1694
  ]
1736
1695
  }
1737
1696
  },
1738
- "/api/chunk_group/{tracking_or_chunk}/{group_id}/{page}": {
1697
+ "/api/chunk_group/{group_id}/{page}": {
1739
1698
  "get": {
1740
1699
  "tags": [
1741
1700
  "chunk_group"
@@ -1753,24 +1712,14 @@
1753
1712
  "type": "string"
1754
1713
  }
1755
1714
  },
1756
- {
1757
- "name": "tracking_or_chunk",
1758
- "in": "path",
1759
- "description": "The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'",
1760
- "required": true,
1761
- "schema": {
1762
- "type": "string"
1763
- }
1764
- },
1765
1715
  {
1766
1716
  "name": "group_id",
1767
1717
  "in": "path",
1768
- "description": "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.",
1718
+ "description": "Id of the group you want to fetch.",
1769
1719
  "required": true,
1770
1720
  "schema": {
1771
1721
  "type": "string",
1772
- "format": "uuid",
1773
- "nullable": true
1722
+ "format": "uuid"
1774
1723
  }
1775
1724
  },
1776
1725
  {
@@ -1781,6 +1730,7 @@
1781
1730
  "schema": {
1782
1731
  "type": "integer",
1783
1732
  "format": "int64",
1733
+ "nullable": true,
1784
1734
  "minimum": 0
1785
1735
  }
1786
1736
  }
@@ -1934,58 +1884,6 @@
1934
1884
  ]
1935
1885
  }
1936
1886
  ]
1937
- },
1938
- "delete": {
1939
- "tags": [
1940
- "dataset"
1941
- ],
1942
- "summary": "Delete Dataset",
1943
- "description": "Delete Dataset\n\nDelete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.",
1944
- "operationId": "delete_dataset",
1945
- "parameters": [
1946
- {
1947
- "name": "TR-Organization",
1948
- "in": "header",
1949
- "description": "The organization id to use for the request",
1950
- "required": true,
1951
- "schema": {
1952
- "type": "string"
1953
- }
1954
- }
1955
- ],
1956
- "requestBody": {
1957
- "description": "JSON request payload to delete a dataset",
1958
- "content": {
1959
- "application/json": {
1960
- "schema": {
1961
- "$ref": "#/components/schemas/DeleteDatasetRequest"
1962
- }
1963
- }
1964
- },
1965
- "required": true
1966
- },
1967
- "responses": {
1968
- "204": {
1969
- "description": "Dataset deleted successfully"
1970
- },
1971
- "400": {
1972
- "description": "Service error relating to deleting the dataset",
1973
- "content": {
1974
- "application/json": {
1975
- "schema": {
1976
- "$ref": "#/components/schemas/ErrorResponseBody"
1977
- }
1978
- }
1979
- }
1980
- }
1981
- },
1982
- "security": [
1983
- {
1984
- "ApiKey": [
1985
- "owner"
1986
- ]
1987
- }
1988
- ]
1989
1887
  }
1990
1888
  },
1991
1889
  "/api/dataset/envs": {
@@ -2312,31 +2210,82 @@
2312
2210
  ]
2313
2211
  }
2314
2212
  ]
2315
- }
2316
- },
2317
- "/api/events": {
2318
- "post": {
2213
+ },
2214
+ "delete": {
2319
2215
  "tags": [
2320
- "events"
2216
+ "dataset"
2321
2217
  ],
2322
- "summary": "Get events for the dataset",
2323
- "description": "Get events for the dataset\n\nGet events for the auth'ed user. Currently, this is only for events belonging to the auth'ed user. Soon, we plan to associate events to datasets instead of users.",
2324
- "operationId": "get_events",
2218
+ "summary": "Delete Dataset",
2219
+ "description": "Delete Dataset\n\nDelete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.",
2220
+ "operationId": "delete_dataset",
2325
2221
  "parameters": [
2326
2222
  {
2327
- "name": "TR-Dataset",
2223
+ "name": "TR-Organization",
2328
2224
  "in": "header",
2329
- "description": "The dataset id to use for the request",
2225
+ "description": "The organization id to use for the request",
2330
2226
  "required": true,
2331
2227
  "schema": {
2332
2228
  "type": "string"
2333
2229
  }
2334
- }
2335
- ],
2336
- "requestBody": {
2337
- "description": "JSON request payload to get events for a dataset",
2338
- "content": {
2339
- "application/json": {
2230
+ },
2231
+ {
2232
+ "name": "dataset_id",
2233
+ "in": "path",
2234
+ "description": "The id of the dataset you want to delete.",
2235
+ "required": true,
2236
+ "schema": {
2237
+ "type": "string",
2238
+ "format": "uuid"
2239
+ }
2240
+ }
2241
+ ],
2242
+ "responses": {
2243
+ "204": {
2244
+ "description": "Dataset deleted successfully"
2245
+ },
2246
+ "400": {
2247
+ "description": "Service error relating to deleting the dataset",
2248
+ "content": {
2249
+ "application/json": {
2250
+ "schema": {
2251
+ "$ref": "#/components/schemas/ErrorResponseBody"
2252
+ }
2253
+ }
2254
+ }
2255
+ }
2256
+ },
2257
+ "security": [
2258
+ {
2259
+ "ApiKey": [
2260
+ "owner"
2261
+ ]
2262
+ }
2263
+ ]
2264
+ }
2265
+ },
2266
+ "/api/events": {
2267
+ "post": {
2268
+ "tags": [
2269
+ "events"
2270
+ ],
2271
+ "summary": "Get events for the dataset",
2272
+ "description": "Get events for the dataset\n\nGet events for the auth'ed user. Currently, this is only for events belonging to the auth'ed user. Soon, we plan to associate events to datasets instead of users.",
2273
+ "operationId": "get_events",
2274
+ "parameters": [
2275
+ {
2276
+ "name": "TR-Dataset",
2277
+ "in": "header",
2278
+ "description": "The dataset id to use for the request",
2279
+ "required": true,
2280
+ "schema": {
2281
+ "type": "string"
2282
+ }
2283
+ }
2284
+ ],
2285
+ "requestBody": {
2286
+ "description": "JSON request payload to get events for a dataset",
2287
+ "content": {
2288
+ "application/json": {
2340
2289
  "schema": {
2341
2290
  "$ref": "#/components/schemas/GetEventsData"
2342
2291
  }
@@ -3529,15 +3478,27 @@
3529
3478
  ]
3530
3479
  }
3531
3480
  ]
3532
- },
3533
- "delete": {
3481
+ }
3482
+ },
3483
+ "/api/topic/user/{user_id}": {
3484
+ "get": {
3534
3485
  "tags": [
3535
3486
  "topic"
3536
3487
  ],
3537
- "summary": "Delete Topic",
3538
- "description": "Delete Topic\n\nDelete an existing chat topic. When a topic is deleted, all associated chat messages are also deleted.",
3539
- "operationId": "delete_topic",
3488
+ "summary": "Get All Topics for User",
3489
+ "description": "Get All Topics for User\n\nGet all topics belonging to a the auth'ed user. Soon, we plan to allow specification of the user for this route and include pagination.",
3490
+ "operationId": "get_all_topics_for_user",
3540
3491
  "parameters": [
3492
+ {
3493
+ "name": "user_id",
3494
+ "in": "path",
3495
+ "description": "The id of the user to get topics for",
3496
+ "required": true,
3497
+ "schema": {
3498
+ "type": "string",
3499
+ "format": "uuid"
3500
+ }
3501
+ },
3541
3502
  {
3542
3503
  "name": "TR-Dataset",
3543
3504
  "in": "header",
@@ -3548,23 +3509,22 @@
3548
3509
  }
3549
3510
  }
3550
3511
  ],
3551
- "requestBody": {
3552
- "description": "JSON request payload to delete a chat topic",
3553
- "content": {
3554
- "application/json": {
3555
- "schema": {
3556
- "$ref": "#/components/schemas/DeleteTopicData"
3512
+ "responses": {
3513
+ "200": {
3514
+ "description": "All topics belonging to a given user",
3515
+ "content": {
3516
+ "application/json": {
3517
+ "schema": {
3518
+ "type": "array",
3519
+ "items": {
3520
+ "$ref": "#/components/schemas/Topic"
3521
+ }
3522
+ }
3557
3523
  }
3558
3524
  }
3559
3525
  },
3560
- "required": true
3561
- },
3562
- "responses": {
3563
- "204": {
3564
- "description": "Confirmation that the topic was deleted"
3565
- },
3566
3526
  "400": {
3567
- "description": "Service error relating to topic deletion",
3527
+ "description": "Service error relating to topic get",
3568
3528
  "content": {
3569
3529
  "application/json": {
3570
3530
  "schema": {
@@ -3583,51 +3543,41 @@
3583
3543
  ]
3584
3544
  }
3585
3545
  },
3586
- "/api/topic/user/{user_id}": {
3587
- "get": {
3546
+ "/api/topic/{topic_id}": {
3547
+ "delete": {
3588
3548
  "tags": [
3589
3549
  "topic"
3590
3550
  ],
3591
- "summary": "Get All Topics for User",
3592
- "description": "Get All Topics for User\n\nGet all topics belonging to a the auth'ed user. Soon, we plan to allow specification of the user for this route and include pagination.",
3593
- "operationId": "get_all_topics_for_user",
3551
+ "summary": "Delete Topic",
3552
+ "description": "Delete Topic\n\nDelete an existing chat topic. When a topic is deleted, all associated chat messages are also deleted.",
3553
+ "operationId": "delete_topic",
3594
3554
  "parameters": [
3595
3555
  {
3596
- "name": "user_id",
3597
- "in": "path",
3598
- "description": "The id of the user to get topics for",
3556
+ "name": "TR-Dataset",
3557
+ "in": "header",
3558
+ "description": "The dataset id to use for the request",
3599
3559
  "required": true,
3600
3560
  "schema": {
3601
- "type": "string",
3602
- "format": "uuid"
3561
+ "type": "string"
3603
3562
  }
3604
3563
  },
3605
3564
  {
3606
- "name": "TR-Dataset",
3607
- "in": "header",
3608
- "description": "The dataset id to use for the request",
3565
+ "name": "topic_id",
3566
+ "in": "path",
3567
+ "description": "The id of the topic you want to delete.",
3609
3568
  "required": true,
3610
3569
  "schema": {
3611
- "type": "string"
3570
+ "type": "string",
3571
+ "format": "uuid"
3612
3572
  }
3613
3573
  }
3614
3574
  ],
3615
3575
  "responses": {
3616
- "200": {
3617
- "description": "All topics belonging to a given user",
3618
- "content": {
3619
- "application/json": {
3620
- "schema": {
3621
- "type": "array",
3622
- "items": {
3623
- "$ref": "#/components/schemas/Topic"
3624
- }
3625
- }
3626
- }
3627
- }
3576
+ "204": {
3577
+ "description": "Confirmation that the topic was deleted"
3628
3578
  },
3629
3579
  "400": {
3630
- "description": "Service error relating to topic get",
3580
+ "description": "Service error relating to topic deletion",
3631
3581
  "content": {
3632
3582
  "application/json": {
3633
3583
  "schema": {
@@ -3696,7 +3646,7 @@
3696
3646
  ]
3697
3647
  }
3698
3648
  },
3699
- "/api/user/delete_api_key": {
3649
+ "/api/user/delete_api_key/{api_key_id}": {
3700
3650
  "delete": {
3701
3651
  "tags": [
3702
3652
  "user"
@@ -3704,17 +3654,18 @@
3704
3654
  "summary": "Delete User Api Key",
3705
3655
  "description": "Delete User Api Key\n\nDelete an api key for the auth'ed user.",
3706
3656
  "operationId": "delete_user_api_key",
3707
- "requestBody": {
3708
- "description": "JSON request payload to delete a user api key",
3709
- "content": {
3710
- "application/json": {
3711
- "schema": {
3712
- "$ref": "#/components/schemas/DeleteUserApiKeyRequest"
3713
- }
3657
+ "parameters": [
3658
+ {
3659
+ "name": "api_key_id",
3660
+ "in": "path",
3661
+ "description": "The id of the api key to delete",
3662
+ "required": true,
3663
+ "schema": {
3664
+ "type": "string",
3665
+ "format": "uuid"
3714
3666
  }
3715
- },
3716
- "required": true
3717
- },
3667
+ }
3668
+ ],
3718
3669
  "responses": {
3719
3670
  "200": {
3720
3671
  "description": "JSON body representing the api_key for the user",
@@ -3811,7 +3762,7 @@
3811
3762
  "chunk_id": {
3812
3763
  "type": "string",
3813
3764
  "format": "uuid",
3814
- "description": "Id of the chunk to make a member of the group. Think of this as \"bookmark\"ing a chunk."
3765
+ "description": "Id of the chunk to make a member of the group."
3815
3766
  }
3816
3767
  }
3817
3768
  },
@@ -4894,19 +4845,6 @@
4894
4845
  "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
4895
4846
  }
4896
4847
  },
4897
- "DeleteDatasetRequest": {
4898
- "type": "object",
4899
- "required": [
4900
- "dataset_id"
4901
- ],
4902
- "properties": {
4903
- "dataset_id": {
4904
- "type": "string",
4905
- "format": "uuid",
4906
- "description": "The id of the dataset you want to delete."
4907
- }
4908
- }
4909
- },
4910
4848
  "DeleteTopicData": {
4911
4849
  "type": "object",
4912
4850
  "required": [
@@ -5279,7 +5217,7 @@
5279
5217
  "items": {
5280
5218
  "type": "string"
5281
5219
  },
5282
- "description": "The type of events to get. Any combination of file_uploaded, card_uploaded, card_action_failed, or card_updated. Leave undefined to get all events.",
5220
+ "description": "The types of events to get. Any combination of file_uploaded, card_uploaded, card_action_failed, or card_updated. Leave undefined to get all events.",
5283
5221
  "nullable": true
5284
5222
  },
5285
5223
  "page": {
@@ -5348,12 +5286,81 @@
5348
5286
  "type": "string",
5349
5287
  "format": "uuid"
5350
5288
  },
5289
+ "group_tracking_id": {
5290
+ "type": "string",
5291
+ "nullable": true
5292
+ },
5351
5293
  "metadata": {
5352
5294
  "type": "array",
5353
5295
  "items": {
5354
5296
  "$ref": "#/components/schemas/ScoreChunkDTO"
5355
5297
  }
5356
5298
  }
5299
+ },
5300
+ "example": {
5301
+ "group_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5302
+ "metadata": [
5303
+ {
5304
+ "metadata": [
5305
+ {
5306
+ "content": "This is a test content",
5307
+ "id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5308
+ "link": "https://www.google.com",
5309
+ "metadata": {
5310
+ "key": "value"
5311
+ },
5312
+ "tag_set": "test",
5313
+ "time_stamp": "2021-01-01T00:00:00Z",
5314
+ "tracking_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5315
+ "weight": 1
5316
+ }
5317
+ ],
5318
+ "score": 0.5
5319
+ }
5320
+ ]
5321
+ }
5322
+ },
5323
+ "GroupSlimChunksDTO": {
5324
+ "type": "object",
5325
+ "required": [
5326
+ "group_id",
5327
+ "metadata"
5328
+ ],
5329
+ "properties": {
5330
+ "group_id": {
5331
+ "type": "string",
5332
+ "format": "uuid"
5333
+ },
5334
+ "metadata": {
5335
+ "type": "array",
5336
+ "items": {
5337
+ "$ref": "#/components/schemas/ScoreSlimChunks"
5338
+ }
5339
+ }
5340
+ },
5341
+ "example": {
5342
+ "group_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5343
+ "metadata": [
5344
+ {
5345
+ "metadata": [
5346
+ {
5347
+ "created_at": "2021-01-01T00:00:00",
5348
+ "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5349
+ "link": "https://trieve.ai",
5350
+ "metadata": {
5351
+ "key": "value"
5352
+ },
5353
+ "qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5354
+ "tag_set": "tag1,tag2",
5355
+ "time_stamp": "2021-01-01T00:00:00",
5356
+ "tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5357
+ "updated_at": "2021-01-01T00:00:00",
5358
+ "weight": 0.5
5359
+ }
5360
+ ],
5361
+ "score": 0.5
5362
+ }
5363
+ ]
5357
5364
  }
5358
5365
  },
5359
5366
  "InvitationData": {
@@ -5559,23 +5566,35 @@
5559
5566
  "type": "object",
5560
5567
  "properties": {
5561
5568
  "gt": {
5562
- "type": "number",
5563
- "format": "double",
5569
+ "allOf": [
5570
+ {
5571
+ "$ref": "#/components/schemas/RangeCondition"
5572
+ }
5573
+ ],
5564
5574
  "nullable": true
5565
5575
  },
5566
5576
  "gte": {
5567
- "type": "number",
5568
- "format": "double",
5577
+ "allOf": [
5578
+ {
5579
+ "$ref": "#/components/schemas/RangeCondition"
5580
+ }
5581
+ ],
5569
5582
  "nullable": true
5570
5583
  },
5571
5584
  "lt": {
5572
- "type": "number",
5573
- "format": "double",
5585
+ "allOf": [
5586
+ {
5587
+ "$ref": "#/components/schemas/RangeCondition"
5588
+ }
5589
+ ],
5574
5590
  "nullable": true
5575
5591
  },
5576
5592
  "lte": {
5577
- "type": "number",
5578
- "format": "double",
5593
+ "allOf": [
5594
+ {
5595
+ "$ref": "#/components/schemas/RangeCondition"
5596
+ }
5597
+ ],
5579
5598
  "nullable": true
5580
5599
  }
5581
5600
  },
@@ -5586,6 +5605,17 @@
5586
5605
  "lte": 1
5587
5606
  }
5588
5607
  },
5608
+ "RangeCondition": {
5609
+ "oneOf": [
5610
+ {
5611
+ "type": "string"
5612
+ },
5613
+ {
5614
+ "type": "number",
5615
+ "format": "double"
5616
+ }
5617
+ ]
5618
+ },
5589
5619
  "ReccomendGroupChunksRequest": {
5590
5620
  "type": "object",
5591
5621
  "properties": {
@@ -5644,6 +5674,11 @@
5644
5674
  },
5645
5675
  "description": "The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups.",
5646
5676
  "nullable": true
5677
+ },
5678
+ "slim_chunks": {
5679
+ "type": "boolean",
5680
+ "description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
5681
+ "nullable": true
5647
5682
  }
5648
5683
  }
5649
5684
  },
@@ -5698,9 +5733,127 @@
5698
5733
  },
5699
5734
  "description": "The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.",
5700
5735
  "nullable": true
5736
+ },
5737
+ "slim_chunks": {
5738
+ "type": "boolean",
5739
+ "description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
5740
+ "nullable": true
5701
5741
  }
5702
5742
  }
5703
5743
  },
5744
+ "RecommendChunksResponseTypes": {
5745
+ "oneOf": [
5746
+ {
5747
+ "type": "array",
5748
+ "items": {
5749
+ "$ref": "#/components/schemas/ChunkMetadata"
5750
+ },
5751
+ "example": [
5752
+ {
5753
+ "chunk_html": "<p>Hello, world!</p>",
5754
+ "content": "Hello, world!",
5755
+ "created_at": "2021-01-01T00:00:00",
5756
+ "dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5757
+ "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5758
+ "link": "https://trieve.ai",
5759
+ "metadata": {
5760
+ "key": "value"
5761
+ },
5762
+ "qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5763
+ "tag_set": "tag1,tag2",
5764
+ "time_stamp": "2021-01-01T00:00:00",
5765
+ "tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5766
+ "updated_at": "2021-01-01T00:00:00",
5767
+ "weight": 0.5
5768
+ }
5769
+ ]
5770
+ },
5771
+ {
5772
+ "type": "array",
5773
+ "items": {
5774
+ "$ref": "#/components/schemas/SlimChunkMetadata"
5775
+ },
5776
+ "example": [
5777
+ {
5778
+ "created_at": "2021-01-01T00:00:00",
5779
+ "dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5780
+ "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5781
+ "link": "https://trieve.ai",
5782
+ "metadata": {
5783
+ "key": "value"
5784
+ },
5785
+ "qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5786
+ "tag_set": "tag1,tag2",
5787
+ "time_stamp": "2021-01-01T00:00:00",
5788
+ "tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5789
+ "updated_at": "2021-01-01T00:00:00",
5790
+ "weight": 0.5
5791
+ }
5792
+ ]
5793
+ }
5794
+ ]
5795
+ },
5796
+ "RecommendGroupChunkResponseTypes": {
5797
+ "oneOf": [
5798
+ {
5799
+ "type": "array",
5800
+ "items": {
5801
+ "$ref": "#/components/schemas/GroupSlimChunksDTO"
5802
+ },
5803
+ "example": [
5804
+ {
5805
+ "group_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5806
+ "metadata": [
5807
+ {
5808
+ "metadata": [
5809
+ {
5810
+ "content": "This is a test content",
5811
+ "id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5812
+ "link": "https://www.google.com",
5813
+ "metadata": {
5814
+ "key": "value"
5815
+ },
5816
+ "tag_set": "test",
5817
+ "time_stamp": "2021-01-01T00:00:00Z",
5818
+ "tracking_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5819
+ "weight": 1
5820
+ }
5821
+ ],
5822
+ "score": 0.5
5823
+ }
5824
+ ]
5825
+ }
5826
+ ]
5827
+ },
5828
+ {
5829
+ "type": "array",
5830
+ "items": {
5831
+ "$ref": "#/components/schemas/GroupScoreChunkDTO"
5832
+ },
5833
+ "example": {
5834
+ "group_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5835
+ "metadata": [
5836
+ {
5837
+ "metadata": [
5838
+ {
5839
+ "id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5840
+ "link": "https://www.google.com",
5841
+ "metadata": {
5842
+ "key": "value"
5843
+ },
5844
+ "tag_set": "test",
5845
+ "time_stamp": "2021-01-01T00:00:00Z",
5846
+ "tracking_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5847
+ "weight": 1
5848
+ }
5849
+ ],
5850
+ "score": 0.5
5851
+ }
5852
+ ]
5853
+ }
5854
+ }
5855
+ ]
5856
+ },
5704
5857
  "RegenerateMessageData": {
5705
5858
  "type": "object",
5706
5859
  "required": [
@@ -5783,6 +5936,44 @@
5783
5936
  "score": 0.5
5784
5937
  }
5785
5938
  },
5939
+ "ScoreSlimChunks": {
5940
+ "type": "object",
5941
+ "required": [
5942
+ "metadata",
5943
+ "score"
5944
+ ],
5945
+ "properties": {
5946
+ "metadata": {
5947
+ "type": "array",
5948
+ "items": {
5949
+ "$ref": "#/components/schemas/SlimChunkMetadata"
5950
+ }
5951
+ },
5952
+ "score": {
5953
+ "type": "number",
5954
+ "format": "double"
5955
+ }
5956
+ },
5957
+ "example": {
5958
+ "metadata": [
5959
+ {
5960
+ "created_at": "2021-01-01T00:00:00",
5961
+ "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5962
+ "link": "https://trieve.ai",
5963
+ "metadata": {
5964
+ "key": "value"
5965
+ },
5966
+ "qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5967
+ "tag_set": "tag1,tag2",
5968
+ "time_stamp": "2021-01-01T00:00:00",
5969
+ "tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
5970
+ "updated_at": "2021-01-01T00:00:00",
5971
+ "weight": 0.5
5972
+ }
5973
+ ],
5974
+ "score": 0.5
5975
+ }
5976
+ },
5786
5977
  "SearchChunkData": {
5787
5978
  "type": "object",
5788
5979
  "required": [
@@ -5839,6 +6030,11 @@
5839
6030
  "type": "string",
5840
6031
  "description": "Query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set."
5841
6032
  },
6033
+ "quote_negated_words": {
6034
+ "type": "boolean",
6035
+ "description": "Turn on quote words and negated words to search for exact phrases and exclude words from the search results. Default is false.",
6036
+ "nullable": true
6037
+ },
5842
6038
  "score_threshold": {
5843
6039
  "type": "number",
5844
6040
  "format": "float",
@@ -5849,6 +6045,11 @@
5849
6045
  "type": "string",
5850
6046
  "description": "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."
5851
6047
  },
6048
+ "slim_chunks": {
6049
+ "type": "boolean",
6050
+ "description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
6051
+ "nullable": true
6052
+ },
5852
6053
  "use_weights": {
5853
6054
  "type": "boolean",
5854
6055
  "description": "Set use_weights to true to use the weights of the chunks in the result set in order to sort them. If not specified, this defaults to true.",
@@ -5939,6 +6140,39 @@
5939
6140
  }
5940
6141
  }
5941
6142
  },
6143
+ "SearchChunkResponseTypes": {
6144
+ "oneOf": [
6145
+ {
6146
+ "$ref": "#/components/schemas/SearchSlimChunkQueryResponseBody"
6147
+ },
6148
+ {
6149
+ "$ref": "#/components/schemas/SearchChunkQueryResponseBody"
6150
+ }
6151
+ ]
6152
+ },
6153
+ "SearchGroupSlimChunksResult": {
6154
+ "type": "object",
6155
+ "required": [
6156
+ "bookmarks",
6157
+ "group",
6158
+ "total_pages"
6159
+ ],
6160
+ "properties": {
6161
+ "bookmarks": {
6162
+ "type": "array",
6163
+ "items": {
6164
+ "$ref": "#/components/schemas/ScoreSlimChunks"
6165
+ }
6166
+ },
6167
+ "group": {
6168
+ "$ref": "#/components/schemas/ChunkGroup"
6169
+ },
6170
+ "total_pages": {
6171
+ "type": "integer",
6172
+ "format": "int64"
6173
+ }
6174
+ }
6175
+ },
5942
6176
  "SearchGroupsResult": {
5943
6177
  "type": "object",
5944
6178
  "required": [
@@ -6019,6 +6253,11 @@
6019
6253
  "type": "string",
6020
6254
  "description": "Query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set."
6021
6255
  },
6256
+ "quote_negated_words": {
6257
+ "type": "boolean",
6258
+ "description": "Turn on quote words and negated words to search for exact phrases and exclude words from the search results. Default is false.",
6259
+ "nullable": true
6260
+ },
6022
6261
  "score_threshold": {
6023
6262
  "type": "number",
6024
6263
  "format": "float",
@@ -6028,6 +6267,11 @@
6028
6267
  "search_type": {
6029
6268
  "type": "string",
6030
6269
  "description": "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."
6270
+ },
6271
+ "slim_chunks": {
6272
+ "type": "boolean",
6273
+ "description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
6274
+ "nullable": true
6031
6275
  }
6032
6276
  }
6033
6277
  },
@@ -6050,6 +6294,54 @@
6050
6294
  }
6051
6295
  }
6052
6296
  },
6297
+ "SearchOverGroupsResponseTypes": {
6298
+ "oneOf": [
6299
+ {
6300
+ "$ref": "#/components/schemas/SearchOverGroupsResponseBody"
6301
+ },
6302
+ {
6303
+ "$ref": "#/components/schemas/SearchOverGroupsSlimChunksResponseBody"
6304
+ }
6305
+ ]
6306
+ },
6307
+ "SearchOverGroupsSlimChunksResponseBody": {
6308
+ "type": "object",
6309
+ "required": [
6310
+ "group_chunks",
6311
+ "total_chunk_pages"
6312
+ ],
6313
+ "properties": {
6314
+ "group_chunks": {
6315
+ "type": "array",
6316
+ "items": {
6317
+ "$ref": "#/components/schemas/GroupSlimChunksDTO"
6318
+ }
6319
+ },
6320
+ "total_chunk_pages": {
6321
+ "type": "integer",
6322
+ "format": "int64"
6323
+ }
6324
+ }
6325
+ },
6326
+ "SearchSlimChunkQueryResponseBody": {
6327
+ "type": "object",
6328
+ "required": [
6329
+ "score_chunks",
6330
+ "total_chunk_pages"
6331
+ ],
6332
+ "properties": {
6333
+ "score_chunks": {
6334
+ "type": "array",
6335
+ "items": {
6336
+ "$ref": "#/components/schemas/ScoreSlimChunks"
6337
+ }
6338
+ },
6339
+ "total_chunk_pages": {
6340
+ "type": "integer",
6341
+ "format": "int64"
6342
+ }
6343
+ }
6344
+ },
6053
6345
  "SearchWithinGroupData": {
6054
6346
  "type": "object",
6055
6347
  "required": [
@@ -6112,6 +6404,11 @@
6112
6404
  "type": "string",
6113
6405
  "description": "The query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set."
6114
6406
  },
6407
+ "quote_negated_words": {
6408
+ "type": "boolean",
6409
+ "description": "Turn on quote words and negated words to search for exact phrases and exclude words from the search results. Default is false.",
6410
+ "nullable": true
6411
+ },
6115
6412
  "score_threshold": {
6116
6413
  "type": "number",
6117
6414
  "format": "float",
@@ -6122,6 +6419,11 @@
6122
6419
  "type": "string",
6123
6420
  "description": "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."
6124
6421
  },
6422
+ "slim_chunks": {
6423
+ "type": "boolean",
6424
+ "description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
6425
+ "nullable": true
6426
+ },
6125
6427
  "use_weights": {
6126
6428
  "type": "boolean",
6127
6429
  "description": "Set use_weights to true to use the weights of the chunks in the result set in order to sort them. If not specified, this defaults to true.",
@@ -6129,6 +6431,16 @@
6129
6431
  }
6130
6432
  }
6131
6433
  },
6434
+ "SearchWithinGroupResponseTypes": {
6435
+ "oneOf": [
6436
+ {
6437
+ "$ref": "#/components/schemas/SearchGroupsResult"
6438
+ },
6439
+ {
6440
+ "$ref": "#/components/schemas/SearchGroupSlimChunksResult"
6441
+ }
6442
+ ]
6443
+ },
6132
6444
  "SetUserApiKeyRequest": {
6133
6445
  "type": "object",
6134
6446
  "required": [
@@ -6202,6 +6514,73 @@
6202
6514
  "pos_in_queue": 1
6203
6515
  }
6204
6516
  },
6517
+ "SlimChunkMetadata": {
6518
+ "type": "object",
6519
+ "required": [
6520
+ "id",
6521
+ "created_at",
6522
+ "updated_at",
6523
+ "weight"
6524
+ ],
6525
+ "properties": {
6526
+ "created_at": {
6527
+ "type": "string",
6528
+ "format": "date-time"
6529
+ },
6530
+ "id": {
6531
+ "type": "string",
6532
+ "format": "uuid"
6533
+ },
6534
+ "link": {
6535
+ "type": "string",
6536
+ "nullable": true
6537
+ },
6538
+ "metadata": {
6539
+ "nullable": true
6540
+ },
6541
+ "qdrant_point_id": {
6542
+ "type": "string",
6543
+ "format": "uuid",
6544
+ "nullable": true
6545
+ },
6546
+ "tag_set": {
6547
+ "type": "string",
6548
+ "nullable": true
6549
+ },
6550
+ "time_stamp": {
6551
+ "type": "string",
6552
+ "format": "date-time",
6553
+ "nullable": true
6554
+ },
6555
+ "tracking_id": {
6556
+ "type": "string",
6557
+ "nullable": true
6558
+ },
6559
+ "updated_at": {
6560
+ "type": "string",
6561
+ "format": "date-time"
6562
+ },
6563
+ "weight": {
6564
+ "type": "number",
6565
+ "format": "double"
6566
+ }
6567
+ },
6568
+ "example": {
6569
+ "created_at": "2021-01-01T00:00:00",
6570
+ "dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
6571
+ "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
6572
+ "link": "https://trieve.ai",
6573
+ "metadata": {
6574
+ "key": "value"
6575
+ },
6576
+ "qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
6577
+ "tag_set": "tag1,tag2",
6578
+ "time_stamp": "2021-01-01T00:00:00",
6579
+ "tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
6580
+ "updated_at": "2021-01-01T00:00:00",
6581
+ "weight": 0.5
6582
+ }
6583
+ },
6205
6584
  "SlimGroup": {
6206
6585
  "type": "object",
6207
6586
  "required": [
@@ -6238,7 +6617,6 @@
6238
6617
  "required": [
6239
6618
  "id",
6240
6619
  "email",
6241
- "visible_email",
6242
6620
  "user_orgs",
6243
6621
  "orgs"
6244
6622
  ],
@@ -6265,17 +6643,6 @@
6265
6643
  "items": {
6266
6644
  "$ref": "#/components/schemas/UserOrganization"
6267
6645
  }
6268
- },
6269
- "username": {
6270
- "type": "string",
6271
- "nullable": true
6272
- },
6273
- "visible_email": {
6274
- "type": "boolean"
6275
- },
6276
- "website": {
6277
- "type": "string",
6278
- "nullable": true
6279
6646
  }
6280
6647
  },
6281
6648
  "example": {
@@ -6300,10 +6667,7 @@
6300
6667
  "updated_at": "2021-01-01T00:00:00",
6301
6668
  "user_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
6302
6669
  }
6303
- ],
6304
- "username": "trieve",
6305
- "visible_email": true,
6306
- "website": "https://trieve.ai"
6670
+ ]
6307
6671
  }
6308
6672
  },
6309
6673
  "StripePlan": {
@@ -6548,6 +6912,14 @@
6548
6912
  "description": "The 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. If no metadata is provided, the existing metadata will be used.",
6549
6913
  "nullable": true
6550
6914
  },
6915
+ "tag_set": {
6916
+ "type": "array",
6917
+ "items": {
6918
+ "type": "string"
6919
+ },
6920
+ "description": "Tag set is a list of tags. This can be used to filter chunks by tag. Unlike with metadata filtering, HNSW indices will exist for each tag such that there is not a performance hit for filtering on them. If no tag_set is provided, the existing tag_set will be used.",
6921
+ "nullable": true
6922
+ },
6551
6923
  "time_stamp": {
6552
6924
  "type": "string",
6553
6925
  "description": "Time_stamp should be an ISO 8601 combined date and time without timezone. It is used for time window filtering and recency-biasing search results. If no time_stamp is provided, the existing time_stamp will be used.",
@@ -6723,21 +7095,6 @@
6723
7095
  "format": "uuid",
6724
7096
  "description": "The id of the user to update, if not provided, the auth'ed user will be updated. If provided, the auth'ed user must be an admin (1) or owner (2) of the organization.",
6725
7097
  "nullable": true
6726
- },
6727
- "username": {
6728
- "type": "string",
6729
- "description": "The new username to assign to the user, if not provided, the current username will be used.",
6730
- "nullable": true
6731
- },
6732
- "visible_email": {
6733
- "type": "boolean",
6734
- "description": "Determines if the user's email is visible to other users, if not provided, the current value will be used.",
6735
- "nullable": true
6736
- },
6737
- "website": {
6738
- "type": "string",
6739
- "description": "The new website to assign to the user, if not provided, the current website will be used. Used for linking to the user's personal or company website.",
6740
- "nullable": true
6741
7098
  }
6742
7099
  }
6743
7100
  },