h2oGPTe icon

h2oGPTe

h2oGPTe is an AI-powered search assistant for your internal teams to answer questions gleaned from large volumes of documents, websites and workplace content.

Actions198

Overview

This node operation sets a maximum size limit on the total sum of documents added to a specific collection. It is useful for managing storage quotas or enforcing data size constraints within collections, ensuring that the total size of all documents in a collection does not exceed a specified byte limit.

Practical examples include:

  • Limiting the amount of data ingested into a project-specific document collection.
  • Enforcing organizational policies on storage usage per collection.
  • Preventing accidental overloading of collections with large amounts of data.

Properties

Name Meaning
Collection ID The unique identifier of the collection to which the size limit will be applied.
Size Limit The maximum allowed total size (in bytes) for all documents in the collection. Supports human-readable formats like "1GB" or "1GiB".

Output

The output of this operation is the full HTTP response from the API call that sets the size limit on the collection. This typically includes confirmation of the update and any relevant metadata about the collection's new size limit status.

No binary data is involved in this operation.

Dependencies

  • Requires an API key credential for authentication to the external service managing collections.
  • The node sends a PUT request to the endpoint /collections/{collection_id}/size_limit with the size limit in the request body.
  • The base URL and authentication headers must be configured properly in the node credentials.

Troubleshooting

  • Invalid Collection ID: If the provided collection ID does not exist or is incorrect, the API will return an error indicating the collection was not found. Verify the collection ID.
  • Invalid Size Limit Format: The size limit should be a valid string representing bytes or human-readable sizes (e.g., "12345", "1GB"). Incorrect formats may cause validation errors.
  • Permission Denied: Ensure the API key used has sufficient permissions to modify collection settings.
  • Network Issues: Connectivity problems can cause request failures; verify network access to the API endpoint.
  • API Rate Limits: Excessive requests might be throttled by the API; handle such errors by retrying after some delay.

Links and References

  • Refer to the API documentation of the collection management service for details on the PUT /collections/{collection_id}/size_limit endpoint.
  • For size format conventions, see common byte size notation references (e.g., IEC standards for GiB).

Discussion