Saturday, May 30, 2026
banner
Top Selling Multipurpose WP Theme

TUI Group is likely one of the world’s main international tourism companies, offering 21 million clients with an unmatched vacation expertise in 180 areas. TUI Group covers the end-to-end tourism chain with over 400 owned resorts, 16 cruise ships, 1,200 journey companies, and 5 airways masking all main vacation locations across the globe. At TUI, crafting high-quality content material is an important element of its promotional technique.

The TUI content material groups are tasked with producing high-quality content material for its web sites, together with product particulars, lodge data, and journey guides, typically utilizing descriptions written by lodge and third-party companions. This content material wants to stick to TUI’s tone of voice, which is important to speaking the model’s distinct character. However as its portfolio expands with extra resorts and choices, scaling content material creation has confirmed difficult. This presents a possibility to enhance and automate the prevailing content material creation course of utilizing generative AI.

On this submit, we talk about how we used Amazon SageMaker and Amazon Bedrock to construct a content material generator that rewrites advertising and marketing content material following particular model and magnificence pointers. Amazon Bedrock is a totally managed service that provides a selection of high-performing basis fashions (FMs) from main AI corporations resembling AI21 Labs, Anthropic, Cohere, Meta, Mistral AI, Stability AI, and Amazon via a single API, together with a broad set of capabilities it is advisable construct generative AI purposes with safety, privateness, and accountable AI. Amazon SageMaker helps knowledge scientists and machine studying (ML) engineers construct FMs from scratch, consider and customise FMs with superior strategies, and deploy FMs with fine-grain controls for generative AI use instances which have stringent necessities on accuracy, latency, and price.

Via experimentation, we discovered that following a two-phased method labored finest to ensure that the output aligned to TUI’s tone of voice necessities. The primary part was to fine-tune with a smaller massive language mannequin (LLM) on a big corpus of knowledge. The second part used a distinct LLM mannequin for post-processing. Via fine-tuning, we generate content material that mimics the TUI model voice utilizing static knowledge and which couldn’t be captured via immediate engineering. Using a second mannequin with few-shot examples helped confirm the output adhered to particular formatting and grammatical guidelines. The latter makes use of a extra dynamic dataset, which we will use to regulate the output rapidly sooner or later for various model necessities. Total, this method resulted in larger high quality content material and allowed TUI to enhance content material high quality at a better velocity.

Answer overview

The structure consists of some key parts:

  • LLM fashions – We evaluated completely different approaches and located {that a} two-model answer carried out the most effective. This consists of a fine-tuned Meta Llama mannequin to generate an outline for the given lodge and Anthropic’s Claude mannequin to reformat its output. Fantastic-tuning and internet hosting the Meta Llama 2 mannequin was executed on Amazon SageMaker, and Anthropic’s Claude 2 was consumed from Amazon Bedrock via API calls.
  • Orchestration – We created a state machine utilizing AWS Step Features to make calls in a batch format to the 2 LLMs and fetch the search engine marketing (search engine optimization) rating for the generated content material from a third-party API. If the search engine optimization content material rating is above an outlined threshold (80%), the generated content material is saved in an Amazon DynamoDB desk and may later be reviewed by the content material workforce immediately within the front-end UI. Via this course of, we keep and monitor content material high quality at scale.
  • Human within the loop suggestions – We developed a customized React front-end software to assemble suggestions from the content material workforce to facilitate steady enchancment and future mannequin fine-tuning. You should use the suggestions to fine-tune a base mannequin on SageMaker utilizing reinforcement studying from human suggestions (RLHF) to enhance efficiency.

The next diagram is the high-level structure of the answer.

Immediate engineering

We began by crafting prompts that embrace the commonest points recognized by the TUI content material workforce, together with tone of voice, accuracy, size, and grammar. We offered the LLM with just a few examples of curated content material throughout the context window. Though the generated output adopted the steering, the writing model didn’t meet TUI’s tone of voice necessities.

 Instance immediate:

You're an skilled British copywriter for TUI. TUI is a world-leading journey firm. You're an skilled in producing lodge descriptions, based mostly on TUI’s tone of voice. TUI's tone of voice could be described as upbeat, enthusiastic, and promotional. Keep away from all of the phrases within the following listing: {banned phrases}
Write at most 100 phrases.
Your lodge descriptions should observe TUI's tone of voice and apply search engine optimization pointers.
These are some good examples. It's best to mimic under.
{examples}.
Human: {enter}
Assistant:

Right here is an instance of the outcomes we obtained.

Unique textual content Generated textual content
Boutique interiors and an incredible location mix at this small however completely fashioned lodge. It could be small however this 15-room lodge packs a punch with its inside design. The stainless pool is about in an open atrium space. And there’s funky cocktail bar and lounge, too. The situation is each bit as spectacular because the styling. It’s a couple of 10-minute stroll to the seaside and fewer than half that to the centre of Thassos City. This petite lodge brings boutique model to Thassos City. Its immaculate pool and funky cocktail bar create an oasis within the coronary heart of the motion. The seaside is only a 10-minute stroll away, so you may simply break up your time between sunbathing and sightseeing. With solely 15 rooms, the expertise feels intimate but worldly. The interiors marry trendy design with conventional touches for a singular look. And the central location means widespread points of interest just like the Archaeological Museum and purchasing avenue are proper in your doorstep.

To judge these outcomes, we generated a dataset of 150 lodge descriptions utilizing two completely different immediate variations and requested our enterprise groups to assessment it. Nonetheless, they flagged 98% of the output with important points. Firstly, Anthropic’s Claude 2 struggled to stick to TUI’s tone of voice and branding pointers, often employed abbreviations, and favored American English over British English. It additionally didn’t observe the search engine optimization pointers offered and generally generated false data relating to lodge amenities and places. The next picture exhibits a listing of those challenges and the way the LLM dealt with them. Of the six challenges, the LLM met just one.

Main Challenges

Fantastic-tuning Llama 2 utilizing PEFT on Amazon SageMaker JumpStart

These points and poor suggestions led us to conclude that immediate engineering alone wouldn’t adequately handle the issue. Consequently, we determined to pursue another method: fine-tuning a smaller massive language mannequin to rewrite the textual content in accordance with TUI’s tone of voice. We used a curated set of lodge descriptions written by TUI copywriters in order that the mannequin would have higher alignment with our pointers.

We chosen the Meta Llama 2 mannequin utilizing Amazon SageMaker JumpStart, one of many prime open supply LLMs obtainable on the time, and selected the 13B parameter model to use parameter-efficient fine-tuning (PEFT), particularly utilizing quantized low-rank adaptation (QLoRA). This system quantizes the pre-trained mannequin to 4 bits and provides small low-rank adapters for fine-tuning. We fine-tuned the mannequin on a single ml.g5.4xlarge occasion in about 20 hours utilizing a comparatively small dataset of round 4,500 resorts. We additionally examined out the Llama 2 7B and 70B fashions. We discovered that the 7B mannequin didn’t carry out nicely sufficient, and the 70B mannequin had a lot larger prices with out seeing important enchancment.

We used widespread pure language processing (NLP) analysis metrics, resembling perplexity for analysis and monitoring throughout coaching, and established each day suggestions loops with the content material workforce to refine the take a look at set. The output from the fine-tuned Meta Llama 2 13B mannequin successfully mimicked the TUI tone of voice and adhered to most search engine optimization pointers, even these not specified within the immediate.

For extra data, confer with Fantastic-tune Llama 2 for textual content era on Amazon SageMaker Jumpstart.

Unique textual content Generated textual content
The NH München Metropolis Süd lodge, previously referred to as NH München am Ring, is positioned southeast of Munich. The situation is right for reaching the freeway in the direction of Salzburg and supplies good entry to the airport and Exhibition Middle. You can too get to town middle in 20 minutes by hopping on the S-Bahn on the Karl-Preis-Platz station. The peaceable residential location presents a superb alternative to calm down in one of many 163 rooms. These are embellished in white with crimson accents. Rooms characteristic free Wi-Fi and digital safes which are massive sufficient to your laptop computer. If it is advisable work, there are spacious desks in each room and residences with seperate residing rooms can be found for long term visitors. The suites additionally include separate residing rooms and foldaway beds can be found upon request. The breakfast will get you prepared for a busy day with a big unfold of chilly cuts, cheeses, recent pastries, and fruit. These come accompanied with freshly brewed espresso, tea, and recent fruit juices. For lunch and dinner, one can find many restaurant choices in shut proximity to the lodge. There’s a sauna for rest and you’ll park your automotive within the storage.

Make your self at dwelling in Munich on the München Metropolis Süd. This former NH München am Ring sits simply southeast of the Bavarian capital, placing each the freeway to Salzburg and the airport inside straightforward attain. The S-Bahn station Karl-Preis-Platz is a fast stroll away too, so that you could be within the metropolis middle in simply 20 minutes.

The neighborhood right here is peaceable, providing you with the prospect to correctly calm down throughout your keep. The lodge’s 163 rooms are embellished in calming white and crimson hues. Free Wi-Fi and laptop-sized safes come as customary, whereas spacious desks make working straightforward. For longer visits, residences with separate residing areas can be found. The suites take issues up a notch with their very own residing areas and foldaway beds on request.

Gasoline up every morning with an unlimited breakfast unfold of chilly cuts, cheeses, pastries and fruit. All washed down with espresso, tea and recent juices. You’ll discover many eating choices shut by for different meals. After a busy day, unwind within the sauna or park up within the storage.

The next picture exhibits a listing of the challenges and the way the LLM dealt with them. Of the six challenges, the LLM met 4.

Improvements

Integrating Anthropic’s Claude 2 for additional enchancment

To additional enhance the output, we launched Anthropic’s Claude 2 utilizing Amazon Bedrock as a ultimate refinement step. This included changing American spelling to British spelling, writing numbers one via 9 in phrases and bigger numbers in digits, correcting typos and capitalization errors, minimizing banned phrases, incorporating important TUI branding phrases, and including lacking lodge data. We additionally carried out a suggestions mechanism within the UI to make use of knowledge for ongoing fine-tuning in manufacturing. By utilizing Anthropic Claude 2, we ensure that the ultimate output applies the remaining formatting guidelines.

Unique textual content Generated textual content

As its title suggests, Vienna Sporthotel has masses lined up for sports activities followers.

There are 10 tennis courts and 4 golf simulators right here, plus, you may e book a session with a coach to brush up in your expertise. On prime of that, there’s an outside pool, a well-stocked health room and an enormous sauna. To gas up for all that train, you may seize a plate on the breakfast buffet.

Location-wise, this place is about up for sightseeing. Hop on a bus and you’ll attain the likes of The Hofburg, Belvedere Palace and Karlskirche in lower than half an hour. You’re solely a 10-minute stroll away from the closest eating places and cafes, too.

With a reputation like Vienna Sporthotel, you may count on this place to serve up a lot for followers of sport and exercise. Brush up your expertise on one in all 10 tennis courts or within the 4 golf simulators, then recharge within the outside pool or well-equipped fitness center. There’s even a coach readily available to assist good your method.

Whenever you’re able to refuel, tuck into the breakfast buffet. Then get set for sightseeing – a bus journey whisks you to prime Vienna points of interest like The Hofburg, Belvedere Palace and Karlskirche in beneath half-hour. You’re additionally only a brief stroll from native eateries and low outlets.

The next picture exhibits a listing of the challenges and the way the LLM dealt with them. The LLM met all six challenges.

Success in Target Outcomes

Key outcomes

The ultimate structure consists of a fine-tuned Meta Llama 2 13B mannequin and Anthropic Claude 2, utilizing the strengths of every mannequin. In a blind take a look at, these dynamically generated lodge descriptions have been rated larger than these written by people in 75% of a pattern of fifty resorts. We additionally built-in a third-party API to calculate search engine optimization scores for the generated content material, and we noticed as much as 4% uplift in search engine optimization scores for the generated content material in comparison with human written descriptions. Most importantly, the content material era course of is now 5 occasions sooner, enhancing our workforce’s productiveness with out compromising high quality or consistency. We are able to generate an unlimited variety of lodge descriptions in just some hours— a job that beforehand took months.

Takeaways

Transferring ahead, we plan to discover how this know-how can handle present inefficiencies and high quality gaps, particularly for resorts that our workforce hasn’t had the capability to curate. We plan to increase this answer to extra manufacturers and areas throughout the TUI portfolio, together with producing content material in numerous languages and tailoring it to fulfill the particular wants of various audiences.

All through this mission, we realized just a few helpful classes:

  • Few-shot prompting is cost-effective and ample when you’ve restricted examples and particular pointers for responses. Fantastic-tuning may help considerably enhance mannequin efficiency when it is advisable tailor content material to match a model’s tone of voice, however could be useful resource intensive and relies on static knowledge sources that may get outdated.
  • Fantastic-tuning the Llama 70B mannequin was rather more costly than Llama 13B and didn’t end in important enchancment.
  • Incorporating human suggestions and sustaining a human-in-the-loop method is important for safeguarding model integrity and repeatedly enhancing the answer. The collaboration between TUI engineering, content material, and search engine optimization groups was essential to the success of this mission.

Though Meta Llama 2 and Anthropic’s Claude 2 have been the most recent state-of-the-art fashions obtainable on the time of our experiment, since then we now have seen the launch of Meta Llama 3 and Anthropic’s Claude 3.5, which we count on can considerably enhance the standard of our outputs. Amazon Bedrock additionally now helps fine-tuning for Meta Llama 2, Cohere Command Mild, and Amazon Titan fashions, making it less complicated and sooner to check fashions with out managing infrastructure.


In regards to the Authors

Nikolaos Zavitsanos is a Information Scientist at TUI, specialised in creating customer-facing Generative AI purposes utilizing AWS companies. With a powerful background in Laptop Science and Synthetic Intelligence, he leverages superior applied sciences to boost consumer experiences and drive innovation. Exterior of labor, Nikolaos performs water polo and is competing at a nationwide stage. Join with Nikolaos on Linkedin

Hin Yee Liu is a Senior Prototyping Engagement Supervisor at Amazon Net Providers. She helps AWS clients to convey their huge concepts to life and speed up the adoption of rising applied sciences. Hin Yee works carefully with buyer stakeholders to establish, form and ship impactful use instances leveraging Generative AI, AI/ML, Massive Information, and Serverless applied sciences utilizing agile methodologies. In her free time, she enjoys knitting, travelling and power coaching. Join with Hin Yee on LinkedIn.

banner
Top Selling Multipurpose WP Theme

Converter

Top Selling Multipurpose WP Theme

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

banner
Top Selling Multipurpose WP Theme

Leave a Comment

banner
Top Selling Multipurpose WP Theme

Latest

Best selling

22000,00 $
16000,00 $
6500,00 $

Top rated

6500,00 $
22000,00 $
900000,00 $

Products

Knowledge Unleashed
Knowledge Unleashed

Welcome to Ivugangingo!

At Ivugangingo, we're passionate about delivering insightful content that empowers and informs our readers across a spectrum of crucial topics. Whether you're delving into the world of insurance, navigating the complexities of cryptocurrency, or seeking wellness tips in health and fitness, we've got you covered.