From 810ba1491af34f77f0f6db389260e2f466735d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Bo=C5=BCyk?= Date: Wed, 14 Feb 2024 19:19:54 +0100 Subject: [PATCH] aricles-summary --- prompts/ai-builder/article-summary/README.md | 47 +++++++++++++++++++ .../article-summary/assets/sample.json | 47 +++++++++++++++++++ .../article-summary/en-us/prompt.md | 1 + 3 files changed, 95 insertions(+) create mode 100644 prompts/ai-builder/article-summary/README.md create mode 100644 prompts/ai-builder/article-summary/assets/sample.json create mode 100644 prompts/ai-builder/article-summary/en-us/prompt.md diff --git a/prompts/ai-builder/article-summary/README.md b/prompts/ai-builder/article-summary/README.md new file mode 100644 index 0000000..69206b1 --- /dev/null +++ b/prompts/ai-builder/article-summary/README.md @@ -0,0 +1,47 @@ +# Article summary + +## Description + +This prompt helps with summarizing long articles in a few points, which significantly speed up process of understanding what is inside. It can be used for own purposes, results can be shared with other users or be part of app summarizing available articles (knowledge) in company. + +Prompt has two parameters: +- input_text - text which you want to summarize. +- number_of_bullet_points - declaration in how many bullet points text should be summarize. + +> TIP: If you want more precise summary, split your text into several parts and run this prompt one by one, on smaller portion of text and merge results after you process everything. + +Anatomy of the prompt: +- clear objective: summary, +- specific subject: article, +- specific length: number of bullet points, +- specific format: bullet points. + +All taken together give specific instruction. + +Recommended implementation approach: +1) Sign in to [Power Apps](https://make.powerapps.com/) or [Power Automate](https://make.powerautomate.com/). +2) On the left pane, select AI Prompt. +3) In hero section select Create text with GPT using a prompt. +4) In new pop-up window press Create custom prompt button in down right corner. +5) Type name of prompt and paste this prompt in prompt section: +``Please summarize this article [input_text] only in [number_of_bullet_points] bullet points. +`` +6) Replace square brackets with dynamic values (parameters). +7) Test your prompt by changing values in [input_text] and [number_of_bullet_points] parameters to check results. +8) Save and use it in [Power Apps](https://learn.microsoft.com/en-gb/ai-builder/use-a-custom-prompt-in-app) or [Power Automate](https://learn.microsoft.com/en-us/ai-builder/use-a-custom-prompt-in-flow). + +> Please remember to use AI responsibly. Generated text is not always correct and should be verified before sending to end user. Approval flow can be in place to reduce risk of unwanted content. + +### Supported Language(s) + +[English](./en-us/prompt.md) + +## Authors + +Solution|Author(s) +--------|--------- +Article summary | [Andrzej Bożyk](https://www.github.com/abozyk1990) ([@BozykAndrzej](https://twitter.com/BozykAndrzej)), Individual Contributor + +## Disclaimer + +**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** diff --git a/prompts/ai-builder/article-summary/assets/sample.json b/prompts/ai-builder/article-summary/assets/sample.json new file mode 100644 index 0000000..8e0f9e0 --- /dev/null +++ b/prompts/ai-builder/article-summary/assets/sample.json @@ -0,0 +1,47 @@ +[ + { + "$schema": "https://developer.microsoft.com/en-us/json-schemas/pnp/samples/v1.0/metadata-schema.json", + "name": "article-summary", + "version": "1.0.0.0", + "source": "pnp", + "creationDateTime": "2024-02-14T00:00:00.000Z", + "updateDateTime": "2024-02-14T00:00:00.000Z", + "title": "Article summary", + "shortDescription": "This prompt helps with summarizing long articles in a few points", + "longDescription": [ + "" + ], + "url": "https://github.com/pnp/powerplatform-prompts/main/prompts/article-summary/", + "products": [ + "AI Builder", + "Power Platform" + ], + "tags": [ + "TEXT GENERATOR" + ], + "categories": [ + "AI-BUILDER" + ], + "metadata": [ + { + "key": "POWERAPPS-CUSTOMCONNECTOR", + "value": "No" + } + ], + "thumbnails": [ + { + "type": "image", + "order": 100, + "url": "https://raw.githubusercontent.com/pnp/powerplatform-prompts/blob/main/templates/previewprompts.png", + "alt": "Preview GIF" + } + ], + "authors": [ + { + "gitHubAccount": "abozyk1990", + "name": "Andrzej Bożyk", + "pictureUrl": "https://github.com/abozyk1990.png" + } + ] + } +] diff --git a/prompts/ai-builder/article-summary/en-us/prompt.md b/prompts/ai-builder/article-summary/en-us/prompt.md new file mode 100644 index 0000000..c360a59 --- /dev/null +++ b/prompts/ai-builder/article-summary/en-us/prompt.md @@ -0,0 +1 @@ +Please summarize this article [input_text] only in [number_of_bullet_points] bullet points. \ No newline at end of file