Creating a summary prompt template for a document class

You can create a different summary prompt template for each document class in your object store.

Before you begin

If you plan to customize summary prompt templates, you need to first create a value for the GenaiLLMDocumentSummaryPromptTemplate property of the GenaiConfiguration class. This value is used as the prompt template value for any document class that does not have a customized summary prompt template.

For more information, see the topic Editing the default prompt templates.

About this task

Sometimes, you may want to use a different summary prompt template for each document class in your object store. For example, the summary prompt template for an Invoice document contains different instructions compared to the prompt template for a Resume document.

The Content Assistant metadata includes the GenaiClassSummaryGenerationDefinition class for which you can create instances and associate them with a document class. If you specify a custom summary prompt template for a document class, it applies for that document class and the subclasses of the document class. If you want a subclass to have a summary prompt template that is different from the parent class, then you need to create a separate GenaiClassSummaryGenerationDefinition instance for the subclass.

Procedure

  1. In the Administration Console for Content Platform Engine (ACCE), go to Data Design > Classes > Other Classes > Abstract Persistable > Gen AI Summary Prompt Definition and open the class definition.
  2. In the class definition, select Actions > Create Instance to create an instance of the class.
  3. In the new Gen AI Summary Prompt Definitionwizard, specify the value for Gen AI Summary Prompt Class property.
    1. Go to Data Design > Classes > Document.
    2. Select a document subclass for which you want to define a prompt.
      Open the class definition for the document class for which you want to use a different summary prompt template.
    3. Click Actions > Copy Object Reference.
    4. Paste the copied object reference as value for Gen AI Summary Prompt Class property in the Gen AI Summary Prompt Definition wizard.
  4. Enter your custom summary prompt template in the Gen AI LLM Doc Summary Prompt Template field.
  5. Specify a value different from the default value for Gen AI Max Summary Words field. Click Next.
    For the selected document sub-class, you can also specify a different value for the Gen AI Max Summary Words property.
  6. Complete the wizard.
  7. Repeat the steps for each document class where you want to add a custom summary prompt template.