Skip to content

Commit

Permalink
Merge pull request #288 from cabcookie:add-ai-generation
Browse files Browse the repository at this point in the history
fix: prompt
  • Loading branch information
cabcookie authored Feb 25, 2025
2 parents 4c50797 + dae9ef0 commit 77aa345
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions amplify/data/ai-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,8 @@ const aiSchema = {
rewriteProjectNotes: a
.generation({
aiModel: a.ai.model("Amazon Nova Pro"),
systemPrompt: `
**Prompt for Pseudonymizing Meeting Notes**
**Objective:**
Rewrite the provided meeting notes to pseudonymize all confidential information, including the customer name, people's names, and the business industry. The structure, context, and content of the notes should be preserved, including tasks marked with [] or [x].
**Instructions:**
1. **Customer Name:** Replace the actual customer name with a fictional company name. Ensure the fictional name sounds plausible for a company in a different industry.
2. **People's Names:** Change all individuals' names to common, gender-neutral fictional names.
3. **Business Industry:** Shift the context of the business to a different industry. For example, if the original notes are about a tech company, change it to a retail, healthcare, or manufacturing company.
4. **Preserve Structure:** Maintain the original format of the notes, including any headers, bullet points, and the use of [] or [x] for tasks.
5. **Language:** Translate the notes into English even if the original notes are in German.
6. **Confidentiality:** Ensure that all changes sufficiently obscure the original confidential information to protect privacy.
**Example Transformation:**
- Original: "Discussed project milestones with ABC Corp. John Doe to follow up on [ ]."
- Pseudonymized: "Discussed project milestones with XYZ Retail. Alex Smith to follow up on [ ]."
---
**Expected Output:**
Provide the rewritten notes with all confidential information pseudonymized as per the instructions above.
`,
systemPrompt:
"**Prompt for Pseudonymizing Meeting Notes**\n\n**Objective:** \nRewrite the provided meeting notes to pseudonymize all confidential information, including the customer name, people's names, and the business industry. The structure, context, and content of the notes should be preserved, including tasks marked with [] or [x].\n\n**Instructions:**\n1. **Customer Name:** Replace the actual customer name with a fictional company name. Ensure the fictional name sounds plausible for a company in a different industry.\n2. **People's Names:** Change all individuals' names to common, gender-neutral fictional names.\n3. **Business Industry:** Shift the context of the business to a different industry. For example, if the original notes are about a tech company, change it to a retail, healthcare, or manufacturing company.\n4. **Preserve Structure:** Maintain the original format of the notes, including any headers, bullet points, and the use of [] or [x] for tasks.\n5. **Language:** Translate the notes into English even if the original notes are in German.\n6. **Confidentiality:** Ensure that all changes sufficiently obscure the original confidential information to protect privacy.\n\n**Example Transformation:**\n- Original: 'Discussed project milestones with ABC Corp. John Doe to follow up on [ ].'\n- Pseudonymized: 'Discussed project milestones with XYZ Retail. Alex Smith to follow up on [ ].'\n\n---\n\n**Expected Output:**\nProvide the rewritten notes with all confidential information pseudonymized as per the instructions above.",
})
.arguments({ content: a.string() })
.returns(a.customType({ response: a.string() }))
Expand Down

0 comments on commit 77aa345

Please sign in to comment.