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 access to a wide range of operations related to managing collections within the h2oGPT environment. Specifically, for the "Get a Collection" operation under the "Collection" resource, it retrieves detailed information about a specific collection identified by its unique ID. This is useful when you want to fetch metadata and details about a particular collection of documents or data grouped together.

Common scenarios where this node is beneficial include:

  • Retrieving collection details before performing updates or deletions.
  • Displaying collection metadata in dashboards or reports.
  • Integrating collection information into workflows that depend on collection attributes.

Practical example:

  • You have a collection of research papers grouped under a project. Using this node, you can fetch the collection's metadata such as name, description, and settings to display in your application or use it to conditionally process documents within that collection.

Properties

Name Meaning
Collection ID The unique identifier (ID) of the collection to return. This is required to specify which collection's details should be fetched.

Output

The output of the "Get a Collection" operation will be a JSON object containing detailed information about the specified collection. This typically includes metadata such as the collection's name, description, creation date, update date, and other relevant settings or attributes associated with the collection.

If the node supports binary data output (not indicated here), it would represent files or media related to the collection, but for this operation, the output is purely JSON metadata.

Dependencies

  • Requires an API key credential for authentication to the h2oGPT API.
  • The node makes HTTP GET requests to the endpoint /collections/{collection_id} where {collection_id} is the provided Collection ID.
  • The base URL for the API is configured via credentials and must be set correctly in the node's credentials configuration.

Troubleshooting

  • Missing or invalid Collection ID: Ensure the Collection ID is provided and valid; otherwise, the API will return an error indicating the collection was not found.
  • Authentication errors: Verify that the API key credential is correctly configured and has sufficient permissions to access collection data.
  • Network issues or incorrect base URL: Confirm the API base URL is correct and reachable from the n8n environment.
  • API rate limits or server errors: If the API returns rate limit errors or server errors, consider retrying after some time or checking the API service status.

Links and References

Discussion