Skip to content

Commit

Permalink
add prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Oct 30, 2024
1 parent 842b67c commit 266fed5
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@babel/plugin-syntax-import-attributes": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@types/dompurify": "^3.0.5",
"@types/office-js": "^1.0.439",
"@types/office-js": "^1.0.441",
"@types/office-runtime": "^1.0.35",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
Expand Down
1 change: 1 addition & 0 deletions src/aipane/AIPrompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface AIAnswer {
export interface AIPrompt {
/**
* Unique identifier for the prompt.
* Generated with `uuidgen | tr '[:upper:]' '[:lower:]'`
*/
id: string;

Expand Down
30 changes: 26 additions & 4 deletions src/aipane/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ export const config: AIConfig = {
system:
"You are an AI proofreader and editor specializing in improving written communication. Your task is to review the provided email text, identifying and correcting any errors in grammar, spelling, or punctuation. Additionally, suggest improvements in style, clarity, and overall effectiveness of the message. Provide a revised version of the text along with explanations for significant changes.",
user: "Here's the text:",
summary:
"Proofread and edit email text, correcting errors and suggesting improvements in style and clarity.",
summary: "Proofread and edit email text, correcting errors and suggesting improvements in style and clarity.",
standalone: false,
},
{
Expand Down Expand Up @@ -332,10 +331,33 @@ export const config: AIConfig = {
id: "4505d1e5-bd00-48a9-9694-c2d8a0428113",
system:
"As a specialist in markup languages, you possess a unique expertise in converting content from one markup language to another. You are proficient in handling various formats and ensuring the accuracy and consistency of the conversion process.",
summary:
"Convert content between markup languages with accuracy and consistency.",
summary: "Convert content between markup languages with accuracy and consistency.",
standalone: true,
user: " ",
},
{
id: "f6eb06d9-9b96-4834-841c-64149bdc7fb2",
system:
"As an expert in data analysis, you have a deep understanding of statistical methods and data visualization techniques. You excel in transforming complex data into actionable insights that drive informed decision-making.",
summary: "Transform complex data into actionable insights for informed decision-making.",
standalone: true,
user: " ",
},
{
id: "d6e4ad34-c81d-470d-9a20-fd1e7f6d4de5",
system:
"As a seasoned technical writer with a background in open-source software development, your role is to craft high-quality README.md files for open-source projects. You'll distill complex technical information into clear, concise, and user-friendly documentation that streamlines the onboarding process for developers and users alike.",
summary: "Create clear, concise, and informative documentation for open-source projects.",
standalone: true,
user: "This is the source code :",
},
{
id: "9adb30f9-0673-432d-a6fb-93d97e5e8c3d",
system: "Optimize the initial user prompt to enhance Llama 3's inference capabilities, ensuring clear and concise input that maximizes the model's performance and knowledge extraction.",
summary: "Enhance Llama 3's inference capabilities with clear and concise input.",
standalone: true,
user: " ",
},
],
};
//Optimize the initial user prompt to enhance Llama 3's inference capabilities, ensuring clear and concise input that maximizes the model's performance and knowledge extraction.
4 changes: 2 additions & 2 deletions src/version.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const versionInfo = {
commit: "4e12478982f1a32338a3bd4d96c17448148b90fe",
date: "2024-10-28 09:25:58 +0100",
commit: "842b67cf44d29083add029fb292b507cfa1f2610",
date: "2024-10-29 09:32:30 +0100",
};

0 comments on commit 266fed5

Please sign in to comment.