Skip to content

Prompt Templates for GitLab Duo Chat

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Release notes

Problem to solve

Users need to provide certain framing and context to Duo Chat to help it understand what they want. If they need to do some piece of work multiple times across multiple Duo Chat sessions, they will need to re-enter that framing and context each time. This means they either must manually type it and hope they remember it correctly, copy and paste it from a document, or some other means. This is time consuming and error prone for them.

An example of what this pre-prompting may look like is to specify who the reader of the output content would be. Prompts such as "We will be summarizing this information for a group of Product Managers" or "We will be creating an issue for a development team to implement from" put Duo in the right "mindset" for how to format its output. This could be extended for more complex cases depending on the workflow and is the type of context that can be time consuming to enter for each Duo Chat session.

Proposal

Provide a way in the product to save an initial set of prompts to give to Duo Chat that users can re-use across multiple chat sessions.

  • Users should be able to provide a block of text, called "chat context", to be used at the start of a Duo Chat session.
  • Users should be able to CRUD multiple "chat context" objects
  • Users should be able to select a different "chat context" for each Duo Chat session
  • Users should be able to intentionally select no "chat context" for a Duo Chat session

Anthropic's prompt templates or Google's system instructions could be informative examples to consider.

Intended users

Feature Usage Metrics

Does this feature require an audit event?

Edited by 🤖 GitLab Bot 🤖