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 updates attributes of an existing prompt template in the system. Prompt templates are reusable configurations that define how AI models generate responses based on various prompts and settings. Updating a prompt template allows users to modify its descriptive text, language, query prompts, summaries, reflection templates, and other advanced options related to document processing and AI model behavior.

Typical use cases include:

  • Refining or correcting the wording of prompts used for generating AI responses.
  • Adjusting language or localization settings.
  • Customizing prompts for document summarization or question generation.
  • Modifying system or self-reflection prompts to improve AI output quality.

For example, a user might update the "description" and "name" of a prompt template to better reflect its purpose or change the "pre_prompt_query" to prepend specific context before user queries.

Properties

Name Meaning
Prompt Template ID The unique identifier of the prompt template to update (required).
Auto Gen Description Prompt A prompt used to automatically create a description of the collection.
Auto Gen Document Sample Questions Prompt A prompt to generate sample questions for a newly imported document if enabled.
Auto Gen Document Summary Pre Prompt Summary A pre-prompt summary text for freshly imported documents if enabled.
Auto Gen Document Summary Prompt Summary A prompt summary for freshly imported documents if enabled.
Default Sample Questions Default sample questions used when no auto-generated questions are available.
Description A textual description of the prompt template.
Hyde No Rag Llm Prompt Extension An extension prompt for LLMs without retrieval-augmented generation (RAG).
Image Batch Final Prompt A prompt applied to each image batch for vision models.
Image Batch Image Prompt A prompt for each image batch for vision models.
Lang Language code specifying the language of the prompt template.
Name The name of the prompt template.
Pre Prompt Query Text prepended before contextual document chunks in queries.
Pre Prompt Summary A prompt placed before large text blocks to summarize them.
Prompt Query Text appended at the beginning of the user's message.
Prompt Reflection A self-reflection template requiring two placeholders for previous prompts.
Prompt Summary A prompt placed after large text blocks to summarize them.
System Prompt A system-level prompt providing overall context to the AI model.
System Prompt Reflection A system prompt used for self-reflection by the AI model.

Output

The node outputs the response from the API call that updates the prompt template. This typically includes the updated prompt template object with all its attributes reflecting the changes made. The output is structured as JSON data containing the updated fields of the prompt template.

If the API supports it, the output may also include metadata such as timestamps, IDs, and status messages confirming the update.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential for authentication with the external service managing prompt templates.
  • The base URL for API requests is configured via credentials and environment variables.
  • The node sends HTTP PATCH requests to the endpoint /prompt_templates/{prompt_template_id} with JSON body containing updated attributes.

Troubleshooting

  • Missing or invalid Prompt Template ID: The operation requires a valid prompt template ID. Ensure the ID is correct and exists in the system.
  • Invalid property values: Some properties have constraints (e.g., prompt reflection must contain two %s placeholders). Validate inputs accordingly.
  • Authentication errors: Verify that the API key credential is correctly configured and has permissions to update prompt templates.
  • Network or timeout issues: Check connectivity to the API endpoint and adjust timeout settings if necessary.
  • API validation errors: The API may reject updates if required fields are missing or if the payload format is incorrect. Review error messages returned by the API for guidance.

Links and References

  • Refer to the external API documentation for prompt templates for detailed information on each attribute and update semantics.
  • Consult the platform's authentication guide for setting up API key credentials.
  • For best practices on prompt engineering, see relevant AI model provider resources.

Discussion