CollectionCreateRequest

Properties

Name

Type

Description

Notes

name

str

description

str

embedding_model

str

[optional]

collection_settings

CollectionSettings

[optional]

chat_settings

ChatSettings

[optional]

expiry_date

datetime

Optional expiration date for the collection

[optional]

workspace

str

[optional]

vex_encryption

str

Per-collection vector encryption choice, honored at create time only: * `enabled` — store vectors encrypted (server must have a vector encryption provider configured; the collection cannot later be opened on a server with no provider). * `disabled` — store vectors as plaintext, even if the server has encryption enabled by default. * omitted — fall back to the server-level default (`H2OGPTE_VEX_ENCRYPTION_ENABLED`). Sticky once any data is written: existing collections cannot switch modes after the first write.

[optional]

Example

from h2ogpte.rest_sync.models.collection_create_request import CollectionCreateRequest

# TODO update the JSON string below
json = "{}"
# create an instance of CollectionCreateRequest from a JSON string
collection_create_request_instance = CollectionCreateRequest.from_json(json)
# print the JSON string representation of the object
print(CollectionCreateRequest.to_json())

# convert the object into a dict
collection_create_request_dict = collection_create_request_instance.to_dict()
# create an instance of CollectionCreateRequest from a dict
collection_create_request_from_dict = CollectionCreateRequest.from_dict(collection_create_request_dict)