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

The node provides an interface to update the metadata of a specific collection within the h2oGPT environment. This operation completely replaces the existing metadata of the collection with new data provided by the user. It is useful when you want to refresh or overwrite all metadata attributes associated with a collection, such as tags, descriptions, or custom fields.

Typical use cases include:

  • Updating metadata after bulk changes in the collection's content.
  • Standardizing metadata formats across collections.
  • Correcting or enriching metadata information for better search and retrieval.

For example, if you have a collection representing a set of documents about scientific research, and you want to update its metadata to reflect new categorization or keywords, this node operation allows you to do so efficiently.

Properties

Name Meaning
Collection ID The unique identifier of the collection whose metadata will be updated. This is required to specify which collection to target.

Output

The output of this operation typically includes the full HTTP response from the API call that updates the collection metadata. The json field in the output contains the updated metadata object of the collection as returned by the API. This reflects the new state of the collection's metadata after the update.

If the operation supports binary data (not indicated here), it would represent files or images related to the collection metadata, but this operation deals only with JSON metadata.

Dependencies

  • Requires an active connection to the h2oGPT API endpoint.
  • Requires valid API authentication credentials (an API key or token) configured in n8n to authorize the request.
  • The base URL for the API is derived from the credential configuration.
  • The node sends a PUT request to the endpoint /collections/{collection_id}/metadata.

Troubleshooting

  • Missing or invalid Collection ID: Ensure the Collection ID is correctly specified and exists in the system; otherwise, the API will return an error indicating the collection was not found.
  • Authentication errors: Verify that the API key or authentication token is valid and has permissions to update collection metadata.
  • Invalid metadata format: The metadata payload must conform to the expected JSON schema defined by the API. Invalid or malformed JSON will cause the request to fail.
  • Network issues: Check connectivity to the h2oGPT API server and ensure no firewall or proxy is blocking requests.
  • API rate limits: If many requests are made in a short time, the API might throttle or reject requests temporarily.

Links and References


This summary focuses on the "Collection" resource and the "Updates Collection Metadata" operation as requested.

Discussion