Skip to content

Commit

Permalink
feature: update version to 0.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
skeptrunedev committed Apr 15, 2024
1 parent 0fd7ac2 commit ecfa726
Show file tree
Hide file tree
Showing 113 changed files with 209 additions and 128 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Trieve OpenAPI Specification. This document describes all of the operations avai

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.6.7
- Package version: 0.6.7
- API version: 0.6.9
- Package version: 0.6.9
- Generator version: 7.4.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://trieve.ai](https://trieve.ai)
Expand Down
1 change: 1 addition & 0 deletions docs/CreateDatasetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**dataset_name** | **str** | Name of the dataset. Must be unique within the organization. |
**organization_id** | **str** | Organization ID that the dataset will belong to. |
**server_configuration** | **object** | Server configuration for the dataset, can be arbitrary JSON. We recommend setting to `{}` to start. See docs.trieve.ai for more information or adjust with the admin dashboard. |
**tracking_id** | **str** | Optional tracking ID for the dataset. Can be used to track the dataset in external systems. | [optional]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/Dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**name** | **str** | |
**organization_id** | **str** | |
**server_configuration** | **object** | |
**tracking_id** | **str** | | [optional]
**updated_at** | **datetime** | |

## Example
Expand Down
1 change: 1 addition & 0 deletions docs/DatasetDTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**id** | **str** | |
**name** | **str** | |
**organization_id** | **str** | |
**tracking_id** | **str** | | [optional]
**updated_at** | **datetime** | |

## Example
Expand Down
1 change: 1 addition & 0 deletions docs/RecommendChunksRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**negative_tracking_ids** | **List[str]** | The tracking_ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks. | [optional]
**positive_chunk_ids** | **List[str]** | The 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. | [optional]
**positive_tracking_ids** | **List[str]** | 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. | [optional]
**recommend_type** | **str** | The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`. | [optional]
**slim_chunks** | **bool** | 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. | [optional]
**strategy** | **str** | Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives. | [optional]

Expand Down
1 change: 1 addition & 0 deletions docs/RecommendGroupChunksRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**negative_group_tracking_ids** | **List[str]** | The ids of the groups to be used as negative examples for the recommendation. The groups in this array will be used to filter out similar groups. | [optional]
**positive_group_ids** | **List[str]** | 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. | [optional]
**positive_group_tracking_ids** | **List[str]** | 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. | [optional]
**recommend_type** | **str** | The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`. | [optional]
**slim_chunks** | **bool** | 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. | [optional]
**strategy** | **str** | Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives. | [optional]

Expand Down
3 changes: 2 additions & 1 deletion docs/UpdateDatasetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**client_configuration** | **object** | The new client configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the client configuration will not be updated. | [optional]
**dataset_id** | **str** | The id of the dataset you want to update. |
**dataset_id** | **str** | The id of the dataset you want to update. | [optional]
**dataset_name** | **str** | The new name of the dataset. Must be unique within the organization. If not provided, the name will not be updated. | [optional]
**server_configuration** | **object** | The new server configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the server configuration will not be updated. | [optional]
**tracking_id** | **str** | tracking ID for the dataset. Can be used to track the dataset in external systems. | [optional]

## Example

Expand Down
4 changes: 2 additions & 2 deletions openapi-generator.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
generatorName: python
outputDir: ./generated-code/python-client
packageName: trieve_py_client
packageVersion: 0.6.7
packageVersion: 0.6.9

additionalProperties:
projectName: trieve_py_client
Expand All @@ -10,4 +10,4 @@ additionalProperties:
packageDescription: "Python client for Trieve API generated from its OpenAPI specification using openapi-generator."
packageAuthor: "Trieve"
packageAuthorEmail: "developers@trieve.ai"
packageVersion: "0.6.7"
packageVersion: "0.6.9"
38 changes: 33 additions & 5 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "BSL",
"url": "https://github.com/devflowinc/trieve/blob/main/LICENSE.txt"
},
"version": "0.6.7"
"version": "0.6.9"
},
"servers": [
{
Expand Down Expand Up @@ -4726,6 +4726,11 @@
},
"server_configuration": {
"description": "Server configuration for the dataset, can be arbitrary JSON. We recommend setting to `{}` to start. See docs.trieve.ai for more information or adjust with the admin dashboard."
},
"tracking_id": {
"type": "string",
"description": "Optional tracking ID for the dataset. Can be used to track the dataset in external systems.",
"nullable": true
}
},
"example": {
Expand Down Expand Up @@ -4840,6 +4845,10 @@
"format": "uuid"
},
"server_configuration": {},
"tracking_id": {
"type": "string",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
Expand All @@ -4856,6 +4865,7 @@
"server_configuration": {
"key": "value"
},
"tracking_id": "3",
"updated_at": "2021-01-01T00:00:00"
}
},
Expand Down Expand Up @@ -4918,6 +4928,10 @@
"type": "string",
"format": "uuid"
},
"tracking_id": {
"type": "string",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
Expand All @@ -4931,6 +4945,7 @@
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"organization_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"tracking_id": "3",
"updated_at": "2021-01-01T00:00:00"
}
},
Expand Down Expand Up @@ -5788,6 +5803,11 @@
"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.",
"nullable": true
},
"recommend_type": {
"type": "string",
"description": "The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`.",
"nullable": true
},
"slim_chunks": {
"type": "boolean",
"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.",
Expand Down Expand Up @@ -5859,6 +5879,11 @@
"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.",
"nullable": true
},
"recommend_type": {
"type": "string",
"description": "The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`.",
"nullable": true
},
"slim_chunks": {
"type": "boolean",
"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.",
Expand Down Expand Up @@ -7048,9 +7073,6 @@
},
"UpdateDatasetRequest": {
"type": "object",
"required": [
"dataset_id"
],
"properties": {
"client_configuration": {
"description": "The new client configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the client configuration will not be updated.",
Expand All @@ -7059,7 +7081,8 @@
"dataset_id": {
"type": "string",
"format": "uuid",
"description": "The id of the dataset you want to update."
"description": "The id of the dataset you want to update.",
"nullable": true
},
"dataset_name": {
"type": "string",
Expand All @@ -7069,6 +7092,11 @@
"server_configuration": {
"description": "The new server configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the server configuration will not be updated.",
"nullable": true
},
"tracking_id": {
"type": "string",
"description": "tracking ID for the dataset. Can be used to track the dataset in external systems.",
"nullable": true
}
},
"example": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "trieve_py_client"
version = "0.6.7"
version = "0.6.9"
description = "Trieve API"
authors = ["Trieve Team <developers@trieve.ai>"]
license = "BSL"
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand All @@ -22,7 +22,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "trieve_py_client"
VERSION = "0.6.7"
VERSION = "0.6.9"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions trieve_py_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501


__version__ = "0.6.7"
__version__ = "0.6.9"

# import apis into sdk package
from trieve_py_client.api.auth_api import AuthApi
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/auth_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/chunk_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/chunk_group_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/dataset_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/events_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/file_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/health_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/invitation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/message_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/organization_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/stripe_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/topic_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
2 changes: 1 addition & 1 deletion trieve_py_client/api/user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down
4 changes: 2 additions & 2 deletions trieve_py_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down Expand Up @@ -88,7 +88,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/0.6.7/python'
self.user_agent = 'OpenAPI-Generator/0.6.9/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
6 changes: 3 additions & 3 deletions trieve_py_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
The version of the OpenAPI document: 0.6.7
The version of the OpenAPI document: 0.6.9
Contact: developers@trieve.ai
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand Down Expand Up @@ -399,8 +399,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.6.7\n"\
"SDK Package Version: 0.6.7".\
"Version of the API: 0.6.9\n"\
"SDK Package Version: 0.6.9".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
Loading

0 comments on commit ecfa726

Please sign in to comment.