From 02e6154446086b0b9a90485ee89228908292d030 Mon Sep 17 00:00:00 2001 From: "Caleb Williams [SSW]" <65635198+Calinator444@users.noreply.github.com> Date: Mon, 9 Sep 2024 07:59:47 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=92=20SEO=20description=20filler=20-?= =?UTF-8?q?=20updated=20docs=20(#3069)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 📒 Added comment to SEO description filler explaining temperature prop * Update ReadMe.md * Removed unnecessary spacing in readme * ✏️ Fixed typo in readme --------- Co-authored-by: Calinator444 --- scripts/ReadMe.md | 4 ++++ scripts/seo_description_filler.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ReadMe.md b/scripts/ReadMe.md index bfaee3df43..45706c5375 100644 --- a/scripts/ReadMe.md +++ b/scripts/ReadMe.md @@ -1,5 +1,9 @@ # Meta Description Generator +## Explanation Video + +[![Done video icon AI generated meta descriptions](https://github.com/user-attachments/assets/884e6258-a0cc-404e-be90-9cd993926bdb)](https://youtu.be/hHLEO-L6JbM) + ## Description Similar to [rules](https://github.com/SSWConsulting/SSW.Rules.Content/blob/main/scripts/generateSeoDescriptions/README.md) we have a generator for our main website. Their implementation uses Llama 3 whereas ours uses GPT 4 for the time being. This means that the script will cost a small amount of money to run. $0.06 per page (assuming the the api call doesn't fail). diff --git a/scripts/seo_description_filler.py b/scripts/seo_description_filler.py index b062455755..b3a00df0b4 100644 --- a/scripts/seo_description_filler.py +++ b/scripts/seo_description_filler.py @@ -52,7 +52,7 @@ def query_meta_description_gpt(query: str) -> str: } ], model="gpt-4", - temperature=0.2, + temperature=0.2, #A lower temperature indicates a more concise but less creative response ) description = chat_completion.choices[0].message.content