Connect with us

Technology

Why prompt engineering is one of the most valuable skills today

Published

on

Why prompt engineering is one of the most valuable skills today

Join our daily and weekly newsletters for the latest updates and exclusive content on industry-leading AI coverage. Learn More


In a world that is rapidly embracing large language models (LLMs), prompt engineering has emerged as a new skill to unlocking their full potential. Think of it as the language to speak with these intelligent AI systems, enabling us to tap into their vast capabilities and reshape how we create, work, solve problems and do much more. It can allow anyone — including your grandma — to program a complex multi-billion parameter AI system in the cloud.

LLMs are fundamentally built on deep learning algorithms and architectures. They are trained on massive datasets of text. Like a human who has devoured countless books, LLMs learn patterns, grammar, relationships and reasoning abilities from data. Internal settings can be tuned to change how the model processes information and adjusted to improve accuracy. When given a prompt at the inferencing stage, the LLMs use their learned knowledge and parameters to generate the most probable and contextually relevant output. It is because of these prompts that the LLMs can generate human-quality text, hold conversations, translate languages, write different kinds of creative content and answer questions in an informative way.

Many free (open source) LLMs and paid (closed source) hosted LLM services are available today. LLMs are transforming every industry as well as every aspect of our lives. Here’s how:

Advertisement
  • Customer service: Powerful AI chatbots provide instant support and answer customer queries.
  • Education: Personalized learning experiences and AI tutors are available.
  • Healthcare: LLMs are being used to analyze medical issues, accelerate drug discovery and personalize treatment plans.
  • Marketing and content creation: LLMs can generate engaging marketing copy, website content and scripts for videos.
  • Software development: LLMs are assisting developers with code generation, debugging and documentation.

Important prompt types and techniques

Prompts act as a guiding light for LLMs. A well-crafted prompt can significantly impact the quality and relevance of the output of LLMs. Imagine asking a personal assistant to “make a reservation for dinner.” Depending on how much information you provide, such as preferred cuisine or time, you will get a more accurate result. Prompt engineering is the art and science of crafting prompts to elicit desired outputs from AI systems. It involves designing and refining prompts to generate accurate, relevant and creative outputs that align with the user’s intent.

Let us delve deeper by looking at prompt engineering techniques that can help a user guide LLMs toward desired outcomes.

From practice, prompts could be broadly classified as falling into one of the following categories:

  • Direct prompts: These are small direct instructions, such as “Translate ‘hello’ into Spanish.”
  • Contextual prompts: A bit more context is added to small direct instructions. Such as, “I am writing a blog post about the benefits of AI. Write a catchy title.”
  • Instruction-based prompts: These are elaborate instructions with specific details of what to do and what not to do. For instance, “Write a short story about a talking cat. The cat should be grumpy and sarcastic.”
  • Examples-based prompts: Prompters might say, “Here’s an example of a haiku: An old silent pond / A frog jumps into the pond— / Splash! Silence again. Now, write your own haiku.”

The following are important techniques that have been proven to be very effective in prompt engineering:

  • Iterative refinement: This involves continuously refining prompts based on the AI’s responses. It can lead to better results. Example: You might start with “Write a poem about a sunset.” After seeing the output, refine it to “Write a melancholic poem about a sunset at the beach.”
  • Chain of thought prompting: Encouraging step-by-step reasoning can help solve complex problems. Example: Instead of just a complex prompt like “A farmer has 14 tractors, eight cows and 10 chickens. If he sells half his birds and buys 3 more cows, how many animals would give him milk?”, adding “Think step by step” or “Explain your reasoning” is likely to give much better results and even clearly point out any intermediate errors that the model could have made.
  • Role-playing: This means assigning a role or persona to the AI before handing it the task. Example: “You are a museum guide. Explain the painting Vista from a Grotto by David Teniers the Younger.”
  • Multi-turn prompting: This involves breaking down a complex task into a series of prompts. This technique involves using a series of prompts to guide the AI to the required answer. Example: “Create a detailed outline,” followed by “Use the outline to expand each point into a paragraph,” followed by “The 2nd paragraph is missing X. Rewrite it to focus on…” and then finally completing the piece.

Challenges and opportunities in prompt engineering

There are some challenges and opportunities in prompt engineering. Although they have improved exponentially, LLMs may still struggle with abstract concepts, humor, complex reasoning and other tasks, which often requires carefully crafted prompts. AI models also can reflect biases present in their training data.

Prompt engineers need to understand this and address and mitigate potential biases in their final solutions. Additionally, different models may naturally interpret and respond to prompts in different ways, which poses challenges for generalization across models. Most LLM creators usually have good documentation along with prompt templates and other guidelines that work well for that model. It is always useful to familiarize yourself to efficiently use models. Finally, although inferencing speeds are continuously improving, effective prompting also presents an opportunity to program LLMs precisely at inference time to save compute and energy resources.

As AI becomes increasingly intertwined with our lives, prompt engineering is playing a crucial role in shaping how we interact with and benefit from its power. When done right, it holds immense potential to unleash possibilities that we have not imagined yet.

Advertisement

Deven Panchal is with AT&T Labs.  

DataDecisionMakers

Welcome to the VentureBeat community!

DataDecisionMakers is where experts, including the technical people doing data work, can share data-related insights and innovation.

Advertisement

If you want to read about cutting-edge ideas and up-to-date information, best practices, and the future of data and data tech, join us at DataDecisionMakers.

You might even consider contributing an article of your own!

Read More From DataDecisionMakers


Source link
Advertisement
Continue Reading
Advertisement
Click to comment

You must be logged in to post a comment Login

Leave a Reply

Technology

Early Prime Day deals include this Anker 10K magnetic power bank for only $40

Published

on

Sarah Fielding

I’ve been a big fan of Anker ever since I picked up the Nano Portable Charger a while back. And now, again, I’m tempted to pick up another of the brand’s power banks thanks to early Prime Day deals. There’s currently a 50 percent discount on an older version of our top pick for iPhones in our best power banks guide. The Anker 633 magnetic battery pack is currently on sale for $40, down from $80 — a new all-time low price.

The MagGo charger has a 10,000mAh battery and offers 20W of high-speed power with a USB-C charging cable (which it includes). The power bank is also a great wireless option, with magnets grabbing hold of your phone and a kickstand keeping it elevated during charging. When you’re on the go or storing it, that kickstand folds right in to create a solid, smooth block.

Anker

On a related note, Anker has just recalled some of its products from January 3 to September 17, 2024. Anker found that some of the lithium-ion batteries it used have a manufacturing defect that can present a fire risk. This power bank on sale is not impacted, but two different magnetic power banks are. You can see exactly which items and specific serial numbers have been recalled here, and thankfully, Anker already scrubbed those listings from Amazon so no one can buy them anymore.

Follow @EngadgetDeals on Twitter for the latest tech deals and buying advice in the lead up to October Prime Day 2024.

Advertisement

Source link

Continue Reading

Technology

Riot Games taps Linkin Park for 2024 League of Legends World Championship anthem

Published

on

Riot Games taps Linkin Park for 2024 League of Legends World Championship anthem

Riot Games announced global music superstars Linkin Park will sing an anthem at the next big League of Legends event.

The group will perform the 2024 League of Legends World Championship anthem, Heavy Is The Crown. This kind of marriage signals the bond between entertainment and games, where one superstar can join with another and drum up far more interest together. In this case, it’s music meets games, and it shows that Riot Games is always prepared to tap top flight entertainers to introduce its esports event.

Fans can watch the music video for “Heavy Is The Crown” on YouTube or stream the track anywhere you can listen to music on Tuesday, September 24 at 8 a.m. Pacific time. Tune in here for the premiere.

Heavy Is The Crown follows Linkin Park’s No. 1 single The Emptiness Machine, which marked the band’s first brand new music in seven years. The song exploded to the top of the charts, tallying over 80 million streams as the band launched straight into a six-date arena tour. Their 8th studio album From Zero releases November 15 on Warner Records.

Advertisement

Join us for GamesBeat Next!

GamesBeat Next is connecting the next generation of video game leaders. And you can join us, coming up October 28th and 29th in San Francisco! Take advantage of our buy one, get one free pass offer. Sale ends this Friday, August 16th. Join us by registering here.


Heavy Is The Crown is a monumental collaboration for the band with the gaming industry. The League of Legends World Championship, known as Worlds, is the best-known LoL event, drawing more than six million concurrent viewers last year.

Flames and searchlights at the League of Legends Worlds Championship.
Flames and searchlights at the League of Legends Worlds Championship.

“It’s been an amazing experience partnering with Riot to bring this anthem to the global League of Legends community,” said Mike Shinoda of Linkin Park, in a statement. “The song is a real highlight of this new era for us, harnessing our signature sound and infusing it with fresh energy. We’re so excited for players and fans to experience this!”

“The Worlds anthem is the music moment that League players look forward to the most each year, and it has become a highly coveted fixture in music across the world, “ said Maria Egan, global head of music at Riot Games, in a statement. “As the band embarks on this exciting new chapter, we’re honored to partner with them for the 2024 anthem. The lyrics for ‘Heavy Is The Crown’ perfectly capture the narrative for this year’s Worlds and they are a powerful companion to the themes of our music video.”

Advertisement

Billboard calls Linkin Park’s return “triumphant” as they join the ranks of previous Worlds Anthem performers including global superstars Imagine Dragons, Lil Nas X, Zedd, NewJeans and more. These anthems have collectively amassed over 10 billion streams across DSPs.

Most recently, NewJeans’ 2023 Worlds anthem Gods broke the record for the biggest debut in anthem history. It has amassed nearly 270 million global streams across DSPs and its music video has almost 100 million views on the League of Legends YouTube channel.


Source link
Continue Reading

Technology

NYT Strands today — hints, answers and spangram for Monday, September 23 (game #204)

Published

on

NYT Strands homescreen on a mobile phone screen, on a light blue background

Strands is the NYT’s latest word game after the likes of Wordle, Spelling Bee and Connections – and it’s great fun. It can be difficult, though, so read on for my Strands hints.

Want more word-based fun? Then check out my Wordle today, NYT Connections today and Quordle today pages for hints and answers for those games.

Source link

Continue Reading

Technology

A simple driving trick could make a big dent in cars’ carbon emissions

Published

on

AC4ABH aerial view above four way urban intersection San Francisco, California
AC4ABH aerial view above four way urban intersection San Francisco, California

Researchers modelled nearly 1 million driving scenarios at US intersections

Aerial Archives / Alamy Stock Photo

You may be guilty of accelerating up to intersections and slamming the brakes at a red light – this common habit can generate significant carbon emissions each year. But programming modern cars to glide up to intersections instead could significantly reduce annual emissions.

An AI-powered model suggests that if every single gas or diesel-powered vehicle in the US consistently followed certain eco-driving practices, they could cut the country’s yearly carbon emissions by between 62 million and 123 million tonnes.

Advertisement

Source link

Continue Reading

Technology

Elon Musk shares new target date for Starship voyage to Mars

Published

on

Elon Musk shares new target date for Starship voyage to Mars

SpaceX is aiming to launch “about five” uncrewed Starship voyages to Mars in two years’ time, according to a post on X (formerly Twitter) by CEO Elon Musk on Sunday.

Musk said that if the uncrewed missions land safely on the red planet, then the first crewed mission could take place as early as 2028, but he added that “if we encounter challenges, then the crewed missions will be postponed another two years” due to the alignment of Earth and Mars that makes such journeys possible. He continued: “We want to enable anyone who wants to be a space traveler to go to Mars! That means you or your family or friends — anyone who dreams of great adventure. Eventually, there will be thousands of Starships going to Mars and it will a glorious sight to see! Can you imagine? Wow.”

It’s worth noting that Musk’s space-based timelines often slip. In 2016, he said SpaceX was planning to send a rocket to Mars “as soon as 2018,” and in 2022, he said the Starship could make its first flight to the distant planet this year.

His latest comments on his long-held dream to eventually colonize Mars come as SpaceX awaits permission from the Federal Aviation Administration (FAA) to proceed with the fifth orbital test flight of the Starship, which comprises the first-stage Super Heavy rocket and upper-stage Starship spacecraft.

The FAA is currently investigating the environmental impact of the Starship flights, along with the safety measures being put in place for the fifth one, and SpaceX can’t fly until that investigation is complete. Much to SpaceX’s annoyance, the FAA said recently said that it would need until at least the end of November to finish its work.

Advertisement

Responding to recent criticism by SpaceX over the time it’s taking, the FAA explained that SpaceX’s current license authorizing the Starship’s fourth test flight “also allows for multiple flights of the same vehicle configuration and mission profile,” but said that “SpaceX chose to modify both for its proposed Starship Flight 5 launch, which triggered a more in-depth review.”

It added that Musk’s spaceflight company also submitted new information in August “detailing how the environmental impact of Flight 5 will cover a larger area than previously reviewed [and that] this requires the FAA to consult with other agencies,” meaning that more time is needed to complete its investigation than originally expected.

Musk said in Sunday’s social media post that he wants to make human existence multiplanetary “before something happens on Earth to prevent that, for example nuclear war, a super-virus or population collapse that weakens civilization to the point where it loses the ability to send supply ships to Mars.” He blamed what he sees as overregulation by the government for slowing down the Starship testing program, as well as other large engineering projects.

While many may sympathize with Musk’s frustration at not being able to proceed more quickly with the Starship test program, others insist that such regulations are essential to ensure public safety, maintain industry standards, reduce the risk of catastrophic events, and protect ecosystems.

Advertisement






Source link

Continue Reading

Technology

YouTube Premium price increases yet again in several countries

Published

on

Featured image for YouTube Premium price increases yet again in several countries

YouTube Premium is a paid subscription service that comes with several perks including YouTube Music. With YouTube Premium, you can enjoy ad-free video streaming on the platform, enjoy background/offline playback, and YouTube Originals. While these are all good features, Google has been increasing the price of YouTube Premium in different countries occasionally.

YouTube Premium price increased yet again in several countries with most from Europe

It seems the price of YouTube Premium is increasing yet again, leaving paid customers affected from at least sixteen countries. The latest increase in the price of YouTube Premium mostly affects users based in Europe. Notably, both Individual and Family plans have seen significant price hikes.

According to a Reddit post, some of the prices have spiked by over 40%. Per the thread, Individual plans in countries like Ireland, Netherlands, Italy, and Belgium have increased by €2 and now cost €13.99. Whereas, the Family plan which previously cost €17.99 in these regions is seeing an increase of €8. Additionally, you can check out this Reddit post to get an idea of YouTube Premium’s revised price in other countries.

If you are living in any of the affected countries, Google may have sent you an email to communicate the price hike. The company reportedly says that this decision will allow it “continue to deliver great service and features” and “support the creators and artists you watch on YouTube.” Last summer, users in the US saw a similar email when Google increased the price of YouTube Premium in the region.

Advertisement

Users who signed up through Apple are seeing an even higher price increase

What’s more surprising is that users who have signed up for YouTube Premium through Apple on its streaming devices are seeing an even higher increase in price. One Redditor from Sweden claimed to have seen a 60% price increase. However, it appears to be a tax for paying through Apple rather than Google.

Well, the sad part is that even if you cancel your subscription through Apple and try to resubscribe via Google, it won’t affect the pricing. You’ll still have to pay the higher price. On the other hand, those who signed up through Google are seeing a much lower price increase.

Several Reddit users residing in the affected countries have announced that they have canceled their YouTube Premium subscriptions. In July when YouTube started cracking down on premium plans purchased using VPNs, many did a similar thing. Time will tell if Google revises the price of YouTube Premium to remain more aligned with the users’ expectations.

Source link

Advertisement

Continue Reading

Trending

Copyright © 2017 Zox News Theme. Theme by MVP Themes, powered by WordPress.