trieve_ruby_client 0.7.2 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -6
- data/docs/ChunkApi.md +158 -10
- data/docs/ChunkData.md +2 -0
- data/docs/ChunkMetadata.md +2 -0
- data/docs/CreateMessageData.md +0 -2
- data/docs/CreateTopicData.md +0 -2
- data/docs/EditMessageData.md +0 -2
- data/docs/FieldCondition.md +6 -0
- data/docs/GenerateChunksRequest.md +0 -2
- data/docs/GeoInfo.md +20 -0
- data/docs/GeoTypes.md +49 -0
- data/docs/GetChunksData.md +18 -0
- data/docs/GetTrackingChunksData.md +18 -0
- data/docs/LocationBoundingBox.md +20 -0
- data/docs/LocationPolygon.md +20 -0
- data/docs/LocationRadius.md +20 -0
- data/docs/RangeCondition.md +2 -0
- data/docs/RegenerateMessageData.md +0 -2
- data/docs/SlimChunkMetadata.md +4 -0
- data/docs/UpdateChunkData.md +2 -0
- data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_api.rb +161 -11
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +1 -1
- data/lib/trieve_ruby_client/api/dataset_api.rb +1 -1
- data/lib/trieve_ruby_client/api/events_api.rb +1 -1
- data/lib/trieve_ruby_client/api/file_api.rb +1 -1
- data/lib/trieve_ruby_client/api/health_api.rb +1 -1
- data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
- data/lib/trieve_ruby_client/api/message_api.rb +1 -1
- data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
- data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
- data/lib/trieve_ruby_client/api/topic_api.rb +1 -1
- data/lib/trieve_ruby_client/api/user_api.rb +1 -1
- data/lib/trieve_ruby_client/api_client.rb +1 -1
- data/lib/trieve_ruby_client/api_error.rb +1 -1
- data/lib/trieve_ruby_client/configuration.rb +1 -1
- data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
- data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
- data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
- data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
- data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_data.rb +12 -2
- data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata.rb +12 -2
- data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +1 -1
- data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/create_message_data.rb +2 -13
- data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_topic_data.rb +2 -13
- data/lib/trieve_ruby_client/models/dataset.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/edit_message_data.rb +2 -13
- data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/event.rb +1 -1
- data/lib/trieve_ruby_client/models/event_return.rb +1 -1
- data/lib/trieve_ruby_client/models/field_condition.rb +32 -2
- data/lib/trieve_ruby_client/models/file.rb +1 -1
- data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/generate_chunks_request.rb +2 -13
- data/lib/trieve_ruby_client/models/geo_info.rb +237 -0
- data/lib/trieve_ruby_client/models/geo_types.rb +105 -0
- data/lib/trieve_ruby_client/models/get_chunks_data.rb +223 -0
- data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
- data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
- data/lib/trieve_ruby_client/models/get_tracking_chunks_data.rb +223 -0
- data/lib/trieve_ruby_client/models/group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_chunk.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_slim_chunks.rb +1 -1
- data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
- data/lib/trieve_ruby_client/models/location_bounding_box.rb +237 -0
- data/lib/trieve_ruby_client/models/location_polygon.rb +235 -0
- data/lib/trieve_ruby_client/models/location_radius.rb +237 -0
- data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/message.rb +1 -1
- data/lib/trieve_ruby_client/models/organization.rb +1 -1
- data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/range.rb +1 -1
- data/lib/trieve_ruby_client/models/range_condition.rb +2 -1
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/regenerate_message_data.rb +2 -13
- data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
- data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_slim_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_slim_results.rb +1 -1
- data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
- data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +28 -2
- data/lib/trieve_ruby_client/models/slim_chunk_metadata_with_score.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
- data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
- data/lib/trieve_ruby_client/models/topic.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_data.rb +12 -2
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_user_org_role_data.rb +1 -1
- data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
- data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
- data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
- data/lib/trieve_ruby_client/version.rb +2 -2
- data/lib/trieve_ruby_client.rb +8 -1
- data/openapi-generator.yaml +1 -1
- data/openapi.json +322 -28
- data/spec/models/geo_info_spec.rb +42 -0
- data/spec/models/geo_types_spec.rb +32 -0
- data/spec/models/get_chunks_data_spec.rb +36 -0
- data/spec/models/get_tracking_chunks_data_spec.rb +36 -0
- data/spec/models/location_bounding_box_spec.rb +42 -0
- data/spec/models/location_polygon_spec.rb +42 -0
- data/spec/models/location_radius_spec.rb +42 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.7.2.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +31 -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.
|
15
|
+
"version": "0.7.6"
|
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": "
|
500
|
+
"operationId": "search_chunks",
|
501
501
|
"parameters": [
|
502
502
|
{
|
503
503
|
"name": "TR-Dataset",
|
@@ -664,6 +664,9 @@
|
|
664
664
|
}
|
665
665
|
}
|
666
666
|
}
|
667
|
+
},
|
668
|
+
"404": {
|
669
|
+
"description": "Chunk not found"
|
667
670
|
}
|
668
671
|
},
|
669
672
|
"security": [
|
@@ -774,6 +777,9 @@
|
|
774
777
|
}
|
775
778
|
}
|
776
779
|
}
|
780
|
+
},
|
781
|
+
"404": {
|
782
|
+
"description": "Chunk not found"
|
777
783
|
}
|
778
784
|
},
|
779
785
|
"security": [
|
@@ -1417,6 +1423,9 @@
|
|
1417
1423
|
}
|
1418
1424
|
}
|
1419
1425
|
}
|
1426
|
+
},
|
1427
|
+
"404": {
|
1428
|
+
"description": "Group not found"
|
1420
1429
|
}
|
1421
1430
|
},
|
1422
1431
|
"security": [
|
@@ -1476,6 +1485,9 @@
|
|
1476
1485
|
}
|
1477
1486
|
}
|
1478
1487
|
}
|
1488
|
+
},
|
1489
|
+
"404": {
|
1490
|
+
"description": "Group not found"
|
1479
1491
|
}
|
1480
1492
|
},
|
1481
1493
|
"security": [
|
@@ -1711,6 +1723,9 @@
|
|
1711
1723
|
}
|
1712
1724
|
}
|
1713
1725
|
}
|
1726
|
+
},
|
1727
|
+
"404": {
|
1728
|
+
"description": "Group not found"
|
1714
1729
|
}
|
1715
1730
|
},
|
1716
1731
|
"security": [
|
@@ -1843,6 +1858,134 @@
|
|
1843
1858
|
}
|
1844
1859
|
}
|
1845
1860
|
}
|
1861
|
+
},
|
1862
|
+
"404": {
|
1863
|
+
"description": "Group not found"
|
1864
|
+
}
|
1865
|
+
},
|
1866
|
+
"security": [
|
1867
|
+
{
|
1868
|
+
"ApiKey": [
|
1869
|
+
"readonly"
|
1870
|
+
]
|
1871
|
+
}
|
1872
|
+
]
|
1873
|
+
}
|
1874
|
+
},
|
1875
|
+
"/api/chunks": {
|
1876
|
+
"post": {
|
1877
|
+
"tags": [
|
1878
|
+
"chunk"
|
1879
|
+
],
|
1880
|
+
"summary": "Get Chunks By Ids",
|
1881
|
+
"description": "Get Chunks By Ids\n\nGet multiple chunks by multiple ids.",
|
1882
|
+
"operationId": "get_chunks_by_ids",
|
1883
|
+
"parameters": [
|
1884
|
+
{
|
1885
|
+
"name": "TR-Dataset",
|
1886
|
+
"in": "header",
|
1887
|
+
"description": "The dataset id to use for the request",
|
1888
|
+
"required": true,
|
1889
|
+
"schema": {
|
1890
|
+
"type": "string"
|
1891
|
+
}
|
1892
|
+
}
|
1893
|
+
],
|
1894
|
+
"requestBody": {
|
1895
|
+
"description": "JSON request payload to get the chunks in the request",
|
1896
|
+
"content": {
|
1897
|
+
"application/json": {
|
1898
|
+
"schema": {
|
1899
|
+
"$ref": "#/components/schemas/GetChunksData"
|
1900
|
+
}
|
1901
|
+
}
|
1902
|
+
},
|
1903
|
+
"required": true
|
1904
|
+
},
|
1905
|
+
"responses": {
|
1906
|
+
"200": {
|
1907
|
+
"description": "chunks with the id that you were searching for",
|
1908
|
+
"content": {
|
1909
|
+
"application/json": {
|
1910
|
+
"schema": {
|
1911
|
+
"type": "array",
|
1912
|
+
"items": {
|
1913
|
+
"$ref": "#/components/schemas/ChunkMetadata"
|
1914
|
+
}
|
1915
|
+
}
|
1916
|
+
}
|
1917
|
+
}
|
1918
|
+
},
|
1919
|
+
"400": {
|
1920
|
+
"description": "Service error relating to fidning a chunk by tracking_id",
|
1921
|
+
"content": {
|
1922
|
+
"application/json": {
|
1923
|
+
"schema": {
|
1924
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
1925
|
+
}
|
1926
|
+
}
|
1927
|
+
}
|
1928
|
+
}
|
1929
|
+
},
|
1930
|
+
"security": [
|
1931
|
+
{
|
1932
|
+
"ApiKey": [
|
1933
|
+
"readonly"
|
1934
|
+
]
|
1935
|
+
}
|
1936
|
+
]
|
1937
|
+
}
|
1938
|
+
},
|
1939
|
+
"/api/chunks/tracking": {
|
1940
|
+
"post": {
|
1941
|
+
"tags": [
|
1942
|
+
"chunk"
|
1943
|
+
],
|
1944
|
+
"summary": "Get Chunks By TrackingIds",
|
1945
|
+
"description": "Get Chunks By TrackingIds\n\nGet multiple chunks by ids.",
|
1946
|
+
"operationId": "get_chunks_by_tracking_ids",
|
1947
|
+
"parameters": [
|
1948
|
+
{
|
1949
|
+
"name": "TR-Dataset",
|
1950
|
+
"in": "header",
|
1951
|
+
"description": "The dataset id to use for the request",
|
1952
|
+
"required": true,
|
1953
|
+
"schema": {
|
1954
|
+
"type": "string"
|
1955
|
+
}
|
1956
|
+
}
|
1957
|
+
],
|
1958
|
+
"requestBody": {
|
1959
|
+
"description": "JSON request payload to get the chunks in the request",
|
1960
|
+
"content": {
|
1961
|
+
"application/json": {
|
1962
|
+
"schema": {
|
1963
|
+
"$ref": "#/components/schemas/GetTrackingChunksData"
|
1964
|
+
}
|
1965
|
+
}
|
1966
|
+
},
|
1967
|
+
"required": true
|
1968
|
+
},
|
1969
|
+
"responses": {
|
1970
|
+
"200": {
|
1971
|
+
"description": "chunk with the id that you were searching for",
|
1972
|
+
"content": {
|
1973
|
+
"application/json": {
|
1974
|
+
"schema": {
|
1975
|
+
"$ref": "#/components/schemas/ChunkMetadata"
|
1976
|
+
}
|
1977
|
+
}
|
1978
|
+
}
|
1979
|
+
},
|
1980
|
+
"400": {
|
1981
|
+
"description": "Service error relating to fidning a chunk by tracking_id",
|
1982
|
+
"content": {
|
1983
|
+
"application/json": {
|
1984
|
+
"schema": {
|
1985
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
1986
|
+
}
|
1987
|
+
}
|
1988
|
+
}
|
1846
1989
|
}
|
1847
1990
|
},
|
1848
1991
|
"security": [
|
@@ -4083,6 +4226,14 @@
|
|
4083
4226
|
"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
4227
|
"nullable": true
|
4085
4228
|
},
|
4229
|
+
"location": {
|
4230
|
+
"allOf": [
|
4231
|
+
{
|
4232
|
+
"$ref": "#/components/schemas/GeoInfo"
|
4233
|
+
}
|
4234
|
+
],
|
4235
|
+
"nullable": true
|
4236
|
+
},
|
4086
4237
|
"metadata": {
|
4087
4238
|
"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
4239
|
"nullable": true
|
@@ -4370,6 +4521,14 @@
|
|
4370
4521
|
"type": "string",
|
4371
4522
|
"nullable": true
|
4372
4523
|
},
|
4524
|
+
"location": {
|
4525
|
+
"allOf": [
|
4526
|
+
{
|
4527
|
+
"$ref": "#/components/schemas/GeoInfo"
|
4528
|
+
}
|
4529
|
+
],
|
4530
|
+
"nullable": true
|
4531
|
+
},
|
4373
4532
|
"metadata": {
|
4374
4533
|
"nullable": true
|
4375
4534
|
},
|
@@ -4742,11 +4901,6 @@
|
|
4742
4901
|
"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
4902
|
"nullable": true
|
4744
4903
|
},
|
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
4904
|
"new_message_content": {
|
4751
4905
|
"type": "string",
|
4752
4906
|
"description": "The content of the user message to attach to the topic and then generate an assistant message in response to."
|
@@ -4789,11 +4943,6 @@
|
|
4789
4943
|
"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
4944
|
"nullable": true
|
4791
4945
|
},
|
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
4946
|
"name": {
|
4798
4947
|
"type": "string",
|
4799
4948
|
"description": "The name of the topic. If this is not provided, the topic name is generated from the first_user_message.",
|
@@ -5017,11 +5166,6 @@
|
|
5017
5166
|
"format": "int32",
|
5018
5167
|
"description": "The sort order of the message to edit."
|
5019
5168
|
},
|
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
5169
|
"new_message_content": {
|
5026
5170
|
"type": "string",
|
5027
5171
|
"description": "The new content of the message to replace the old content with."
|
@@ -5125,6 +5269,30 @@
|
|
5125
5269
|
"type": "string",
|
5126
5270
|
"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
5271
|
},
|
5272
|
+
"geo_bounding_box": {
|
5273
|
+
"allOf": [
|
5274
|
+
{
|
5275
|
+
"$ref": "#/components/schemas/LocationBoundingBox"
|
5276
|
+
}
|
5277
|
+
],
|
5278
|
+
"nullable": true
|
5279
|
+
},
|
5280
|
+
"geo_polygon": {
|
5281
|
+
"allOf": [
|
5282
|
+
{
|
5283
|
+
"$ref": "#/components/schemas/LocationPolygon"
|
5284
|
+
}
|
5285
|
+
],
|
5286
|
+
"nullable": true
|
5287
|
+
},
|
5288
|
+
"geo_radius": {
|
5289
|
+
"allOf": [
|
5290
|
+
{
|
5291
|
+
"$ref": "#/components/schemas/LocationRadius"
|
5292
|
+
}
|
5293
|
+
],
|
5294
|
+
"nullable": true
|
5295
|
+
},
|
5128
5296
|
"match": {
|
5129
5297
|
"type": "array",
|
5130
5298
|
"items": {
|
@@ -5291,11 +5459,6 @@
|
|
5291
5459
|
},
|
5292
5460
|
"description": "The ids of the chunks to be retrieved and injected into the context window for RAG."
|
5293
5461
|
},
|
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
5462
|
"prev_messages": {
|
5300
5463
|
"type": "array",
|
5301
5464
|
"items": {
|
@@ -5329,6 +5492,48 @@
|
|
5329
5492
|
"stream_response": true
|
5330
5493
|
}
|
5331
5494
|
},
|
5495
|
+
"GeoInfo": {
|
5496
|
+
"type": "object",
|
5497
|
+
"required": [
|
5498
|
+
"lat",
|
5499
|
+
"lon"
|
5500
|
+
],
|
5501
|
+
"properties": {
|
5502
|
+
"lat": {
|
5503
|
+
"$ref": "#/components/schemas/GeoTypes"
|
5504
|
+
},
|
5505
|
+
"lon": {
|
5506
|
+
"$ref": "#/components/schemas/GeoTypes"
|
5507
|
+
}
|
5508
|
+
}
|
5509
|
+
},
|
5510
|
+
"GeoTypes": {
|
5511
|
+
"oneOf": [
|
5512
|
+
{
|
5513
|
+
"type": "integer",
|
5514
|
+
"format": "int64"
|
5515
|
+
},
|
5516
|
+
{
|
5517
|
+
"type": "number",
|
5518
|
+
"format": "double"
|
5519
|
+
}
|
5520
|
+
]
|
5521
|
+
},
|
5522
|
+
"GetChunksData": {
|
5523
|
+
"type": "object",
|
5524
|
+
"required": [
|
5525
|
+
"ids"
|
5526
|
+
],
|
5527
|
+
"properties": {
|
5528
|
+
"ids": {
|
5529
|
+
"type": "array",
|
5530
|
+
"items": {
|
5531
|
+
"type": "string",
|
5532
|
+
"format": "uuid"
|
5533
|
+
}
|
5534
|
+
}
|
5535
|
+
}
|
5536
|
+
},
|
5332
5537
|
"GetEventsData": {
|
5333
5538
|
"type": "object",
|
5334
5539
|
"properties": {
|
@@ -5376,6 +5581,20 @@
|
|
5376
5581
|
}
|
5377
5582
|
}
|
5378
5583
|
},
|
5584
|
+
"GetTrackingChunksData": {
|
5585
|
+
"type": "object",
|
5586
|
+
"required": [
|
5587
|
+
"tracking_ids"
|
5588
|
+
],
|
5589
|
+
"properties": {
|
5590
|
+
"tracking_ids": {
|
5591
|
+
"type": "array",
|
5592
|
+
"items": {
|
5593
|
+
"type": "string"
|
5594
|
+
}
|
5595
|
+
}
|
5596
|
+
}
|
5597
|
+
},
|
5379
5598
|
"GroupData": {
|
5380
5599
|
"type": "object",
|
5381
5600
|
"required": [
|
@@ -5521,6 +5740,61 @@
|
|
5521
5740
|
}
|
5522
5741
|
}
|
5523
5742
|
},
|
5743
|
+
"LocationBoundingBox": {
|
5744
|
+
"type": "object",
|
5745
|
+
"required": [
|
5746
|
+
"top_left",
|
5747
|
+
"bottom_right"
|
5748
|
+
],
|
5749
|
+
"properties": {
|
5750
|
+
"bottom_right": {
|
5751
|
+
"$ref": "#/components/schemas/GeoInfo"
|
5752
|
+
},
|
5753
|
+
"top_left": {
|
5754
|
+
"$ref": "#/components/schemas/GeoInfo"
|
5755
|
+
}
|
5756
|
+
}
|
5757
|
+
},
|
5758
|
+
"LocationPolygon": {
|
5759
|
+
"type": "object",
|
5760
|
+
"required": [
|
5761
|
+
"exterior"
|
5762
|
+
],
|
5763
|
+
"properties": {
|
5764
|
+
"exterior": {
|
5765
|
+
"type": "array",
|
5766
|
+
"items": {
|
5767
|
+
"$ref": "#/components/schemas/GeoInfo"
|
5768
|
+
}
|
5769
|
+
},
|
5770
|
+
"interior": {
|
5771
|
+
"type": "array",
|
5772
|
+
"items": {
|
5773
|
+
"type": "array",
|
5774
|
+
"items": {
|
5775
|
+
"$ref": "#/components/schemas/GeoInfo"
|
5776
|
+
}
|
5777
|
+
},
|
5778
|
+
"nullable": true
|
5779
|
+
}
|
5780
|
+
}
|
5781
|
+
},
|
5782
|
+
"LocationRadius": {
|
5783
|
+
"type": "object",
|
5784
|
+
"required": [
|
5785
|
+
"center",
|
5786
|
+
"radius"
|
5787
|
+
],
|
5788
|
+
"properties": {
|
5789
|
+
"center": {
|
5790
|
+
"$ref": "#/components/schemas/GeoInfo"
|
5791
|
+
},
|
5792
|
+
"radius": {
|
5793
|
+
"type": "number",
|
5794
|
+
"format": "double"
|
5795
|
+
}
|
5796
|
+
}
|
5797
|
+
},
|
5524
5798
|
"MatchCondition": {
|
5525
5799
|
"oneOf": [
|
5526
5800
|
{
|
@@ -5737,6 +6011,10 @@
|
|
5737
6011
|
{
|
5738
6012
|
"type": "number",
|
5739
6013
|
"format": "double"
|
6014
|
+
},
|
6015
|
+
{
|
6016
|
+
"type": "integer",
|
6017
|
+
"format": "int64"
|
5740
6018
|
}
|
5741
6019
|
]
|
5742
6020
|
},
|
@@ -5904,11 +6182,6 @@
|
|
5904
6182
|
"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
6183
|
"nullable": true
|
5906
6184
|
},
|
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
6185
|
"stream_response": {
|
5913
6186
|
"type": "boolean",
|
5914
6187
|
"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.",
|
@@ -6507,6 +6780,7 @@
|
|
6507
6780
|
"id",
|
6508
6781
|
"created_at",
|
6509
6782
|
"updated_at",
|
6783
|
+
"dataset_id",
|
6510
6784
|
"weight"
|
6511
6785
|
],
|
6512
6786
|
"properties": {
|
@@ -6514,6 +6788,10 @@
|
|
6514
6788
|
"type": "string",
|
6515
6789
|
"format": "date-time"
|
6516
6790
|
},
|
6791
|
+
"dataset_id": {
|
6792
|
+
"type": "string",
|
6793
|
+
"format": "uuid"
|
6794
|
+
},
|
6517
6795
|
"id": {
|
6518
6796
|
"type": "string",
|
6519
6797
|
"format": "uuid"
|
@@ -6522,6 +6800,14 @@
|
|
6522
6800
|
"type": "string",
|
6523
6801
|
"nullable": true
|
6524
6802
|
},
|
6803
|
+
"location": {
|
6804
|
+
"allOf": [
|
6805
|
+
{
|
6806
|
+
"$ref": "#/components/schemas/GeoInfo"
|
6807
|
+
}
|
6808
|
+
],
|
6809
|
+
"nullable": true
|
6810
|
+
},
|
6525
6811
|
"metadata": {
|
6526
6812
|
"nullable": true
|
6527
6813
|
},
|
@@ -6977,6 +7263,14 @@
|
|
6977
7263
|
"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
7264
|
"nullable": true
|
6979
7265
|
},
|
7266
|
+
"location": {
|
7267
|
+
"allOf": [
|
7268
|
+
{
|
7269
|
+
"$ref": "#/components/schemas/GeoInfo"
|
7270
|
+
}
|
7271
|
+
],
|
7272
|
+
"nullable": true
|
7273
|
+
},
|
6980
7274
|
"metadata": {
|
6981
7275
|
"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
7276
|
"nullable": true
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#Trieve API
|
3
|
+
|
4
|
+
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.7.5
|
7
|
+
Contact: developers@trieve.ai
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TrieveRubyClient::GeoInfo
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TrieveRubyClient::GeoInfo do
|
21
|
+
let(:instance) { TrieveRubyClient::GeoInfo.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GeoInfo' do
|
24
|
+
it 'should create an instance of GeoInfo' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(TrieveRubyClient::GeoInfo)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "lat"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "lon"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
=begin
|
2
|
+
#Trieve API
|
3
|
+
|
4
|
+
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.7.5
|
7
|
+
Contact: developers@trieve.ai
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TrieveRubyClient::GeoTypes
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TrieveRubyClient::GeoTypes do
|
21
|
+
describe '.openapi_one_of' do
|
22
|
+
it 'lists the items referenced in the oneOf array' do
|
23
|
+
expect(described_class.openapi_one_of).to_not be_empty
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '.build' do
|
28
|
+
it 'returns the correct model' do
|
29
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
=begin
|
2
|
+
#Trieve API
|
3
|
+
|
4
|
+
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.7.5
|
7
|
+
Contact: developers@trieve.ai
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TrieveRubyClient::GetChunksData
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TrieveRubyClient::GetChunksData do
|
21
|
+
let(:instance) { TrieveRubyClient::GetChunksData.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetChunksData' do
|
24
|
+
it 'should create an instance of GetChunksData' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(TrieveRubyClient::GetChunksData)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "ids"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
=begin
|
2
|
+
#Trieve API
|
3
|
+
|
4
|
+
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.7.5
|
7
|
+
Contact: developers@trieve.ai
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TrieveRubyClient::GetTrackingChunksData
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TrieveRubyClient::GetTrackingChunksData do
|
21
|
+
let(:instance) { TrieveRubyClient::GetTrackingChunksData.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetTrackingChunksData' do
|
24
|
+
it 'should create an instance of GetTrackingChunksData' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(TrieveRubyClient::GetTrackingChunksData)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "tracking_ids"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|