Advanced Embedding Examples

Predicting Your Preferred Coffee

Our goal in this section is to recommend the best coffee blend for a user based on their input. For instance, if the user enters “Ethiopia Dumerso”, the program will identify that “Ethiopia Dumerso”, “Ethiopia Guji Natural Dasaya”, and “Organic Dulce de Guatemala” are the blends closest to their choice. Consequently, the output of the application we will develop will contain these three blends.

We will need a dataset that can be downloaded from Kaggle. Visit Kaggle and download the dataset named simplified_coffee.csv. (You will need to create an account.) Alternatively, you can find the same dataset in the Companion Toolkit.

Download the dataset and save it in the “src/data” folder. ...

Get OpenAI GPT For Python Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.