Generate a Document summary
Overview​
In the Documents section, you can generate a summary of the Document using Document AI.
A summary of the Document using Document AI can not be generated unless the Document has been added to a Collection first. To learn how to add a Document to a Collection, see Add a Document to a Collection.
Instructions​
To generate Document AI, follow these steps:
- In the Enterprise h2oGPTe navigation menu, click Documents.
- In the Documents grid or list, select the name of the Document you want to create a new summary of.
- Click Summarize, Extract, Process under the Document AI section.
- In the Summarize, Extract, Process panel, customize the Document AI settings according to your requirements.
note
To learn more about each setting, see Document AI settings.
- Click Summarize, Extract, Process after finalizing the settings.
Document AI settings​
LLM​
-
This setting enables you to select the Large Language Model (LLM) to generate the Document summary.
-
You can choose from a variety of LLMs by selecting the desired model from the menu.
Enable vision​
In addition to sending document context to the normal Large Language Model (LLM), this setting allows you to pass document context as images to a vision-capable LLM. If you enable the automatic mode, it will select the vision-capable LLM based on the document context and the LLM model.
Enabling vision mode can lead to higher latency and cost.
Vision LLM​
This setting allows you to select the LLM for processing images. Selecting automatic mode will pick a vision LLM based on availability and configuration. It typically selects the same LLM for vision-capable models and the default LLM for non-vision models.
Max. number of chunks and approximate cost range​
This setting allows you to configure the number of chunks to be extracted from the Document to summarize its context. Adjust the slider to select the desired number of chunks for the summary.
Moving the slider to 100 prompts the Large Language Model (LLM) to utilize 100 chunks from the Document to generate the Document summary.
Prompt Template​
This setting allows you to select a prompt template from the drop-down menu to customize the prompts used for the Collection. You can create your own prompt template on the Prompts page and use it for your Collection.
Personality (System Prompt)​
This setting allows you to customize the personality of the LLM according to your requirements for the Document summary. It aids in shaping the behavior of the generated Document summary.
Example: You are h2oGPTe, an expert question-answering AI system created by H2O.ai that performs like GPT-4 by OpenAI.
Prompts before/after document context​
This setting enables you to specify prompts before and after the Document context to guide the language model (LLM) in generating a Document summary.
Before prompt example: "In order to write a concise single-paragraph or bulleted list summary, pay attention to any chat history, any images given, or any following text: DOCUMENT CONTEXT"
After prompt example: "Using only any chat history, any images given, or any text above, write a condensed and concise summary of key results (preferably as bullet points)."
Prompt per image batch for vision models​
This setting defines the prompt used to obtain answers for the user queries from a batch of images when vision mode is enabled.
Prompt for final image batch reduction for vision models​
This setting defines the prompt used to obtain the final answer for the user query from the per-image-batch answers when vision mode is enabled.
JSON Schema​
This setting enables you to ensure that the output will conform to the JSON schema. Use to let the LLM determine the output schema.
PII Detection​
This setting enables you to detect personally identifiable information (PII) in the Document summary. Click on the drop-down menu to select a PII detection option.
The PII detection policies apply in addition to system settings.
Document Metadata to include​
This setting allows you to provide additional Document info as part of the DOCUMENT CONTEXT. You can select the metadata fields to include in the Document summary by using the drop-down menu.
Keep intermediate results​
If this setting is enabled, the final result will be a list of intermediate results. Otherwise, a global result is created. This is useful for debugging and understanding the process of generating the Document summary.
- Submit and view feedback for this page
- Send feedback about Enterprise h2oGPTe to cloud-feedback@h2o.ai