Book a free call

How to Build an LLM App for Wine Recommendations

An LLM app for wine recommendations turns a drinker's taste, budget and meal into a shortlist of bottles, grounded in a wine catalog so it never invents a label.

Hertiv engineering teamReviewed by a senior engineer
7 min read
How to Build an LLM App for Wine Recommendations
On this page

Short answer

An LLM app for wine recommendation is an application that takes a drinker's taste, budget and meal, searches a real wine catalog for matching bottles, and explains each pick in plain language. The model does the reasoning and the writing, but the catalog decides which bottles exist, so the app never invents a label, a vintage or a price.

What is an LLM app for wine recommendation?

An LLM app for wine recommendation is a small application that pairs a large language model with a wine catalog. The user describes what they like — a light red, something to go with roast chicken, a bottle under a set price — and the app returns a shortlist of real bottles with a reason for each one.

The model is the conversational layer, not the source of truth. It turns a vague request into a structured search, reads the tasting notes and food pairings of the bottles it finds, and writes the answer. The catalog is the source of truth: every bottle the app recommends must exist in the catalog, with a real price, a real vintage and real stock.

That split matters because a model on its own will invent wines. It will name a producer that does not exist, quote a vintage that was never made, or describe a bottle that is out of stock. Grounding every recommendation in the catalog is the design decision that makes the app trustworthy.

How the app turns a taste profile into a bottle

The app works in four steps. The user describes their taste and occasion, the app turns that into a search, the search finds matching bottles in the catalog, and the model writes the recommendation with a reason for each bottle. The whole flow takes seconds, and every step is visible in the logs.

Part What it does Why it matters
Taste profile Captures likes, dislikes, budget, meal Turns a vague wish into a search
Wine catalog Real bottles, prices, stock, notes Stops the model inventing wines
Retrieval Finds the closest bottles Only real bottles reach the model
Language model Writes the shortlist and reasons Explains each pick in plain words
Guardrails Checks price, stock and age rules Blocks bad picks before they show

The guardrail row is the one teams skip, and it is the one that protects the shop. A recommendation must respect the user's budget, the bottle must be in stock, and the app must not recommend alcohol to anyone under the legal drinking age. Those checks run as code, not as a prompt, because a prompt can be talked around and code cannot. For the underlying pattern, LLM applications covers retrieval-grounded apps in general.

The wine data the app needs

The app needs three kinds of data, and the quality of the recommendations follows the quality of the data. The first is the catalog itself: producer, region, grape, vintage, price and stock for every bottle. If the catalog is out of date, the app recommends bottles the shop cannot sell.

The second is tasting data: style, body, acidity, tannin, sweetness and the flavours a taster would name, such as cherry, citrus or oak. This is what lets the app match a request like 'a light red with soft tannins' to real bottles, rather than guessing from the grape alone.

The third is pairing data: which dishes each wine suits, and which wines to avoid with a given dish. Pairing rules are the part of the app that feels most like expertise, and they are also the part where a wrong answer is most visible — a heavy red with a delicate fish dish will be noticed.

Start with a small, checked set of pairings and grow it from customer feedback, not from the model's guesses.

How to build the app in six steps

Build the app in this order. The catalog and the checks come before the model, because a model with no grounding is a liability and a model with good grounding is a product.

  1. Clean the catalog. One record per bottle, with price, stock and tasting notes, and a process to keep it current.
  2. Define the taste profile. Decide the five or six questions the app asks: style, body, sweetness, budget, occasion and meal.
  3. Build the retrieval step. Match the profile to the catalog by style and pairing, and return only bottles that are in stock and within budget.
  4. Write the prompt. Give the model the profile and the shortlist, and tell it to recommend only from that list and to explain each pick.
  5. Add the guardrails. Check price, stock and age rules in code, and block any recommendation that fails them.
  6. Test with real requests. Run 20 real customer requests through the app, check every bottle exists and every reason is true, and fix the catalog where it fails.

The test set in the last step is the most important part of the build. Twenty real requests with known good answers will show you whether the retrieval is finding the right bottles and whether the model's reasons are honest. For the evaluation method, how to evaluate an LLM application covers test sets and scoring.

Example (hypothetical): a shop with 800 bottles

Example (hypothetical): a wine shop holds 800 bottles and wants an app that recommends a bottle for a customer's dinner. A customer asks for a red to go with roast chicken, under 30 dollars, and says they like light, fruity wines.

The retrieval step searches the catalog for red wines under 30 dollars that pair with roast chicken and match a light, fruity style. It finds 12 bottles. The model picks three, explains each one — a Pinot Noir for its soft tannins, a Gamay for its fruit, a light Grenache for its spice — and gives the price of each from the catalog.

The arithmetic is simple and it is the point of the design. Of the 800 bottles, 320 are red, 140 of those are under 30 dollars, and 12 match the pairing and style. The model chooses from those 12, never from the 788 it was not shown. If the shop adds a bottle to the catalog, it becomes recommendable the same day, and if a bottle sells out, it stops appearing.

What are the common mistakes?

The most common mistakes in an LLM wine app are letting the model invent bottles, skipping the stock and price checks, and trusting the model's pairing knowledge without a checked source.

  • No catalog grounding. A model without a catalog will invent producers, vintages and prices that sound right and are not real.
  • Stale stock data. Recommending a bottle that sold out last week is the fastest way to lose a customer's trust.
  • Pairing from memory. The model's pairing knowledge is a starting point, not a source; check it against a real pairing guide.
  • No budget check. A recommendation over the user's budget feels like a sales push, not a recommendation.
  • Too many picks. Ten bottles is a list, not a recommendation; three to five, with a reason each, is the right size.
  • No age check. The app must not recommend alcohol to anyone under the legal drinking age, and that check belongs in code.

For the retrieval pattern behind the catalog search, RAG development covers how to ground a model in your own data.

How to test the app before launch

Test the app the way a customer would use it, not the way a developer would demo it. Write down 20 real requests from actual customers — the vague ones, the ones with a tight budget, the ones with a difficult pairing — and run each through the app before it goes live.

For each request, check three things: every bottle in the answer exists in the catalog, every price matches the catalog, and every reason is true of that bottle. Score the app on those three checks, not on how fluent the answer sounds. A fluent answer with a wrong price is a failure, and a plain answer with the right bottles is a success.

After launch, keep the same test running. Add each new customer request to the set, and re-run it whenever the catalog or the prompt changes. The test set is the cheapest quality control the app will ever have, and it is the difference between an app that stays trustworthy and one that drifts. For the development side, LLM development covers the build and evaluation process end to end.

Key takeaways

  • Ground every recommendation in a real catalog so the app never invents a bottle
  • The model writes the shortlist, but the catalog decides which bottles exist
  • Check price, stock and age rules in code, not in the prompt
  • Test with 20 real customer requests before launch, and re-run the set on every change
  • Three to five picks with a reason each beats a list of ten

Frequently asked questions

Can an LLM recommend wine without a catalog?

No, not reliably. A model without a catalog will invent producers, vintages and prices that sound right and are not real. The catalog is the source of truth: the model should only recommend bottles it was shown, with prices and stock taken from the catalog.

What data does a wine recommendation app need?

Three kinds: the catalog itself with producer, region, grape, vintage, price and stock; tasting data such as body, acidity, tannin and flavours; and pairing data for which dishes each wine suits. The recommendations are only as good as that data.

How does the app match a taste to a bottle?

It turns the user's taste, budget and meal into a structured search over the catalog, then the model writes the shortlist with a reason for each bottle. The search finds the candidates and the model explains them, so the answer is both grounded and readable.

How many wines should the app recommend?

Three to five, each with a reason. Ten bottles is a list, not a recommendation, and it leaves the customer to do the choosing the app was meant to do. If the shortlist is empty, the app should say so and ask what to relax.

How do you stop the app recommending out-of-stock wine?

Check stock in code before the answer is shown, not in the prompt. The retrieval step should only return bottles that are in stock and within budget, and the catalog needs a refresh process so stock data stays current.

Can the app learn from customer feedback?

Yes, by recording which recommendations customers accepted and which they ignored, then using that to improve the pairing data and the retrieval step. Treat feedback as data for the catalog, not as a reason to let the model invent new pairings on its own.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building an LLM app for wine recommendations and want the catalog grounding right? Talk to Hertiv.

A senior engineer replies within one business day. Or see our LLM Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call