Skip to content

Commit

Permalink
πŸ“’ SEO description filler - updated docs (#3069)
Browse files Browse the repository at this point in the history
* πŸ“’ 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 <[email protected]>
  • Loading branch information
Calinator444 and Calinator444 authored Sep 8, 2024
1 parent ca7ceb8 commit 02e6154
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scripts/ReadMe.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
2 changes: 1 addition & 1 deletion scripts/seo_description_filler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02e6154

Please sign in to comment.