From 266fed5e64f0f31d6565bb96ab3be3c52d2384b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A6Ltorio?= Date: Wed, 30 Oct 2024 18:30:13 +0100 Subject: [PATCH] add prompts --- package-lock.json | 8 ++++---- package.json | 2 +- src/aipane/AIPrompt.ts | 1 + src/aipane/config.ts | 30 ++++++++++++++++++++++++++---- src/version.ts | 4 ++-- 5 files changed, 34 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 21e4804..245ce12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,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", @@ -5585,9 +5585,9 @@ } }, "node_modules/@types/office-js": { - "version": "1.0.439", - "resolved": "https://registry.npmjs.org/@types/office-js/-/office-js-1.0.439.tgz", - "integrity": "sha512-ucYJmTt8PTq92QP1qE+sBU2LY4sfP2c7gW1A9cPOtOjNy0ab4WxL/tkJoa2CkgDwl5mRKxI7KOpR3qSSClOQFA==", + "version": "1.0.441", + "resolved": "https://registry.npmjs.org/@types/office-js/-/office-js-1.0.441.tgz", + "integrity": "sha512-kj6PESQ05qWQv97EUk97mfc1/qhNqS33W/4pe2LoV1aYc/vEmID+1p11ORELrNf1qIkwNntUaRjjIaB92c0UnA==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index 4b8fddf..2bfc5c7 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/aipane/AIPrompt.ts b/src/aipane/AIPrompt.ts index 0272263..981956a 100644 --- a/src/aipane/AIPrompt.ts +++ b/src/aipane/AIPrompt.ts @@ -33,6 +33,7 @@ export interface AIAnswer { export interface AIPrompt { /** * Unique identifier for the prompt. + * Generated with `uuidgen | tr '[:upper:]' '[:lower:]'` */ id: string; diff --git a/src/aipane/config.ts b/src/aipane/config.ts index 3062913..1eba34d 100644 --- a/src/aipane/config.ts +++ b/src/aipane/config.ts @@ -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, }, { @@ -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. \ No newline at end of file diff --git a/src/version.ts b/src/version.ts index a952e3a..d435e46 100644 --- a/src/version.ts +++ b/src/version.ts @@ -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", };