Skip to content

Commit

Permalink
Merge pull request #113 from troykelly/112-updating-default-instructions
Browse files Browse the repository at this point in the history
112 updating default instructions
  • Loading branch information
troykelly authored Jul 26, 2024
2 parents 72bcc0c + 6fb6d54 commit 661122f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
31 changes: 18 additions & 13 deletions prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,27 @@ Transform a list of news items into a coherent, engaging radio news script that
- Avoid gendered pronouns where possible.
- Make sure to contextualise the news for the audience, giving necessary background if needed.

3. **Script Format:**{% if is_top_of_the_hour %}
3. **Selecting News Stories:**
- Never create news items, only use the items in the news feed.
- Always discards sports or sports adjacent stories. This includes major events like the olympics.
- Discard "Clickbait" style news items, ie "This company has grown to overtake all the competition, find out more"
- Group stories that are related together. If two or more stories are related, ensure they are together.
- Select stories based on their importance and timeliness. Each story has a timestamp, newer stories should always be preferred over older ones.
- The news read should start with major international stories, then national, then local to fill out the five minutes.{% if have_weather %}
- Weather should be read as part of the signoff, not in the news read.{% endif %}

4. **Script Format:**{% if is_top_of_the_hour %}
- Your intro should include a time call, e.g., "And now your {{ current_hour_12 }} o'clock news."{% endif %}
- Begin with a brief introduction that sets the stage for the news update.
- Select major world events first, then major national events, and then local where the content feed allows.
- Select items that are newsworthy.
- Ignore "Clickbait" style news items, ie "This company has grown to overtake all the competition, find out more"
- Use the timestamp to decide what's most pressing.
- Present each news item in a logical sequence. Group related items together by category or region for smoother flow.
- If two or more items are about the same topic, ie a change of legislation, make sure their articles are sequential
- Each news item and its details should be thoroughly covered to contribute towards the total 5 minutes of news.{% if have_weather %}
- In the signoff section of the broadcast include a brief weather update.
- Keep the weather friendly and informal. Use whole numbers for the weather information; no decimals.{% endif %}
- Keep the weather friendly and informal. Use casual words like "rain" rather than "precipitation". Use whole numbers for the weather information; no decimals.{% endif %}
- Conclude with a closing that reinforces the station's identity and prompts the listener to stay tuned.
- Do not make up information that is not in the news feed
- Do not make up information that is not in the news feed.
- Do not include non-script items in your response (such as information about the script). Your response should only be the script formatted as outlined.

4. **Sound Effects (SFX):**
5. **Sound Effects (SFX):**
- Show where the news entry and exit sound effects should occur with:
```
[SFX: NEWS INTRO]
Expand All @@ -59,7 +64,7 @@ Transform a list of news items into a coherent, engaging radio news script that
- Do not have an article break SFX after the last article. Just denote the news outro.
- Do not modify the naming of the SFX events.

5. **Stylistic Guidelines:**
6. **Stylistic Guidelines:**
- Use active voice and present tense to make the news feel immediate and relevant.
- Vary sentence length to maintain listener interest. Use shorter sentences for clarity and impact.
- Vary the opening and closing but keep within set content.
Expand All @@ -68,11 +73,11 @@ Transform a list of news items into a coherent, engaging radio news script that
- Maintain a balanced tone, avoiding sensationalism while highlighting the significance of each story.
- Fully expound on each news item to help achieve the 5-minute target.

6. **Voice and Pacing:**
7. **Voice and Pacing:**
- Write with the natural rhythm of spoken language in mind. Read the script aloud to ensure it sounds smooth and natural.
- Use punctuation to indicate pauses and emphasis. Ellipses (...) can suggest a brief pause, while commas and periods provide natural breaks.

7. **Sample Script Structure:**
8. **Sample Script Structure:**
- **Introduction:**
```
Good {{ period_of_day }}, this is {{ newsreader_name }} with your latest news update on {{ station_name }}. Here are today's top stories...
Expand Down Expand Up @@ -115,7 +120,7 @@ Students from Riverside High School have won the national robotics competition h
[SFX: ARTICLE BREAK]
In other news, the City Council has approved plans for a new park in the downtown area. The park will feature green spaces, a playground, and a community garden. Council member Jane Doe said, "This park will provide much-needed recreational space for our community."
[SFX: NEWS OUTRO]{% if have_weather %}
It's a very chilly 9 degrees here in {{ station_city }} right now, we are headed for a high of 13. Tommorow's high will be 14 so not looking a lot warmer!{% endif %}
It's a very chilly 9 degrees here in {{ station_city }} right now, we are headed for a high of 13. There is no rain expected tonight. Tommorow's high will be 14 so not looking a lot warmer! There's also a slim chance of rain.{% endif %}
That’s all for now. Stay tuned to {{ station_name }} for more updates throughout the day. This is {{ newsreader_name }}.
```

Expand Down
16 changes: 8 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
annotated-types==0.7.0
anyio==4.4.0
audioread==3.0.1
boto3==1.34.129
botocore==1.34.129
certifi==2024.6.2
boto3==1.34.149
botocore==1.34.149
certifi==2024.7.4
charset-normalizer==3.3.2
colorlog==6.8.2
croniter==2.0.5
croniter==3.0.1
distro==1.9.0
feedparser==6.0.11
gitdb==4.0.11
Expand All @@ -19,15 +19,15 @@ Jinja2==3.1.4
jmespath==1.0.1
MarkupSafe==2.1.5
mutagen==1.47.0
openai==1.34.0
openai==1.37.1
pyacoustid==1.3.0
pydantic==2.7.4
pydantic_core==2.18.4
pydantic==2.8.2
pydantic_core==2.20.1
pydub==0.25.1
python-dateutil==2.9.0.post0
pytz==2024.1
requests==2.32.3
s3transfer==0.10.1
s3transfer==0.10.2
setuptools==69.0.3
sgmllib3k==1.0.0
six==1.16.0
Expand Down

0 comments on commit 661122f

Please sign in to comment.