Using privateGPT for a catalog (beers)
TL;DR;
- Too long to do Q&A with it for a product (90 seconds to respond)
- Not relevant on the data it returns
- Recommends a beer that does not mention Pad Thai, while others do in food pairing
- Unable to classify beers by type even though all the information is in the data provided
- Does not find specific information about a beer that could be found without AI (alcohol degree)
Next step
Conduct the same prompts with #chatGPT for comparison A comparison with ChatGPT
-
Take all the data from https://api.punkapi.com/v2/beers?page={number}&per_page=80
-
Create beer_-5.json in source_documents
-
ingest.py

-
privateGPT.py
Results
1
Goal: Search by "desire"
Not relevant:
- Every beer has the "food_pairing" mention
- 3 of them have pad thai in this parameter
- The only one recommended does not have it
> Question:
What do you recommend with a Pad Thai
> Answer (took 60.32 s.):
I would suggest pairing this Thai beer and pad thai dish together for an interesting combination that will showcase the bold flavors of both. You could also use El Dorado in your IPA as it pairs well to its citrusy notes, allowing them to shine through without being overpowered by their bitterness or harshness from Chinook's pine flavor. Don't be afraid to experiment with different beer styles and pairings for maximum enjoyment!
> source_documents/beers_2.json:
},
"food_pairing": [
"Tofu pad Thai with fresh lime juice and coriander",
"Fish tacos with avocado",
"Key lime pie"
],
"brewers_tips": "Be careful with the Motueka additions. It has an intense citrus character that is often tempered by using in conjunction with other hops.",
"contributed_by": "Sam Mason <samjbmason>"
},
{
"id": 132,
"name": "5am Saint",
"tagline": "Bittersweet Chaos. Malty. Fruity. Bite.",
"first_brewed": "06/2009",
> source_documents/beers_3.json:
"attribute": "aroma"
}
],
"yeast": "Wyeast 1056 - American Ale™"
},
"food_pairing": [
"Watermelon and feta salad with balsamic reduction",
"Grilled chicken with a chilli soy sauce marinade",
"Crème brûlée with apricot coulis"
],
"brewers_tips": "El Dorado works well on its own but pairs up brilliantly with a higher alpha hop for bittering, saving your El Dorado for aroma and flavour.",
> source_documents/beers_2.json:
"add": "dry hop",
"attribute": "aroma"
}
],
"yeast": "Wyeast 1056 - American Ale™"
},
"food_pairing": [
"Mexican ceviche",
"Coriander and lime green thai curry",
"Grapefruit souffle"
],
"brewers_tips": "Shave of the surface of the citrus peel to unlock the highly aromatic compounds into the beer. Avoid putting any white pith into the brew as it will create an intense and unpleasant bitterness.",
> source_documents/beers_3.json:
"first_brewed": "03/2015",
"description": "2015 IPA is Dead series. Often used as a combination hop for American Pale Ales and IPAs, Chinook can really shine when left to front a beer all on its own. The main reason for this is that it’s thunderously piney, with a fistful of spice kicked up in your face as you lie on the beach. A true heavyweight of the brewing industry.",
"image_url": "https://images.punkapi.com/v2/173.png",
"abv": 7.2,
"ibu": 100,
"target_fg": 1010,
2
Goal: Data categorization
Not relevant:
- Each beer has its type:
- either in its name (ex: Jinx Pale Ale)
- or in its tags (ex: Single Hop India Pale Ale)
- or in its ingredients (ex: malt for pale ale)
- Here:
- The AI only proposes one result while there are dozens
- Mention a beer that has no connection in any description or parameter with the word pale ale
- Finds embeddings close to pale ale in the files listed but doesn't in text generation
> Question:
Give me all Pale Ale beers
> Answer (took 88.68 s.):
Here are the pale ale beer options mentioned in your question along with their respective first brew dates and description of what they taste like:
* Worthy Beer - First Brewed on 5/2012
> source_documents/beers_1.json:
"first_brewed": "05/2012",
"description": "This straight-up US style pale ale uses some of our favourite hops against a toasty malt base. We brewed this with Sir Tom Hunter at our Fraserburgh brewery - to add a charitable element to your own version, feel free to share this citrusy pale ale with your friends. Or don't, it's your choice.",
"image_url": "https://images.punkapi.com/v2/67.png",
"abv": 5.4,
"ibu": 35,
"target_fg": 1008,
"target_og": 1050,
"ebc": 11.5,
> source_documents/beers_3.json:
"contributed_by": "Sam Mason <samjbmason>"
},
{
"id": 187,
"name": "Lichtenstein Pale Ale",
"tagline": "Us-Hopped Rye Pale Ale.",
"first_brewed": "01/2013",
"description": "Dry-hopped with some of our hop heroes, bringing incredibly fruity aromas of zesty orange, pithy grapefruit, pungent pine and resin, backed up with spicy, toasty malt flavours of toffee, biscuit, rye bread and toast crust.",
"image_url": "https://images.punkapi.com/v2/187.png",
"abv": 5.2,
> source_documents/beers_4.json:
"first_brewed": "2017",
"description": "Our Prototype Challenge sees us pit three new trial beers against each other. This Double IPA is packed with a blend of our favourite American hops and has a huge dry- hop aroma.",
"image_url": null,
"abv": 8.5,
"ibu": 60,
"target_fg": 1007,
"target_og": 1073,
"ebc": 15,
"srm": 8,
"ph": 4.2,
"attenuation_level": 90,
"volume": { "value": 20, "unit": "litres" },
> source_documents/beers_1.json:
"first_brewed": "05/2013",
"description": "A rich, nutty Brown Ale with a deep, rich malt profile, hopped with a range of citrusy and spicy US varieties. Mellow yet endlessly complex, with enough chocolate and fruit character to balance the bitterness, and a soft oaky roundness.",
"image_url": "https://images.punkapi.com/v2/76.png",
"abv": 7.5,
"ibu": 50,
"target_fg": 1013,
"target_og": 1070,
"ebc": 40,
"srm": 20,
"ph": 4.4,
"attenuation_level": 81.4,
3
Goal: Search for attributes on a specific product
- Can't find info
> Answer (took 122.53 s.):
The ABV (Alcohol by Volume) for Bavaria Weizen yeast in AB:21 Imperial Stout does not have a specific range provided.
> source_documents/beers_2.json:
"description": " BrewDog vs. Weihenstephan India Pale Weizen kicked off a new direction for our collaborations. We took a simple concept (by our standards) and teamed up with the oldest brewery in the world to brew a mash-up beer using the signature styles of both breweries. India Pale Weizen has classic base hefeweizen aromas and flavours of banana, clove and bubblegum, with a distinctive haziness. Layered on top of this is a tapestry of US citrus hop character. India Pale Weizen is a
> source_documents/beers_2.json:
"first_brewed": "09/2013",
"description": "Our Unleash the Yeast series was an epic experiment into the differences in aroma and flavour provided by switching up your yeast. We brewed up a wort with a light caramel note and some toasty biscuit flavour, and hopped it with Amarillo and Centennial for a citrusy bitterness. Everything else is down to the yeast. Bavarian Weizen yeast adds traditional weissbier notes of banana and clove.",
> source_documents/beers_2.json:
US citrus hop character. India Pale Weizen is a perfect symbiosis of traditional and modern brewing.",
> source_documents/beers_4.json:
"first_brewed": "2016",
"description": "AB:21 is a liquorice and blackcurrant infused imperial stout. Rolling in at an imposing 12% abv, this huge and decadent dark beer dials down the charred roastiness and focuses instead on the rich, full-bodied chocolate and dark fruit character of the style.",
"image_url": null,
"abv": 12,
"ibu": 100,
"target_fg": 1015,
"target_og": 1130,
"ebc": 200,
"srm": 101.6,
"ph": 5.1,
"attenuation_level": 82,