Editing the default prompt templates

As an object store administrator, you can edit the values of the default prompt templates for the Content Assistant in an object store.

About this task

You can edit the default prompt templates in the following cases:
  • When you want to use the Content Assistant in language other than English. The default language for the Content Assistant prompts is English. If you plan to use a different language, you need to translate the prompt. Also, you need to add the following sentence to the prompt:
    Always respond in <language>.
  • When you have domain-specific requirements and when you need to tailor the prompt to meet specific requirements.
  • When you have specific compliance reasons, you need to include specific clauses in any LLM prompt. The clauses instruct the LLM to follow business-specific guidelines when responses are generated.
Important: Carefully test any changes to the LLM prompt template. Deviating from the default LLM prompt template may adversely affect the quality of the generated responses.

Procedure

  1. Edit the text for the prompt template by using a text editor of choice.
  2. In the Administration Console for Content Platform Engine (ACCE), go to the object store where you want to set the LLM query prompt template for the Content Assistant.
  3. In the left-pane, go to Search.
  4. Click New Object Store Search.
  5. In Simple View, specify the Class as Gen AI Configuration and click Run.
    The search results display a single object.
  6. In the Properties tab for the selected object, specify the query prompt in the Gen AI LLM Query Prompt Template field.
    The value corresponds to the GenaiLLMQueryPromptTemplate property of the GenaiConfiguration object for the Content Assistant.
  7. In the Properties tab for the selected object, specify the summary prompt in the Gen AI LLM Document Summary Prompt Template field.
    The value corresponds to the GenaiLLMDocumentSummaryPromptTemplate property of the GenaiConfiguration object for the Content Assistant.
  8. Save your changes.