Skip to content

Commit

Permalink
Fix brevity
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu committed Mar 7, 2024
1 parent b9ec45a commit 30a5f15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion front/components/assistant_builder/InstructionScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ const STATIC_SUGGESTIONS = {
"Give context on how you'd like the assistant to act, e.g. 'Act like a senior analyst'.",
"Add instructions on the format of the answer: tone of voice, answer in bullet points, in code blocks, etc...",
"Try to be specific: tailor prompts with precise language to avoid ambiguity.",
"Brievity prompt useful in productivity setups: 'When replying to the user, go straight to the point. Answer with precision and brieviety.'",
"Brevity prompt useful in productivity setups: 'When replying to the user, go straight to the point. Answer with precision and brevity.'",
],
};

Expand Down
18 changes: 9 additions & 9 deletions front/lib/api/assistant/global_agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ async function _getGeminiProGlobalAgent({
};
}

// Meta prompt used to incentivize the model to answer with brieviety.
const BRIEVETY_PROMPT =
"When replying to the user, go straight to the point. Answer with precision and brieviety.";
// Meta prompt used to incentivize the model to answer with brevity.
const BREVITY_PROMPT =
"When replying to the user, go straight to the point. Answer with precision and brevity.";

async function _getManagedDataSourceAgent(
auth: Authenticator,
Expand Down Expand Up @@ -518,7 +518,7 @@ async function _getGoogleDriveGlobalAgent(
pictureUrl: "https://dust.tt/static/systemavatar/drive_avatar_full.png",
prompt:
"Assist the user based on the retrieved data from their Google Drives." +
`\n${BRIEVETY_PROMPT}`,
`\n${BREVITY_PROMPT}`,
dataSources,
});
}
Expand All @@ -542,7 +542,7 @@ async function _getSlackGlobalAgent(
pictureUrl: "https://dust.tt/static/systemavatar/slack_avatar_full.png",
prompt:
"Assist the user based on the retrieved data from their Slack channels." +
`\n${BRIEVETY_PROMPT}`,
`\n${BREVITY_PROMPT}`,
dataSources,
});
}
Expand All @@ -567,7 +567,7 @@ async function _getGithubGlobalAgent(
pictureUrl: "https://dust.tt/static/systemavatar/github_avatar_full.png",
prompt:
"Assist the user based on the retrieved data from their Github Issues and Discussions." +
`\n${BRIEVETY_PROMPT}`,
`\n${BREVITY_PROMPT}`,
dataSources,
});
}
Expand All @@ -591,7 +591,7 @@ async function _getNotionGlobalAgent(
pictureUrl: "https://dust.tt/static/systemavatar/notion_avatar_full.png",
prompt:
"Assist the user based on the retrieved data from their Notion Spaces." +
`\n${BRIEVETY_PROMPT}`,
`\n${BREVITY_PROMPT}`,
dataSources,
});
}
Expand All @@ -615,7 +615,7 @@ async function _getIntercomGlobalAgent(
pictureUrl: "https://dust.tt/static/systemavatar/intercom_avatar_full.png",
prompt:
"Assist the user based on the retrieved data from their Intercom Workspace." +
`\n${BRIEVETY_PROMPT}`,
`\n${BREVITY_PROMPT}`,
dataSources,
});
}
Expand Down Expand Up @@ -701,7 +701,7 @@ async function _getDustGlobalAgent(
id: -1,
prompt:
"Assist the user based on the retrieved data from their workspace." +
`\n${BRIEVETY_PROMPT}`,
`\n${BREVITY_PROMPT}`,
model: !auth.isUpgraded()
? {
providerId: GPT_3_5_TURBO_MODEL_CONFIG.providerId,
Expand Down

0 comments on commit 30a5f15

Please sign in to comment.