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 creates a job to remove one or more documents from a specified collection. It is useful in scenarios where you want to asynchronously delete documents from a collection without immediately affecting the collection's availability or performance. For example, if you manage a large document repository and need to clean up outdated or irrelevant documents, this operation queues a job to handle the removal process efficiently.

Properties

Name Meaning
Collection ID The unique identifier of the collection from which documents will be removed.
Document IDs A string containing one or more document IDs that specify which documents to delete.

Output

The output of this operation typically includes the response from the API indicating the status of the job creation for deleting documents from the collection. The json output field will contain details about the created job, such as its ID and status, allowing users to track the progress of the deletion task.

If the node supports binary data output, it would represent any associated files or attachments related to the job, but in this case, the operation deals with JSON responses only.

Dependencies

  • Requires an API key credential for authentication to the external service.
  • The node sends a POST request to the endpoint /collections/{collection_id}/documents/delete_job.
  • Proper configuration of the base URL and authentication credentials in n8n is necessary.

Troubleshooting

  • Common Issues:

    • Invalid or missing Collection ID or Document IDs will cause the job creation to fail.
    • Insufficient permissions or invalid API key may result in authorization errors.
    • Network issues or incorrect base URL configuration can prevent successful API calls.
  • Error Messages:

    • "Collection not found" — Verify the Collection ID is correct and exists.
    • "Document IDs invalid or not found" — Check that the Document IDs are valid and belong to the specified collection.
    • "Unauthorized" — Ensure the API key credential is correctly configured and has sufficient permissions.
    • Timeout or network errors — Confirm network connectivity and API endpoint accessibility.

Links and References

  • Refer to the API documentation of the external service managing collections and documents for detailed information on job creation and document management.
  • Consult n8n documentation on how to configure API key credentials and HTTP request nodes for integration.

Discussion