Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

feat: improved base prompt

Gabriel Steinfe73c215827c
diff --git a/src/services/BaseReasoningService.ts b/src/services/BaseReasoningService.ts
index a5d23edd7..2e29a1ba7 100644
--- a/src/services/BaseReasoningService.ts
+++ b/src/services/BaseReasoningService.ts
@@ -16,8 +16,8 @@ export abstract class BaseReasoningService {
config: ReasoningConfig = {}
): string {
// Default prompts
- const DEFAULT_AGENT_PROMPT = `You are {{agentName}}, a helpful AI assistant. Process and improve the following text, removing any reference to your name from the output:\n\n{{text}}\n\nImproved text:`;
- const DEFAULT_REGULAR_PROMPT = `Process and improve the following text:\n\n{{text}}\n\nImproved text:`;
+ const DEFAULT_AGENT_PROMPT = `You are {{agentName}}, a helpful AI assistant. Clean up the following dictated text by fixing grammar, punctuation, and formatting. Remove any reference to your name. Output ONLY the cleaned text without explanations or options:\n\n{{text}}`;
+ const DEFAULT_REGULAR_PROMPT = `Clean up the following dictated text by fixing grammar, punctuation, and formatting. Output ONLY the cleaned text without any explanations, options, or commentary:\n\n{{text}}`;
// Get custom prompts from localStorage if available
let agentPrompt = DEFAULT_AGENT_PROMPT;
diff --git a/src/services/ReasoningService.ts b/src/services/ReasoningService.ts
index 0f32e8956..8f2eedbaf 100644
--- a/src/services/ReasoningService.ts
+++ b/src/services/ReasoningService.ts
@@ -169,7 +169,7 @@ class ReasoningService extends BaseReasoningService {
this.isProcessing = true;
try {
- const systemPrompt = "You are a helpful assistant that processes text.";
+ const systemPrompt = "You are a dictation assistant. Clean up text by fixing grammar and punctuation. Output ONLY the cleaned text without any explanations, options, or commentary.";
const userPrompt = this.getReasoningPrompt(text, agentName, config);
const requestBody = {
@@ -256,7 +256,7 @@ class ReasoningService extends BaseReasoningService {
this.isProcessing = true;
try {
- const systemPrompt = "You are a helpful assistant that processes text.";
+ const systemPrompt = "You are a dictation assistant. Clean up text by fixing grammar and punctuation. Output ONLY the cleaned text without any explanations, options, or commentary.";
const userPrompt = this.getReasoningPrompt(text, agentName, config);
const requestBody = {
@@ -391,7 +391,7 @@ class ReasoningService extends BaseReasoningService {
this.isProcessing = true;
try {
- const systemPrompt = "You are a helpful assistant that processes text.";
+ const systemPrompt = "You are a dictation assistant. Clean up text by fixing grammar and punctuation. Output ONLY the cleaned text without any explanations, options, or commentary.";
const userPrompt = this.getReasoningPrompt(text, agentName, config);
const requestBody = {