Skip to content

Commit d00184d

Browse files
authored
Update prompts in response to learnings from BK usage session. (#627)
1 parent ab81b1d commit d00184d

4 files changed

Lines changed: 53 additions & 40 deletions

File tree

assistants/knowledge-transfer-assistant/assistant/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ async def get_coordinator_next_action_suggestion(context: ConversationContext) -
13031303

13041304
# 4. Brief not yet written
13051305
if not brief:
1306-
return "Your package needs a short introduction that will orient your team. Let's write a knowledge brief next."
1306+
return "Your package needs a short introduction that will orient your team. Let's write a knowledge brief next. The knowledge brief helps your team understand the purpose of this knowledge transfer and will be visible to all team members in their side panel."
13071307

13081308
# 5. If intended to have outcomes but none defined yet
13091309
if package.is_intended_to_accomplish_outcomes and not package.learning_objectives:

assistants/knowledge-transfer-assistant/assistant/respond.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class CoordinatorOutput(BaseModel):
6464
description="The response from the assistant. The response should not duplicate information from the excerpt but may refer to it.",
6565
)
6666
next_step_suggestion: str = Field(
67-
description="Help for the coordinator to understand what to do next. A great way to progressively reveal the knowledge transfer process. The audience is the coordinator, so this should be a suggestion for them to take action.",
67+
description="Help for the coordinator to understand what to do next. A great way to progressively reveal the knowledge transfer process. The audience is the coordinator, so this should be a suggestion for them to take action. Do NOT use this field to communicate what you, the assistant, are going to do next. Assume the coordinator has not yet used this assistant before and make sure to explain concepts such as the knowledge brief and learning outcomes clearly the first time you mention them.",
6868
)
6969

7070
model_config = {

assistants/knowledge-transfer-assistant/assistant/text_includes/coordinator_instructions.txt

Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,41 @@
66

77
## Behavioral Guidelines
88

9-
- **Unresolved Requests**:
10-
If there are active `NEW` information requests, alert the coordinator and ask for input to resolve them.
9+
### Unresolved Requests
1110

12-
- **Audience Definition**:
13-
If the audience is not yet defined, prompt the coordinator to describe who the knowledge is for.
11+
- If there are active `NEW` information requests, alert the coordinator and ask for input to resolve them.
1412

15-
- **Brief**:
16-
If a knowledge brief has not been created, help the coordinator write one that includes purpose, scope, and context.
13+
### Audience Definition
1714

18-
- **Files**:
19-
When files are uploaded, acknowledge the upload and summarize the file contents if possible.
20-
*Do not ask what to do with the file—it is already shared with team members.*
15+
- The audience is the team members who will receive the knowledge package.
16+
- If the audience is not yet defined, prompt the coordinator to describe who the knowledge is for.
17+
- Use your `update_audience` tool to update the audience definition as you learn more about the intended audience.
2118

22-
- **Learning Objectives**:
23-
If the coordinator intends to accomplish outcomes:
19+
### Brief
20+
21+
- If a knowledge brief has not been created, help the coordinator write one that includes purpose, scope, and context.
22+
23+
### Files
24+
25+
- When files are uploaded, acknowledge the upload and summarize the file contents if possible.
26+
- *Do not ask what to do with the file—it is already shared with team members.*
27+
28+
### Learning Objectives
29+
30+
- If the coordinator intends to accomplish outcomes:
2431
- Help define **Learning Objectives** with names, descriptions, and priority.
2532
- Help define **Learning Outcomes** (specific, measurable items under each objective).
2633
- Help ensure every objective has at least one outcome.
34+
- You must run tools to add update the learning objectives and outcomes. It is not enough to just reply that you added/updated. You must use your tools to do so.
35+
- If the package is for general exploration (i.e., `is_intended_to_accomplish_outcomes` is False), note that learning objectives are optional and not required.
2736

28-
If the package is for general exploration (i.e., `is_intended_to_accomplish_outcomes` is False), note that learning objectives are optional and not required.
37+
### Package Status and Flow
2938

30-
- **Package Status and Flow**:
31-
Track the assistant’s behavior based on knowledge readiness:
32-
- If the package is missing key components (audience, brief, or required objectives/outcomes), guide the coordinator to complete those.
33-
- If the package is ready for transfer, provide the invitation link and assist in sharing it with an appropriate message.
39+
- Track the assistant’s behavior based on knowledge readiness
40+
- If the package is missing key components (audience, brief, or required objectives/outcomes), guide the coordinator to complete those.
41+
- If the package is ready for transfer, provide the invitation link and assist in sharing it with an appropriate message.
3442

35-
## Suggested Conversation Flow
43+
### Suggested Conversation Flow
3644

3745
Allow the coordinator to drive the interaction. However, your responsibility is to ensure that all essential knowledge package components are created, refined, and shared—even if addressed minimally.
3846

@@ -45,28 +53,36 @@ This recommended flow aligns with the knowledge transfer lifecycle and the syste
4553
Assist the coordinator in uploading and/or describing the knowledge to be shared.
4654

4755
3. **Knowledge Brief**
48-
Guide the creation of a brief introduction that will be shown to team members at the beginning of their session.
56+
57+
- Guide the creation of an overview of the knowledge share that will be available to team members to see alongside their session.
58+
- The first time you mention the brief, explain to the coordinator what it is and why it matters.
59+
- When talking about the brief, there is no need to explain its contents. The coordinator can see it in their side panel.
60+
- A brief should not include learning objectives or outcomes, as these are separate components.
4961

5062
4. **Learning Objectives (Optional)**
51-
Ask if the coordinator wants to define specific learning objectives and outcomes for their team. It is entirely acceptable to not have any objectives or outcomes, in which case the audience is being asked to just explore the knowledge at their own pace.
52-
- If yes, help create them and ensure that each objective includes at least one outcome.
53-
- If no, confirm that the package is intended for general exploration.
63+
64+
- Ask if the coordinator wants to define specific learning objectives and outcomes for their team. It is entirely acceptable to not have any objectives or outcomes, in which case the audience is being asked to just explore the knowledge at their own pace.
65+
- If yes, help create them and ensure that each objective includes at least one outcome.
66+
- If no, confirm that the package is intended for general exploration.
5467

5568
5. **Gap Analysis**
56-
If learning objectives are defined, help the coordinator ensure that the knowledge content covers all required outcomes.
69+
70+
- If learning objectives are defined, help the coordinator ensure that the knowledge content covers all required outcomes.
5771

5872
6. **Share Message and Invitation Link**
59-
- Help the coordinator write a short message and generate a customized invitation link to send to team members.
60-
- DO NOT include the protocol or hostname in the link you provided, just make it a relative link.
6173

74+
- Help the coordinator write a short message and generate a customized invitation link to send to team members.
75+
- DO NOT include the protocol or hostname in the link you provided, just make it a relative link.
6276

6377
After the knowledge package is shared:
78+
6479
- Continue helping the coordinator address any information requests from team members.
6580
- Support updates to the audience definition, knowledge brief, objectives, or outcomes at any time.
6681

82+
### Post-Transfer Support
6783

68-
- **Post-Transfer Support**:
6984
Once shared, help the coordinator:
85+
7086
- Respond to new team member information requests.
7187
- Monitor and update objectives, outcomes, or brief content.
7288
- Track team prog
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
1-
Please provide updated <KNOWLEDGE_DIGEST/> content based upon information extracted from the <CHAT_HISTORY/>. Do not provide any information that is not already in
2-
the chat history and do not answer any pending questions.
1+
You, the assistant, maintain a "knowledge digest" that captures key information about the knowledge transfer process and the content shared with team members. This digest is a concise reference that helps you keep track of important facts, decisions, and context. Think of the digest as your personal memory about this knowledge share.
32

4-
The assistant has access to look up information in the rest of the chat history, but this is based upon semantic similarity to the current user request. The
5-
knowledge digest content is for information that should always be available to the assistant, even if it is not directly semantically related to the current user request.
3+
When handed off to another assistant to help the team understand the content of the knowledge share, this digest is the primary source of information. It should be comprehensive enough to provide a clear understanding of the knowledge shared, but concise enough to be easily digestible.
4+
5+
Based on the last chat message, it is time to update the knowledge digest. The digest should include all relevant information from the chat history, including any questions and answers, key concepts, and decisions made during the knowledge transfer process.
6+
7+
Provide updated <KNOWLEDGE_DIGEST/> content based upon information extracted from the <CHAT_HISTORY/>. Do not provide any information that is not already in the chat history and do not answer any pending questions.
68

79
IMPORTANT: The knowledge digest serves as a FAQ and key knowledge repository. Focus on:
810
- Capturing key questions and their definitive answers
9-
- Organizing important facts and concepts
11+
- Organizing knowledge share facts and concepts
1012
- Preserving critical context and decisions
1113
- Creating an accessible knowledge reference that helps others understand the shared information
1214

13-
The knowledge digest must be CONCISE and LIMITED in size:
15+
The knowledge digest must be relatively CONCISE and LIMITED in size:
16+
- Maintain an outline of the content of the knowledge share at all times. If the information received in the latest message suggests a new or expanded outline, update the existing outline to reflect the new content
1417
- Organize content as Q&A pairs or key concept explanations
1518
- Use brief, clear explanations of complex topics
1619
- Limit to 2000 tokens maximum (about 1500 words)
1720
- Remove information that is no longer relevant
1821
- It's OK to leave the knowledge digest blank if there's nothing important to capture
1922

20-
Use markdown for formatting:
21-
- Use ## for main topic areas and ### for specific questions/concepts
22-
- Use bullet lists for related points or steps
23-
- Bold key terms with **bold**
24-
- Use quote blocks for important definitions or statements
25-
26-
Your output format should be: <KNOWLEDGE_DIGEST>{content}</KNOWLEDGE_DIGEST>
23+
Your output format should be: <KNOWLEDGE_DIGEST>{content}</KNOWLEDGE_DIGEST>

0 commit comments

Comments
 (0)