You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newUserChatMessage($@"Please review the following paragraph extracted from the Document: ""{CommonUtils.SubstringTokens(c.Range.Text,(int)(ThisAddIn.ContextLength*0.2))}"""),
38
+
new UserChatMessage($@"Based on the previous AI comments,suggestadditional specific improvements to the paragraph,focusingon clarity,coherence,structure,grammar,andoverall effectiveness. Ensure that your suggestions are detailed and aimed at improving the paragraph within the context of the entire Document.")
Copy file name to clipboardExpand all lines: Forge.cs
+48-61Lines changed: 48 additions & 61 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
usingSystem.ClientModel;
3
3
usingSystem.Collections.Generic;
4
4
usingSystem.Linq;
5
+
usingSystem.Reflection;
5
6
usingSystem.Text;
6
7
usingSystem.Threading;
7
8
usingSystem.Threading.Tasks;
@@ -17,7 +18,7 @@ namespace TextForge
17
18
publicpartialclassForge
18
19
{
19
20
// Public
20
-
publicstaticreadonlySystemChatMessageSystemPrompt=newSystemChatMessage("You are an expert writing assistant and editor, specialized in enhancing the clarity, coherence, and impact of text within a document. You analyze text critically and provide constructive feedback to improve the overall quality.");
21
+
publicstaticreadonlySystemChatMessageCommentSystemPrompt=newSystemChatMessage("You are an expert writing assistant and editor, specialized in enhancing the clarity, coherence, and impact of text within a document. You analyze text critically and provide constructive feedback to improve the overall quality.");
conststringprompt="As an expert writing assistant, suggest specific improvements to the paragraph, focusing on clarity, coherence, structure, grammar, and overall effectiveness. Ensure that your suggestions are detailed and aimed at improving the paragraph within the context of the entire Document.";
UserChatMessagecommentPrompt=newUserChatMessage($@"Please review the following paragraph extracted from the Document: ""{RAGControl.SubstringTokens(p.Text,(int)(ThisAddIn.ContextLength*0.2))}""{Environment.NewLine}{prompt}");
newUserChatMessage($@"Please review the following paragraph extracted from the Document: ""{CommonUtils.SubstringTokens(p.Text,(int)(ThisAddIn.ContextLength*0.2))}"""),
0 commit comments