trieve_ruby_client 0.7.2 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -6
  3. data/docs/ChunkApi.md +158 -10
  4. data/docs/ChunkData.md +2 -0
  5. data/docs/ChunkMetadata.md +2 -0
  6. data/docs/CreateChunkGroupData.md +3 -1
  7. data/docs/CreateMessageData.md +0 -2
  8. data/docs/CreateTopicData.md +0 -2
  9. data/docs/EditMessageData.md +0 -2
  10. data/docs/FieldCondition.md +6 -0
  11. data/docs/GenerateChunksRequest.md +0 -2
  12. data/docs/GeoInfo.md +20 -0
  13. data/docs/GeoTypes.md +49 -0
  14. data/docs/GetChunksData.md +18 -0
  15. data/docs/GetTrackingChunksData.md +18 -0
  16. data/docs/LocationBoundingBox.md +20 -0
  17. data/docs/LocationPolygon.md +20 -0
  18. data/docs/LocationRadius.md +20 -0
  19. data/docs/OrganizationUsageCount.md +2 -0
  20. data/docs/RangeCondition.md +2 -0
  21. data/docs/RegenerateMessageData.md +0 -2
  22. data/docs/SearchChunkData.md +2 -0
  23. data/docs/SearchOverGroupsData.md +2 -0
  24. data/docs/SearchWithinGroupData.md +2 -0
  25. data/docs/SlimChunkMetadata.md +4 -0
  26. data/docs/UpdateChunkData.md +2 -0
  27. data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
  28. data/lib/trieve_ruby_client/api/chunk_api.rb +161 -11
  29. data/lib/trieve_ruby_client/api/chunk_group_api.rb +1 -1
  30. data/lib/trieve_ruby_client/api/dataset_api.rb +1 -1
  31. data/lib/trieve_ruby_client/api/events_api.rb +1 -1
  32. data/lib/trieve_ruby_client/api/file_api.rb +1 -1
  33. data/lib/trieve_ruby_client/api/health_api.rb +1 -1
  34. data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
  35. data/lib/trieve_ruby_client/api/message_api.rb +1 -1
  36. data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
  37. data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
  38. data/lib/trieve_ruby_client/api/topic_api.rb +1 -1
  39. data/lib/trieve_ruby_client/api/user_api.rb +1 -1
  40. data/lib/trieve_ruby_client/api_client.rb +1 -1
  41. data/lib/trieve_ruby_client/api_error.rb +1 -1
  42. data/lib/trieve_ruby_client/configuration.rb +1 -1
  43. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +1 -1
  44. data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
  45. data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
  46. data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
  47. data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
  48. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
  49. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
  50. data/lib/trieve_ruby_client/models/chunk_data.rb +12 -2
  51. data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
  52. data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
  53. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
  54. data/lib/trieve_ruby_client/models/chunk_metadata.rb +12 -2
  55. data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +1 -1
  56. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
  57. data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
  58. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +17 -6
  59. data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
  60. data/lib/trieve_ruby_client/models/create_message_data.rb +2 -13
  61. data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
  62. data/lib/trieve_ruby_client/models/create_topic_data.rb +2 -13
  63. data/lib/trieve_ruby_client/models/dataset.rb +1 -1
  64. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
  65. data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
  66. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
  67. data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
  68. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
  69. data/lib/trieve_ruby_client/models/edit_message_data.rb +2 -13
  70. data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
  71. data/lib/trieve_ruby_client/models/event.rb +1 -1
  72. data/lib/trieve_ruby_client/models/event_return.rb +1 -1
  73. data/lib/trieve_ruby_client/models/field_condition.rb +32 -2
  74. data/lib/trieve_ruby_client/models/file.rb +1 -1
  75. data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
  76. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +2 -13
  77. data/lib/trieve_ruby_client/models/geo_info.rb +237 -0
  78. data/lib/trieve_ruby_client/models/geo_types.rb +105 -0
  79. data/lib/trieve_ruby_client/models/get_chunks_data.rb +223 -0
  80. data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
  81. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
  82. data/lib/trieve_ruby_client/models/get_tracking_chunks_data.rb +223 -0
  83. data/lib/trieve_ruby_client/models/group_data.rb +1 -1
  84. data/lib/trieve_ruby_client/models/group_score_chunk.rb +1 -1
  85. data/lib/trieve_ruby_client/models/group_score_slim_chunks.rb +1 -1
  86. data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
  87. data/lib/trieve_ruby_client/models/location_bounding_box.rb +237 -0
  88. data/lib/trieve_ruby_client/models/location_polygon.rb +235 -0
  89. data/lib/trieve_ruby_client/models/location_radius.rb +237 -0
  90. data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
  91. data/lib/trieve_ruby_client/models/message.rb +1 -1
  92. data/lib/trieve_ruby_client/models/organization.rb +1 -1
  93. data/lib/trieve_ruby_client/models/organization_usage_count.rb +18 -2
  94. data/lib/trieve_ruby_client/models/range.rb +1 -1
  95. data/lib/trieve_ruby_client/models/range_condition.rb +2 -1
  96. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +1 -1
  97. data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +1 -1
  98. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +2 -13
  99. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
  100. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
  101. data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
  102. data/lib/trieve_ruby_client/models/search_chunk_data.rb +13 -2
  103. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
  104. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +13 -2
  105. data/lib/trieve_ruby_client/models/search_over_groups_results.rb +1 -1
  106. data/lib/trieve_ruby_client/models/search_over_groups_slim_results.rb +1 -1
  107. data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +1 -1
  108. data/lib/trieve_ruby_client/models/search_within_group_data.rb +13 -2
  109. data/lib/trieve_ruby_client/models/search_within_group_results.rb +1 -1
  110. data/lib/trieve_ruby_client/models/search_within_group_slim_results.rb +1 -1
  111. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
  112. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
  113. data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
  114. data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +28 -2
  115. data/lib/trieve_ruby_client/models/slim_chunk_metadata_with_score.rb +1 -1
  116. data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
  117. data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
  118. data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
  119. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
  120. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
  121. data/lib/trieve_ruby_client/models/topic.rb +1 -1
  122. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
  123. data/lib/trieve_ruby_client/models/update_chunk_data.rb +12 -2
  124. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
  125. data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
  126. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
  127. data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
  128. data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
  129. data/lib/trieve_ruby_client/models/update_user_org_role_data.rb +1 -1
  130. data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
  131. data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
  132. data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
  133. data/lib/trieve_ruby_client/version.rb +2 -2
  134. data/lib/trieve_ruby_client.rb +8 -1
  135. data/openapi-generator.yaml +1 -1
  136. data/openapi.json +431 -29
  137. data/spec/models/geo_info_spec.rb +42 -0
  138. data/spec/models/geo_types_spec.rb +32 -0
  139. data/spec/models/get_chunks_data_spec.rb +36 -0
  140. data/spec/models/get_tracking_chunks_data_spec.rb +36 -0
  141. data/spec/models/location_bounding_box_spec.rb +42 -0
  142. data/spec/models/location_polygon_spec.rb +42 -0
  143. data/spec/models/location_radius_spec.rb +42 -0
  144. data/spec/spec_helper.rb +1 -1
  145. data/trieve_ruby_client-0.7.2.gem +0 -0
  146. data/trieve_ruby_client-0.7.6.gem +0 -0
  147. data/trieve_ruby_client.gemspec +1 -1
  148. metadata +32 -2
data/openapi.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "name": "BSL",
13
13
  "url": "https://github.com/devflowinc/trieve/blob/main/LICENSE.txt"
14
14
  },
15
- "version": "0.7.2"
15
+ "version": "0.8.0"
16
16
  },
17
17
  "servers": [
18
18
  {
@@ -174,7 +174,7 @@
174
174
  "chunk"
175
175
  ],
176
176
  "summary": "Create or Upsert Chunk or Chunks",
177
- "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.",
177
+ "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.\nIf uploading in bulk, the maximum amount of chunks that can be uploaded at once is 120 chunks.",
178
178
  "operationId": "create_chunk",
179
179
  "parameters": [
180
180
  {
@@ -497,7 +497,7 @@
497
497
  ],
498
498
  "summary": "Search",
499
499
  "description": "Search\n\nThis route provides the primary search functionality for the API. It can be used to search for chunks by semantic similarity, full-text similarity, or a combination of both. Results' `chunk_html` values will be modified with `<b><mark>` tags for sub-sentence highlighting.",
500
- "operationId": "search_chunk",
500
+ "operationId": "search_chunks",
501
501
  "parameters": [
502
502
  {
503
503
  "name": "TR-Dataset",
@@ -664,6 +664,16 @@
664
664
  }
665
665
  }
666
666
  }
667
+ },
668
+ "404": {
669
+ "description": "Chunk not found",
670
+ "content": {
671
+ "application/json": {
672
+ "schema": {
673
+ "$ref": "#/components/schemas/ErrorResponseBody"
674
+ }
675
+ }
676
+ }
667
677
  }
668
678
  },
669
679
  "security": [
@@ -774,6 +784,16 @@
774
784
  }
775
785
  }
776
786
  }
787
+ },
788
+ "404": {
789
+ "description": "Chunk not found",
790
+ "content": {
791
+ "application/json": {
792
+ "schema": {
793
+ "$ref": "#/components/schemas/ErrorResponseBody"
794
+ }
795
+ }
796
+ }
777
797
  }
778
798
  },
779
799
  "security": [
@@ -1417,6 +1437,16 @@
1417
1437
  }
1418
1438
  }
1419
1439
  }
1440
+ },
1441
+ "404": {
1442
+ "description": "Group not found",
1443
+ "content": {
1444
+ "application/json": {
1445
+ "schema": {
1446
+ "$ref": "#/components/schemas/ErrorResponseBody"
1447
+ }
1448
+ }
1449
+ }
1420
1450
  }
1421
1451
  },
1422
1452
  "security": [
@@ -1476,6 +1506,16 @@
1476
1506
  }
1477
1507
  }
1478
1508
  }
1509
+ },
1510
+ "404": {
1511
+ "description": "Group not found",
1512
+ "content": {
1513
+ "application/json": {
1514
+ "schema": {
1515
+ "$ref": "#/components/schemas/ErrorResponseBody"
1516
+ }
1517
+ }
1518
+ }
1479
1519
  }
1480
1520
  },
1481
1521
  "security": [
@@ -1711,6 +1751,16 @@
1711
1751
  }
1712
1752
  }
1713
1753
  }
1754
+ },
1755
+ "404": {
1756
+ "description": "Group not found",
1757
+ "content": {
1758
+ "application/json": {
1759
+ "schema": {
1760
+ "$ref": "#/components/schemas/ErrorResponseBody"
1761
+ }
1762
+ }
1763
+ }
1714
1764
  }
1715
1765
  },
1716
1766
  "security": [
@@ -1843,6 +1893,161 @@
1843
1893
  }
1844
1894
  }
1845
1895
  }
1896
+ },
1897
+ "404": {
1898
+ "description": "Group not found",
1899
+ "content": {
1900
+ "application/json": {
1901
+ "schema": {
1902
+ "$ref": "#/components/schemas/ErrorResponseBody"
1903
+ }
1904
+ }
1905
+ }
1906
+ }
1907
+ },
1908
+ "security": [
1909
+ {
1910
+ "ApiKey": [
1911
+ "readonly"
1912
+ ]
1913
+ }
1914
+ ]
1915
+ }
1916
+ },
1917
+ "/api/chunks": {
1918
+ "post": {
1919
+ "tags": [
1920
+ "chunk"
1921
+ ],
1922
+ "summary": "Get Chunks By Ids",
1923
+ "description": "Get Chunks By Ids\n\nGet multiple chunks by multiple ids.",
1924
+ "operationId": "get_chunks_by_ids",
1925
+ "parameters": [
1926
+ {
1927
+ "name": "TR-Dataset",
1928
+ "in": "header",
1929
+ "description": "The dataset id to use for the request",
1930
+ "required": true,
1931
+ "schema": {
1932
+ "type": "string"
1933
+ }
1934
+ }
1935
+ ],
1936
+ "requestBody": {
1937
+ "description": "JSON request payload to get the chunks in the request",
1938
+ "content": {
1939
+ "application/json": {
1940
+ "schema": {
1941
+ "$ref": "#/components/schemas/GetChunksData"
1942
+ }
1943
+ }
1944
+ },
1945
+ "required": true
1946
+ },
1947
+ "responses": {
1948
+ "200": {
1949
+ "description": "chunks with the id that you were searching for",
1950
+ "content": {
1951
+ "application/json": {
1952
+ "schema": {
1953
+ "type": "array",
1954
+ "items": {
1955
+ "$ref": "#/components/schemas/ChunkMetadata"
1956
+ }
1957
+ }
1958
+ }
1959
+ }
1960
+ },
1961
+ "400": {
1962
+ "description": "Service error relating to fidning a chunk by tracking_id",
1963
+ "content": {
1964
+ "application/json": {
1965
+ "schema": {
1966
+ "$ref": "#/components/schemas/ErrorResponseBody"
1967
+ }
1968
+ }
1969
+ }
1970
+ },
1971
+ "404": {
1972
+ "description": "Any one of the specified chunks not found",
1973
+ "content": {
1974
+ "application/json": {
1975
+ "schema": {
1976
+ "$ref": "#/components/schemas/ErrorResponseBody"
1977
+ }
1978
+ }
1979
+ }
1980
+ }
1981
+ },
1982
+ "security": [
1983
+ {
1984
+ "ApiKey": [
1985
+ "readonly"
1986
+ ]
1987
+ }
1988
+ ]
1989
+ }
1990
+ },
1991
+ "/api/chunks/tracking": {
1992
+ "post": {
1993
+ "tags": [
1994
+ "chunk"
1995
+ ],
1996
+ "summary": "Get Chunks By TrackingIds",
1997
+ "description": "Get Chunks By TrackingIds\n\nGet multiple chunks by ids.",
1998
+ "operationId": "get_chunks_by_tracking_ids",
1999
+ "parameters": [
2000
+ {
2001
+ "name": "TR-Dataset",
2002
+ "in": "header",
2003
+ "description": "The dataset id to use for the request",
2004
+ "required": true,
2005
+ "schema": {
2006
+ "type": "string"
2007
+ }
2008
+ }
2009
+ ],
2010
+ "requestBody": {
2011
+ "description": "JSON request payload to get the chunks in the request",
2012
+ "content": {
2013
+ "application/json": {
2014
+ "schema": {
2015
+ "$ref": "#/components/schemas/GetTrackingChunksData"
2016
+ }
2017
+ }
2018
+ },
2019
+ "required": true
2020
+ },
2021
+ "responses": {
2022
+ "200": {
2023
+ "description": "chunk with the id that you were searching for",
2024
+ "content": {
2025
+ "application/json": {
2026
+ "schema": {
2027
+ "$ref": "#/components/schemas/ChunkMetadata"
2028
+ }
2029
+ }
2030
+ }
2031
+ },
2032
+ "400": {
2033
+ "description": "Service error relating to fidning a chunk by tracking_id",
2034
+ "content": {
2035
+ "application/json": {
2036
+ "schema": {
2037
+ "$ref": "#/components/schemas/ErrorResponseBody"
2038
+ }
2039
+ }
2040
+ }
2041
+ },
2042
+ "404": {
2043
+ "description": "Any one of the specified chunks not found",
2044
+ "content": {
2045
+ "application/json": {
2046
+ "schema": {
2047
+ "$ref": "#/components/schemas/ErrorResponseBody"
2048
+ }
2049
+ }
2050
+ }
1846
2051
  }
1847
2052
  },
1848
2053
  "security": [
@@ -2522,6 +2727,16 @@
2522
2727
  }
2523
2728
  }
2524
2729
  }
2730
+ },
2731
+ "404": {
2732
+ "description": "File not found",
2733
+ "content": {
2734
+ "application/json": {
2735
+ "schema": {
2736
+ "$ref": "#/components/schemas/ErrorResponseBody"
2737
+ }
2738
+ }
2739
+ }
2525
2740
  }
2526
2741
  },
2527
2742
  "security": [
@@ -3179,6 +3394,16 @@
3179
3394
  }
3180
3395
  }
3181
3396
  }
3397
+ },
3398
+ "404": {
3399
+ "description": "Organization not found",
3400
+ "content": {
3401
+ "application/json": {
3402
+ "schema": {
3403
+ "$ref": "#/components/schemas/ErrorResponseBody"
3404
+ }
3405
+ }
3406
+ }
3182
3407
  }
3183
3408
  },
3184
3409
  "security": [
@@ -4083,6 +4308,14 @@
4083
4308
  "description": "Link to the chunk. This can also be any string. Frequently, this is a link to the source of the chunk. The link value will not affect the embedding creation.",
4084
4309
  "nullable": true
4085
4310
  },
4311
+ "location": {
4312
+ "allOf": [
4313
+ {
4314
+ "$ref": "#/components/schemas/GeoInfo"
4315
+ }
4316
+ ],
4317
+ "nullable": true
4318
+ },
4086
4319
  "metadata": {
4087
4320
  "description": "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.",
4088
4321
  "nullable": true
@@ -4370,6 +4603,14 @@
4370
4603
  "type": "string",
4371
4604
  "nullable": true
4372
4605
  },
4606
+ "location": {
4607
+ "allOf": [
4608
+ {
4609
+ "$ref": "#/components/schemas/GeoInfo"
4610
+ }
4611
+ ],
4612
+ "nullable": true
4613
+ },
4373
4614
  "metadata": {
4374
4615
  "nullable": true
4375
4616
  },
@@ -4682,6 +4923,11 @@
4682
4923
  "type": "string",
4683
4924
  "description": "Optional tracking id to assign to the chunk_group. This is a unique identifier for the chunk_group.",
4684
4925
  "nullable": true
4926
+ },
4927
+ "upsert_by_tracking_id": {
4928
+ "type": "boolean",
4929
+ "description": "Upsert when a chunk_group with the same tracking_id exists. By default this is false, and the request will fail if a chunk_group with the same tracking_id exists. If this is true, the chunk_group will be updated if a chunk_group with the same tracking_id exists.",
4930
+ "nullable": true
4685
4931
  }
4686
4932
  }
4687
4933
  },
@@ -4742,11 +4988,6 @@
4742
4988
  "description": "The delimiters to use for highlighting the citations. If this is not included, the default delimiters will be used. Default is `[\".\", \"!\", \"?\", \"\\n\", \"\\t\", \",\"]`.",
4743
4989
  "nullable": true
4744
4990
  },
4745
- "model": {
4746
- "type": "string",
4747
- "description": "The model to use for the assistant's messages. This can be any model from the openrouter model list. If no model is provided, gpt-3.5-turbo will be used.",
4748
- "nullable": true
4749
- },
4750
4991
  "new_message_content": {
4751
4992
  "type": "string",
4752
4993
  "description": "The content of the user message to attach to the topic and then generate an assistant message in response to."
@@ -4789,11 +5030,6 @@
4789
5030
  "description": "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.",
4790
5031
  "nullable": true
4791
5032
  },
4792
- "model": {
4793
- "type": "string",
4794
- "description": "The model to use for the assistant's messages. This can be any model from the openrouter model list. If no model is provided, the gpt-3.5-turbo will be used.",
4795
- "nullable": true
4796
- },
4797
5033
  "name": {
4798
5034
  "type": "string",
4799
5035
  "description": "The name of the topic. If this is not provided, the topic name is generated from the first_user_message.",
@@ -5017,11 +5253,6 @@
5017
5253
  "format": "int32",
5018
5254
  "description": "The sort order of the message to edit."
5019
5255
  },
5020
- "model": {
5021
- "type": "string",
5022
- "description": "The model to use for the assistant generative inferences. This can be any model from the openrouter model list. If no model is provided, the gpt-3.5-turbo will be used.~",
5023
- "nullable": true
5024
- },
5025
5256
  "new_message_content": {
5026
5257
  "type": "string",
5027
5258
  "description": "The new content of the message to replace the old content with."
@@ -5125,6 +5356,30 @@
5125
5356
  "type": "string",
5126
5357
  "description": "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 `metadata.`."
5127
5358
  },
5359
+ "geo_bounding_box": {
5360
+ "allOf": [
5361
+ {
5362
+ "$ref": "#/components/schemas/LocationBoundingBox"
5363
+ }
5364
+ ],
5365
+ "nullable": true
5366
+ },
5367
+ "geo_polygon": {
5368
+ "allOf": [
5369
+ {
5370
+ "$ref": "#/components/schemas/LocationPolygon"
5371
+ }
5372
+ ],
5373
+ "nullable": true
5374
+ },
5375
+ "geo_radius": {
5376
+ "allOf": [
5377
+ {
5378
+ "$ref": "#/components/schemas/LocationRadius"
5379
+ }
5380
+ ],
5381
+ "nullable": true
5382
+ },
5128
5383
  "match": {
5129
5384
  "type": "array",
5130
5385
  "items": {
@@ -5291,11 +5546,6 @@
5291
5546
  },
5292
5547
  "description": "The ids of the chunks to be retrieved and injected into the context window for RAG."
5293
5548
  },
5294
- "model": {
5295
- "type": "string",
5296
- "description": "The model to use for the chat. This can be any model from the openrouter model list. If no model is provided, gpt-3.5-turbo will be used.",
5297
- "nullable": true
5298
- },
5299
5549
  "prev_messages": {
5300
5550
  "type": "array",
5301
5551
  "items": {
@@ -5329,6 +5579,48 @@
5329
5579
  "stream_response": true
5330
5580
  }
5331
5581
  },
5582
+ "GeoInfo": {
5583
+ "type": "object",
5584
+ "required": [
5585
+ "lat",
5586
+ "lon"
5587
+ ],
5588
+ "properties": {
5589
+ "lat": {
5590
+ "$ref": "#/components/schemas/GeoTypes"
5591
+ },
5592
+ "lon": {
5593
+ "$ref": "#/components/schemas/GeoTypes"
5594
+ }
5595
+ }
5596
+ },
5597
+ "GeoTypes": {
5598
+ "oneOf": [
5599
+ {
5600
+ "type": "integer",
5601
+ "format": "int64"
5602
+ },
5603
+ {
5604
+ "type": "number",
5605
+ "format": "double"
5606
+ }
5607
+ ]
5608
+ },
5609
+ "GetChunksData": {
5610
+ "type": "object",
5611
+ "required": [
5612
+ "ids"
5613
+ ],
5614
+ "properties": {
5615
+ "ids": {
5616
+ "type": "array",
5617
+ "items": {
5618
+ "type": "string",
5619
+ "format": "uuid"
5620
+ }
5621
+ }
5622
+ }
5623
+ },
5332
5624
  "GetEventsData": {
5333
5625
  "type": "object",
5334
5626
  "properties": {
@@ -5376,6 +5668,20 @@
5376
5668
  }
5377
5669
  }
5378
5670
  },
5671
+ "GetTrackingChunksData": {
5672
+ "type": "object",
5673
+ "required": [
5674
+ "tracking_ids"
5675
+ ],
5676
+ "properties": {
5677
+ "tracking_ids": {
5678
+ "type": "array",
5679
+ "items": {
5680
+ "type": "string"
5681
+ }
5682
+ }
5683
+ }
5684
+ },
5379
5685
  "GroupData": {
5380
5686
  "type": "object",
5381
5687
  "required": [
@@ -5521,6 +5827,61 @@
5521
5827
  }
5522
5828
  }
5523
5829
  },
5830
+ "LocationBoundingBox": {
5831
+ "type": "object",
5832
+ "required": [
5833
+ "top_left",
5834
+ "bottom_right"
5835
+ ],
5836
+ "properties": {
5837
+ "bottom_right": {
5838
+ "$ref": "#/components/schemas/GeoInfo"
5839
+ },
5840
+ "top_left": {
5841
+ "$ref": "#/components/schemas/GeoInfo"
5842
+ }
5843
+ }
5844
+ },
5845
+ "LocationPolygon": {
5846
+ "type": "object",
5847
+ "required": [
5848
+ "exterior"
5849
+ ],
5850
+ "properties": {
5851
+ "exterior": {
5852
+ "type": "array",
5853
+ "items": {
5854
+ "$ref": "#/components/schemas/GeoInfo"
5855
+ }
5856
+ },
5857
+ "interior": {
5858
+ "type": "array",
5859
+ "items": {
5860
+ "type": "array",
5861
+ "items": {
5862
+ "$ref": "#/components/schemas/GeoInfo"
5863
+ }
5864
+ },
5865
+ "nullable": true
5866
+ }
5867
+ }
5868
+ },
5869
+ "LocationRadius": {
5870
+ "type": "object",
5871
+ "required": [
5872
+ "center",
5873
+ "radius"
5874
+ ],
5875
+ "properties": {
5876
+ "center": {
5877
+ "$ref": "#/components/schemas/GeoInfo"
5878
+ },
5879
+ "radius": {
5880
+ "type": "number",
5881
+ "format": "double"
5882
+ }
5883
+ }
5884
+ },
5524
5885
  "MatchCondition": {
5525
5886
  "oneOf": [
5526
5887
  {
@@ -5649,9 +6010,14 @@
5649
6010
  "dataset_count",
5650
6011
  "user_count",
5651
6012
  "file_storage",
5652
- "message_count"
6013
+ "message_count",
6014
+ "chunk_count"
5653
6015
  ],
5654
6016
  "properties": {
6017
+ "chunk_count": {
6018
+ "type": "integer",
6019
+ "format": "int32"
6020
+ },
5655
6021
  "dataset_count": {
5656
6022
  "type": "integer",
5657
6023
  "format": "int32"
@@ -5678,6 +6044,7 @@
5678
6044
  }
5679
6045
  },
5680
6046
  "example": {
6047
+ "chunk_count": 1000,
5681
6048
  "dataset_count": 1,
5682
6049
  "file_storage": 512,
5683
6050
  "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
@@ -5737,6 +6104,10 @@
5737
6104
  {
5738
6105
  "type": "number",
5739
6106
  "format": "double"
6107
+ },
6108
+ {
6109
+ "type": "integer",
6110
+ "format": "int64"
5740
6111
  }
5741
6112
  ]
5742
6113
  },
@@ -5904,11 +6275,6 @@
5904
6275
  "description": "The delimiters to use for highlighting the citations. If this is not included, the default delimiters will be used. Default is `[\".\", \"!\", \"?\", \"\\n\", \"\\t\", \",\"]`.",
5905
6276
  "nullable": true
5906
6277
  },
5907
- "model": {
5908
- "type": "string",
5909
- "description": "The model to use for the assistant generative inferences. This can be any model from the openrouter model list. If no model is provided, the gpt-3.5-turbo will be used.~",
5910
- "nullable": true
5911
- },
5912
6278
  "stream_response": {
5913
6279
  "type": "boolean",
5914
6280
  "description": "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.",
@@ -6030,6 +6396,11 @@
6030
6396
  "description": "Set get_collisions to true to get the collisions for each chunk. This will only apply if environment variable COLLISIONS_ENABLED is set to true.",
6031
6397
  "nullable": true
6032
6398
  },
6399
+ "get_total_pages": {
6400
+ "type": "boolean",
6401
+ "description": "Get total page count for the query accounting for the applied filters. Defaults to true, but can be set to false to reduce latency in edge cases performance.",
6402
+ "nullable": true
6403
+ },
6033
6404
  "highlight_delimiters": {
6034
6405
  "type": "array",
6035
6406
  "items": {
@@ -6186,6 +6557,11 @@
6186
6557
  "description": "Set get_collisions to true to get the collisions for each chunk. This will only apply if environment variable COLLISIONS_ENABLED is set to true.",
6187
6558
  "nullable": true
6188
6559
  },
6560
+ "get_total_pages": {
6561
+ "type": "boolean",
6562
+ "description": "Get total page count for the query accounting for the applied filters. Defaults to true, but can be set to false to reduce latency in edge cases performance.",
6563
+ "nullable": true
6564
+ },
6189
6565
  "group_size": {
6190
6566
  "type": "integer",
6191
6567
  "format": "int32",
@@ -6318,6 +6694,11 @@
6318
6694
  ],
6319
6695
  "nullable": true
6320
6696
  },
6697
+ "get_total_pages": {
6698
+ "type": "boolean",
6699
+ "description": "Get total page count for the query accounting for the applied filters. Defaults to true, but can be set to false to reduce latency in edge cases performance.",
6700
+ "nullable": true
6701
+ },
6321
6702
  "group_id": {
6322
6703
  "type": "string",
6323
6704
  "format": "uuid",
@@ -6507,6 +6888,7 @@
6507
6888
  "id",
6508
6889
  "created_at",
6509
6890
  "updated_at",
6891
+ "dataset_id",
6510
6892
  "weight"
6511
6893
  ],
6512
6894
  "properties": {
@@ -6514,6 +6896,10 @@
6514
6896
  "type": "string",
6515
6897
  "format": "date-time"
6516
6898
  },
6899
+ "dataset_id": {
6900
+ "type": "string",
6901
+ "format": "uuid"
6902
+ },
6517
6903
  "id": {
6518
6904
  "type": "string",
6519
6905
  "format": "uuid"
@@ -6522,6 +6908,14 @@
6522
6908
  "type": "string",
6523
6909
  "nullable": true
6524
6910
  },
6911
+ "location": {
6912
+ "allOf": [
6913
+ {
6914
+ "$ref": "#/components/schemas/GeoInfo"
6915
+ }
6916
+ ],
6917
+ "nullable": true
6918
+ },
6525
6919
  "metadata": {
6526
6920
  "nullable": true
6527
6921
  },
@@ -6977,6 +7371,14 @@
6977
7371
  "description": "Link of the chunk you want to update. This can also be any string. Frequently, this is a link to the source of the chunk. The link value will not affect the embedding creation. If no link is provided, the existing link will be used.",
6978
7372
  "nullable": true
6979
7373
  },
7374
+ "location": {
7375
+ "allOf": [
7376
+ {
7377
+ "$ref": "#/components/schemas/GeoInfo"
7378
+ }
7379
+ ],
7380
+ "nullable": true
7381
+ },
6980
7382
  "metadata": {
6981
7383
  "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.",
6982
7384
  "nullable": true