diff --git a/docs/docs/integrations/tools/passio_nutrition_ai.ipynb b/docs/docs/integrations/tools/passio_nutrition_ai.ipynb new file mode 100644 index 0000000000..81f241b247 --- /dev/null +++ b/docs/docs/integrations/tools/passio_nutrition_ai.ipynb @@ -0,0 +1,2495 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "f4c03f40-1328-412d-8a48-1db0cd481b77", + "metadata": {}, + "source": [ + "# Quickstart\n", + "\n", + "To best understand how NutritionAI can give your agents super food-nutrition powers, let's build an agent that can find that information via Passio NutritionAI.\n", + "\n", + "## Define tools\n", + "\n", + "We first need to create [the Passio NutritionAI tool](/docs/integrations/tools/passio_nutritionai)." + ] + }, + { + "cell_type": "markdown", + "id": "c335d1bf", + "metadata": {}, + "source": [ + "### [Passio Nutrition AI](/docs/integrations/tools/passio_nutritionai-agent)\n", + "\n", + "We have a built-in tool in LangChain to easily use Passio NutritionAI to find food nutrition facts.\n", + "Note that this requires an API key - they have a free tier.\n", + "\n", + "Once you create your API key, you will need to export that as:\n", + "\n", + "```bash\n", + "export NUTRITIONAI_SUBSCRIPTION_KEY=\"...\"\n", + "```\n", + "\n", + "... or provide it to your Python environment via some other means such as the `dotenv` package. You an also explicitly control the key via constructor calls." + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "482ce13d", + "metadata": {}, + "outputs": [], + "source": [ + "from dotenv import load_dotenv\n", + "from langchain_core.utils import get_from_env\n", + "\n", + "load_dotenv()\n", + "\n", + "nutritionai_subscription_key = get_from_env(\n", + " \"nutritionai_subscription_key\", \"NUTRITIONAI_SUBSCRIPTION_KEY\"\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "9cc86c0b", + "metadata": {}, + "outputs": [], + "source": [ + "from langchain_community.tools.passio_nutrition_ai import NutritionAI\n", + "from langchain_community.utilities.passio_nutrition_ai import NutritionAIAPI" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "a94938a6", + "metadata": {}, + "outputs": [], + "source": [ + "nutritionai_search = NutritionAI(api_wrapper=NutritionAIAPI())" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "e593bbf6", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'results': [{'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 1,\n", + " 'displayNameScore': 1,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood0085239308349',\n", + " 'resultId': 'openfood0085239308349',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100},\n", + " 'name': '',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 142.8571014404297}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Wells Enterprises, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood5390003010973',\n", + " 'resultId': 'openfood5390003010973',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 320},\n", + " 'name': 'meal',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 345.6000061035156}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Tesco plc',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood5054269267228',\n", + " 'resultId': 'openfood5054269267228',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 450},\n", + " 'name': 'package',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 540}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Sharwoods',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood5000187114670',\n", + " 'resultId': 'openfood5000187114670',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 375},\n", + " 'name': 'package',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 453.75}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': \"SUKHI'S GOURMET INDIAN FOOD.\",\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood0767226447919',\n", + " 'resultId': 'openfood0767226447919',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 140},\n", + " 'name': 'serving',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 179.9999542236328}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'T.A.C.T. Holding, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood00989121',\n", + " 'resultId': 'openfood00989121',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 454},\n", + " 'name': 'package',\n", + " 'quantity': 1},\n", + " 'calories': 580}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'EVOL.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211477023',\n", + " 'resultId': '1603211477023',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 142},\n", + " 'name': 'burrito',\n", + " 'quantity': 1},\n", + " 'calories': 269.79998779296875}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Star Markets Co.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211444746',\n", + " 'resultId': '1603211444746',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.3},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [10]},\n", + " 'calories': 379.219970703125}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': \"SUKHI'S\",\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211442144',\n", + " 'resultId': '1603211442144',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.27},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [5.2]},\n", + " 'calories': 299.8881530761719}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Safeway, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211440951',\n", + " 'resultId': '1603211440951',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.36},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [11]},\n", + " 'calories': 358.75396728515625}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Ahold USA, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211387832',\n", + " 'resultId': '1603211387832',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [5]},\n", + " 'calories': 229.60000610351562}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Glencourt Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211384069',\n", + " 'resultId': '1603211384069',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 241},\n", + " 'name': 'tray',\n", + " 'quantity': 1},\n", + " 'calories': 260.2799987792969}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Us-Nippon Meat Packers',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211383435',\n", + " 'resultId': '1603211383435',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [5]},\n", + " 'calories': 210}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'CONTESSA',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211342300',\n", + " 'resultId': '1603211342300',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.38},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [10.5]},\n", + " 'calories': 318.84930419921875}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'The Kroger Co.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211306659',\n", + " 'resultId': '1603211306659',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.36},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [11]},\n", + " 'calories': 330.6776123046875}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Wal-Mart Stores, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211276873',\n", + " 'resultId': '1603211276873',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 335},\n", + " 'name': 'container',\n", + " 'quantity': 1},\n", + " 'calories': 311.54998779296875}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala',\n", + " 'score': 0.95,\n", + " 'displayNameScore': 0.95,\n", + " 'brandName': 'Target Stores',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211257427',\n", + " 'resultId': '1603211257427',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.57},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [4.9]},\n", + " 'calories': 239.38803100585938}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala Mix',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala Mix',\n", + " 'scoredName': 'Chicken Tikka Masala Mix',\n", + " 'score': 0.9319047619047619,\n", + " 'displayNameScore': 0.9319047619047619,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood8906064230044',\n", + " 'resultId': 'openfood8906064230044',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 80},\n", + " 'name': 'package',\n", + " 'quantity': 1},\n", + " 'calories': 325.6000061035156}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Wie Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Wie Chicken Tikka Masala',\n", + " 'scoredName': 'Wie Chicken Tikka Masala',\n", + " 'score': 0.9319047619047619,\n", + " 'displayNameScore': 0.9319047619047619,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood4005009102478',\n", + " 'resultId': 'openfood4005009102478',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 350},\n", + " 'name': 'package',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.5]},\n", + " 'calories': 145.25}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Hot Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Hot Chicken Tikka Masala',\n", + " 'scoredName': 'Hot Chicken Tikka Masala',\n", + " 'score': 0.9319047619047619,\n", + " 'displayNameScore': 0.9319047619047619,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood00776516',\n", + " 'resultId': 'openfood00776516',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 200},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 284}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala Bowl',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala Bowl',\n", + " 'scoredName': 'Chicken Tikka Masala Bowl',\n", + " 'score': 0.927906976744186,\n", + " 'displayNameScore': 0.927906976744186,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood0041415024151',\n", + " 'resultId': 'openfood0041415024151',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100},\n", + " 'name': '',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 134.27560424804688}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala Sauce',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala Sauce',\n", + " 'scoredName': 'Chicken Tikka Masala Sauce',\n", + " 'score': 0.924090909090909,\n", + " 'displayNameScore': 0.924090909090909,\n", + " 'brandName': 'Safeway, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211342703',\n", + " 'resultId': '1603211342703',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 255},\n", + " 'name': 'tray',\n", + " 'quantity': 1},\n", + " 'calories': 239.6999969482422}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala (Main)',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala (Main)',\n", + " 'scoredName': 'Chicken Tikka Masala (Main)',\n", + " 'score': 0.9204444444444443,\n", + " 'displayNameScore': 0.9204444444444443,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood5054781137085',\n", + " 'resultId': 'openfood5054781137085',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 400},\n", + " 'name': 'package',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.5]},\n", + " 'calories': 266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala Crowns',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala Crowns',\n", + " 'scoredName': 'Chicken Tikka Masala Crowns',\n", + " 'score': 0.9204444444444443,\n", + " 'displayNameScore': 0.9204444444444443,\n", + " 'brandName': 'The Kroger Co.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211285450',\n", + " 'resultId': '1603211285450',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 25},\n", + " 'name': 'piece',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [3]},\n", + " 'calories': 210}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Evol, Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Evol, Chicken Tikka Masala',\n", + " 'scoredName': 'Evol, Chicken Tikka Masala',\n", + " 'score': 0.9194139860139859,\n", + " 'displayNameScore': 0.9194139860139859,\n", + " 'brandName': 'Pinnacle Foods Group LLC',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211455071',\n", + " 'resultId': '1603211455071',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 566},\n", + " 'name': 'bag',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.5]},\n", + " 'calories': 299.97998046875}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala, Chicken',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala, Chicken',\n", + " 'scoredName': 'Chicken Tikka Masala, Chicken',\n", + " 'score': 0.9136170212765957,\n", + " 'displayNameScore': 0.9136170212765957,\n", + " 'brandName': 'LIDL',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606739622',\n", + " 'resultId': '1628606739622',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.3},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [10]},\n", + " 'calories': 311.29998779296875}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala, Chicken',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala, Chicken',\n", + " 'scoredName': 'Chicken Tikka Masala, Chicken',\n", + " 'score': 0.9136170212765957,\n", + " 'displayNameScore': 0.9136170212765957,\n", + " 'brandName': 'Target Stores',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211557019',\n", + " 'resultId': '1603211557019',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 202.5},\n", + " 'name': 'cup',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.67]},\n", + " 'calories': 191.30177307128906}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala, Chicken Tikka',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala, Chicken Tikka',\n", + " 'scoredName': 'Chicken Tikka Masala, Chicken Tikka',\n", + " 'score': 0.8962264150943396,\n", + " 'displayNameScore': 0.8962264150943396,\n", + " 'brandName': 'Tiller & Hatch, Co.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606774236',\n", + " 'resultId': '1628606774236',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 283},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 390.53997802734375}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Vegan Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Vegan Chicken Tikka Masala',\n", + " 'scoredName': 'Vegan Chicken Tikka Masala',\n", + " 'score': 0.8890139860139858,\n", + " 'displayNameScore': 0.8890139860139858,\n", + " 'brandName': 'VEGETARIAN PLUS',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211549315',\n", + " 'resultId': '1603211549315',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.4},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [2.5]},\n", + " 'calories': 90.16999816894531}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala Soup, Chicken Tikka',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala Soup, Chicken Tikka',\n", + " 'scoredName': 'Chicken Tikka Masala Soup, Chicken Tikka',\n", + " 'score': 0.8844827586206896,\n", + " 'displayNameScore': 0.8844827586206896,\n", + " 'brandName': 'Whole Foods Market, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606752082',\n", + " 'resultId': '1628606752082',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 245},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 240.10000610351562}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala Pouches, Chicken Tikka',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala Pouches, Chicken Tikka',\n", + " 'scoredName': 'Chicken Tikka Masala Pouches, Chicken Tikka',\n", + " 'score': 0.8757094929470073,\n", + " 'displayNameScore': 0.8757094929470073,\n", + " 'brandName': 'Deep Foods Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606770699',\n", + " 'resultId': '1628606770699',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 113},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 290.4100036621094}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala Kit, Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala Kit, Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala Kit, Chicken Tikka Masala',\n", + " 'score': 0.8678559782608695,\n", + " 'displayNameScore': 0.8678559782608695,\n", + " 'brandName': 'KRAFT HEINZ SAUCES & FROZEN',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211526033',\n", + " 'resultId': '1603211526033',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [3]},\n", + " 'calories': 199.9199981689453}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Tikka Masala Chicken',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Tikka Masala Chicken',\n", + " 'scoredName': 'Tikka Masala Chicken',\n", + " 'score': 0.7827000000000001,\n", + " 'displayNameScore': 0.7827000000000001,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood5701410407001',\n", + " 'resultId': 'openfood5701410407001',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 450},\n", + " 'name': 'package',\n", + " 'quantity': 1},\n", + " 'calories': 670.5}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Tikka Masala Chicken',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Tikka Masala Chicken',\n", + " 'scoredName': 'Tikka Masala Chicken',\n", + " 'score': 0.7827000000000001,\n", + " 'displayNameScore': 0.7827000000000001,\n", + " 'brandName': 'Ahold Usa, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211336796',\n", + " 'resultId': '1603211336796',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 350},\n", + " 'name': 'package',\n", + " 'quantity': 1},\n", + " 'calories': 399}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala With Turmeric Rice, Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala With Turmeric Rice, Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala With Turmeric Rice, Chicken Tikka Masala',\n", + " 'score': 0.8383104378501763,\n", + " 'displayNameScore': 0.8383104378501763,\n", + " 'brandName': 'Amazon Fulfillment Services, Inc. - Consumables Private Brands',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606772116',\n", + " 'resultId': '1628606772116',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 340},\n", + " 'name': 'serving (container)',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 459}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Chicken Salad Wawa',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'creamy chicken salad',\n", + " 'longName': 'Chicken Salad Wawa',\n", + " 'scoredName': 'Chicken Salad',\n", + " 'score': 0.8817191066997521,\n", + " 'displayNameScore': 0.7651202614379086,\n", + " 'brandName': 'WAWA',\n", + " 'iconId': 'PRE0075',\n", + " 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c',\n", + " 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211581514',\n", + " 'resultId': '1603211581514',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 108},\n", + " 'name': 'container',\n", + " 'quantity': 1},\n", + " 'calories': 129.60000610351562}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala',\n", + " 'score': 0.8398974358974357,\n", + " 'displayNameScore': 0.8398974358974357,\n", + " 'brandName': 'C. C. Creations, Ltd.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606797814',\n", + " 'resultId': '1628606797814',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 350},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 371}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala',\n", + " 'scoredName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala',\n", + " 'score': 0.8398974358974357,\n", + " 'displayNameScore': 0.8398974358974357,\n", + " 'brandName': 'American Halal Company, Inc. ',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606772600',\n", + " 'resultId': '1628606772600',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 283},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 299.97998046875}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Chicken Salad, Hy-Vee',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'creamy chicken salad',\n", + " 'longName': 'Chicken Salad, Hy-Vee',\n", + " 'scoredName': 'Chicken Salad',\n", + " 'score': 0.8817191066997521,\n", + " 'displayNameScore': 0.7039868531468532,\n", + " 'brandName': 'Hy-Vee, Inc.',\n", + " 'iconId': 'PRE0075',\n", + " 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c',\n", + " 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211581507',\n", + " 'resultId': '1603211581507',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 210},\n", + " 'name': 'cup',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.5]},\n", + " 'calories': 199.49998474121094}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Tikka Masala',\n", + " 'scoredName': 'Tikka Masala',\n", + " 'score': 0.8765333333333333,\n", + " 'displayNameScore': 0.8765333333333333,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood5019503024203',\n", + " 'resultId': 'openfood5019503024203',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 400},\n", + " 'name': 'package',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 388}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Tikka Masala',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Tikka Masala',\n", + " 'scoredName': 'Tikka Masala',\n", + " 'score': 0.8765333333333333,\n", + " 'displayNameScore': 0.8765333333333333,\n", + " 'brandName': 'The Kroger Co.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211333981',\n", + " 'resultId': '1603211333981',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 240},\n", + " 'name': 'cup',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.5]},\n", + " 'calories': 140.40000915527344}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Chicken Salad, Willow Tree Poultry Farm, Inc.',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'creamy chicken salad',\n", + " 'longName': 'Chicken Salad, Willow Tree Poultry Farm, Inc.',\n", + " 'scoredName': 'Chicken Salad',\n", + " 'score': 0.8817191066997521,\n", + " 'displayNameScore': 0.661288152173913,\n", + " 'brandName': 'Willow Tree Poultry Farm, Inc.',\n", + " 'iconId': 'PRE0075',\n", + " 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c',\n", + " 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211581515',\n", + " 'resultId': '1603211581515',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 230},\n", + " 'name': 'cup',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.5]},\n", + " 'calories': 330.04998779296875}},\n", + " {'type': 'synonym',\n", + " 'displayName': ' Starkist Chicken Creations Chicken Salad',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'creamy chicken salad',\n", + " 'longName': ' Starkist Chicken Creations Chicken Salad',\n", + " 'scoredName': 'Chicken Salad',\n", + " 'score': 0.8817191066997521,\n", + " 'displayNameScore': 0.6877124982775251,\n", + " 'brandName': 'StarKist Co.',\n", + " 'iconId': 'PRE0075',\n", + " 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c',\n", + " 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211581512',\n", + " 'resultId': '1603211581512',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 74},\n", + " 'name': 'pouch',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 70.30000305175781}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Chicken Or Turkey Salad, Made With Light Mayonnaise-Type Salad Dressing',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'creamy chicken salad',\n", + " 'longName': 'Chicken Or Turkey Salad, Made With Light Mayonnaise-Type Salad Dressing',\n", + " 'scoredName': 'Chicken Salad',\n", + " 'score': 0.8817191066997521,\n", + " 'displayNameScore': 0.7481664630479505,\n", + " 'brandName': '',\n", + " 'iconId': 'PRE0075',\n", + " 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c',\n", + " 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211579942',\n", + " 'resultId': '1603211579942',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 226},\n", + " 'name': 'cup',\n", + " 'quantity': 0.5},\n", + " 'calories': 163.85000610351562}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Heb Meal Simple, Rotisserie Chicken Salad',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'creamy chicken salad',\n", + " 'longName': 'Heb Meal Simple, Rotisserie Chicken Salad',\n", + " 'scoredName': 'Chicken Salad',\n", + " 'score': 0.8817191066997521,\n", + " 'displayNameScore': 0.6018217190829014,\n", + " 'brandName': 'HEB LP',\n", + " 'iconId': 'PRE0075',\n", + " 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c',\n", + " 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece',\n", + " 'recipeId': '',\n", + " 'referenceId': '1636377087138',\n", + " 'resultId': '1636377087138',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 200},\n", + " 'name': 'cup',\n", + " 'quantity': 0.5},\n", + " 'calories': 310}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Archer Farms, Hatch Chile Chicken Salad',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'creamy chicken salad',\n", + " 'longName': 'Archer Farms, Hatch Chile Chicken Salad',\n", + " 'scoredName': 'Chicken Salad',\n", + " 'score': 0.8817191066997521,\n", + " 'displayNameScore': 0.6096256410256411,\n", + " 'brandName': 'Target Stores',\n", + " 'iconId': 'PRE0075',\n", + " 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c',\n", + " 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211581513',\n", + " 'resultId': '1603211581513',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 200},\n", + " 'name': 'cup',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.5]},\n", + " 'calories': 250}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Lasagna With Chicken Or Turkey',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'chicken lasagna',\n", + " 'longName': 'Lasagna With Chicken Or Turkey',\n", + " 'scoredName': 'Chicken Lasagna',\n", + " 'score': 0.8150696099300334,\n", + " 'displayNameScore': 0.6178499629103862,\n", + " 'brandName': '',\n", + " 'iconId': '1004611',\n", + " 'labelId': 'e7265647-bf83-11ee-a741-3ea322ece7aa',\n", + " 'synonymId': 'e726564a-bf83-11ee-a741-3ea322ece7aa',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211207674',\n", + " 'resultId': '1603211207674',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 250},\n", + " 'name': 'cup',\n", + " 'quantity': 1},\n", + " 'calories': 487.5}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Soft Taco With Chicken And Beans',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'chicken taco',\n", + " 'longName': 'Soft Taco With Chicken And Beans',\n", + " 'scoredName': 'Chicken Taco',\n", + " 'score': 0.8147054647507977,\n", + " 'displayNameScore': 0.5807736465689797,\n", + " 'brandName': '',\n", + " 'iconId': 'BAK0371',\n", + " 'labelId': '3ff67dce-cd55-11ea-ade5-9331bcff0e72',\n", + " 'synonymId': '7a3c170a-7dd6-11eb-8ccb-7b2e436478c5',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211581798',\n", + " 'resultId': '1603211581798',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 110},\n", + " 'name': 'cup',\n", + " 'quantity': 1},\n", + " 'calories': 218.90000915527344}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Fast Foods, Taco With Chicken, Lettuce And Cheese, Soft',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'chicken taco',\n", + " 'longName': 'Fast Foods, Taco With Chicken, Lettuce And Cheese, Soft',\n", + " 'scoredName': 'Chicken Taco',\n", + " 'score': 0.8147054647507977,\n", + " 'displayNameScore': 0.5269856640035998,\n", + " 'brandName': '',\n", + " 'iconId': 'BAK0371',\n", + " 'labelId': '3ff67dce-cd55-11ea-ade5-9331bcff0e72',\n", + " 'synonymId': '7a3c170a-7dd6-11eb-8ccb-7b2e436478c5',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211199494',\n", + " 'resultId': '1603211199494',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 98},\n", + " 'name': 'each taco',\n", + " 'quantity': 2},\n", + " 'calories': 370.44000244140625}},\n", + " {'type': 'recipe',\n", + " 'displayName': 'Garden Salad With Chicken And Ranch Dressing',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'Garden Salad with Chicken and Ranch Dressing',\n", + " 'longName': '',\n", + " 'scoredName': 'Bbq Chicken Salad',\n", + " 'score': 0.708320523594053,\n", + " 'displayNameScore': 0.6026293600138004,\n", + " 'brandName': '',\n", + " 'iconId': '1001615',\n", + " 'labelId': '0f7976ff-392b-11ec-a5ad-966f014fd40b',\n", + " 'synonymId': '5eaefbb8-b9c5-11ee-9c96-12023e19a804',\n", + " 'recipeId': 'd8a715d6-3c0d-11ec-b382-2a201cb157c2',\n", + " 'referenceId': '',\n", + " 'resultId': 'd8a715d6-3c0d-11ec-b382-2a201cb157c2',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 261.05},\n", + " 'name': 'serving',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 309.3480224609375}}],\n", + " 'alternateNames': ['chicken lasagna',\n", + " 'chicken taco',\n", + " 'chicken caesar salad',\n", + " 'creamy chicken salad',\n", + " 'chicken lo mein',\n", + " 'chicken wrap',\n", + " 'chicken chili',\n", + " 'garden salad with chicken',\n", + " 'roasted chicken breast',\n", + " 'breaded chicken slices']}" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "nutritionai_search.invoke(\"chicken tikka masala\")" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "f4f7811e", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'results': [{'type': 'reference',\n", + " 'displayName': 'Schnuck Markets, Sliced Colby Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Schnuck Markets, Sliced Colby Cheese',\n", + " 'scoredName': 'Schnuck Markets, Sliced Colby Cheese',\n", + " 'score': 0.8260839471482273,\n", + " 'displayNameScore': 0.8260839471482273,\n", + " 'brandName': 'Schnuck Markets, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211583771',\n", + " 'resultId': '1603211583771',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 89.93000030517578}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Deli Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Deli Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Deli Sliced Pepper Jack Cheese',\n", + " 'score': 0.7994458979182494,\n", + " 'displayNameScore': 0.7994458979182494,\n", + " 'brandName': \"MEMBER'S MARK\",\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211258689',\n", + " 'resultId': '1603211258689',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 80.00999450683594}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Schnuck Markets, Sharp Cheddar Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Schnuck Markets, Sharp Cheddar Cheese',\n", + " 'scoredName': 'Schnuck Markets, Sharp Cheddar Cheese',\n", + " 'score': 0.7526020855631398,\n", + " 'displayNameScore': 0.7526020855631398,\n", + " 'brandName': 'Schnuck Markets, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211587513',\n", + " 'resultId': '1603211587513',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 112},\n", + " 'name': 'cup',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.25]},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Schnuck Markets, 100% Orange Juice',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'schnuck markets orange juice',\n", + " 'longName': 'Schnuck Markets, 100% Orange Juice',\n", + " 'scoredName': 'Schnuck Markets Orange Juice',\n", + " 'score': 0.7762967477317686,\n", + " 'displayNameScore': 0.7042867981955084,\n", + " 'brandName': 'Schnuck Markets, Inc.',\n", + " 'iconId': 'BEV6847',\n", + " 'labelId': 'c615ae34-1864-11eb-adfc-3b83413d8f0e',\n", + " 'synonymId': '75d0984e-7dd6-11eb-8ccb-8b4d3c813cfc',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211579543',\n", + " 'resultId': '1603211579543',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100},\n", + " 'name': '',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 46}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'pepper jack cheese',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.8119537994687615,\n", + " 'displayNameScore': 0.684663083208887,\n", + " 'brandName': 'Red Apple Cheese LLC',\n", + " 'iconId': 'ZZZ0007',\n", + " 'labelId': '77b96200-8951-11ea-a893-bb8ec34177a7',\n", + " 'synonymId': '78e740d2-7dd6-11eb-8ccb-eb5f7803e432',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211510176',\n", + " 'resultId': '1603211510176',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Kraft, Singles, Pepper Jack, 16 Slices',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'pepper jack cheese',\n", + " 'longName': 'Kraft, Singles, Pepper Jack, 16 Slices',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.8119537994687615,\n", + " 'displayNameScore': 0.6491944672727598,\n", + " 'brandName': 'Kraft Heinz Foods Company',\n", + " 'iconId': 'ZZZ0007',\n", + " 'labelId': '77b96200-8951-11ea-a893-bb8ec34177a7',\n", + " 'synonymId': '78e740d2-7dd6-11eb-8ccb-eb5f7803e432',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606775651',\n", + " 'resultId': '1628606775651',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 60.05999755859375}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Sliced Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Sliced Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Sliced Cheese, Pepper Jack',\n", + " 'score': 0.7039593481666653,\n", + " 'displayNameScore': 0.7039593481666653,\n", + " 'brandName': 'Agri-Mark, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606763935',\n", + " 'resultId': '1628606763935',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 22},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 80.08000183105469}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Sliced Monterey Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Sliced Monterey Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Sliced Monterey Jack Cheese',\n", + " 'score': 0.7221992722724428,\n", + " 'displayNameScore': 0.7221992722724428,\n", + " 'brandName': 'Smart & Final Iris Corporation',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606785609',\n", + " 'resultId': '1628606785609',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23},\n", + " 'name': 'serving (slice)',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 89.93000030517578}},\n", + " {'type': 'reference',\n", + " 'displayName': \"Pierce's Markets, Jack Cheese, Pepper\",\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': \"Pierce's Markets, Jack Cheese, Pepper\",\n", + " 'scoredName': \"Pierce's Markets, Jack Cheese, Pepper\",\n", + " 'score': 0.7006930793893814,\n", + " 'displayNameScore': 0.7006930793893814,\n", + " 'brandName': 'Shullsburg Creamery II, LLC',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211379362',\n", + " 'resultId': '1603211379362',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Schnuck Markets, Nonfat Cottage Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Schnuck Markets, Nonfat Cottage Cheese',\n", + " 'scoredName': 'Schnuck Markets, Nonfat Cottage Cheese',\n", + " 'score': 0.6823787078177321,\n", + " 'displayNameScore': 0.6823787078177321,\n", + " 'brandName': 'Schnuck Markets, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211513966',\n", + " 'resultId': '1603211513966',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 228},\n", + " 'name': 'cup',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.5]},\n", + " 'calories': 79.79999542236328}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Sliced Premium Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Sliced Premium Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Sliced Premium Cheese, Pepper Jack',\n", + " 'score': 0.6605537084398977,\n", + " 'displayNameScore': 0.6605537084398977,\n", + " 'brandName': 'CadaBrand LLC',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606785450',\n", + " 'resultId': '1628606785450',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'synonym',\n", + " 'displayName': 'Meijer, Sliced Colby Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': 'meijer colby jack slice cheese',\n", + " 'longName': 'Meijer, Sliced Colby Jack Cheese',\n", + " 'scoredName': 'Meijer Colby Jack Slice Cheese',\n", + " 'score': 0.6576340421204178,\n", + " 'displayNameScore': 0.6792366436765174,\n", + " 'brandName': 'Meijer, Inc.',\n", + " 'iconId': 'DAI0058',\n", + " 'labelId': 'f25fe338-41ca-11ec-9844-0638b4c1887b',\n", + " 'synonymId': 'f260088c-41ca-11ec-8006-0bda3845e057',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211542856',\n", + " 'resultId': '1603211542856',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 22},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 89.97999572753906}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Sliced Pepper Jack Cheese',\n", + " 'score': 0.8643887804878049,\n", + " 'displayNameScore': 0.8643887804878049,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood0046567042633',\n", + " 'resultId': 'openfood0046567042633',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100},\n", + " 'name': '',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 368.4211120605469}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Sliced Pepper Jack Cheese',\n", + " 'score': 0.8643887804878049,\n", + " 'displayNameScore': 0.8643887804878049,\n", + " 'brandName': 'Lipari Foods Operating Company, LLC',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211480183',\n", + " 'resultId': '1603211480183',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 17},\n", + " 'name': 'slice',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [2]},\n", + " 'calories': 120.02000427246094}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Sliced Pepper Jack Cheese',\n", + " 'score': 0.8643887804878049,\n", + " 'displayNameScore': 0.8643887804878049,\n", + " 'brandName': 'HAOLAM',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211475934',\n", + " 'resultId': '1603211475934',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Sliced Pepper Jack Cheese',\n", + " 'score': 0.8643887804878049,\n", + " 'displayNameScore': 0.8643887804878049,\n", + " 'brandName': \"MILLER'S\",\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211436119',\n", + " 'resultId': '1603211436119',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Sliced Pepper Jack Cheese',\n", + " 'score': 0.8643887804878049,\n", + " 'displayNameScore': 0.8643887804878049,\n", + " 'brandName': 'BONAGARDS',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211372208',\n", + " 'resultId': '1603211372208',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 80.00999450683594}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Sliced Pepper Jack Cheese',\n", + " 'score': 0.8643887804878049,\n", + " 'displayNameScore': 0.8643887804878049,\n", + " 'brandName': 'Dietz & Watson Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211304686',\n", + " 'resultId': '1603211304686',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 80.00999450683594}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Sliced Pepper Jack Cheese',\n", + " 'score': 0.8643887804878049,\n", + " 'displayNameScore': 0.8643887804878049,\n", + " 'brandName': 'Brookshire Grocery Company',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211296111',\n", + " 'resultId': '1603211296111',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 89.93000030517578}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Sliced Pepper Jack Cheese',\n", + " 'score': 0.8643887804878049,\n", + " 'displayNameScore': 0.8643887804878049,\n", + " 'brandName': 'Schreiber Foods, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211292937',\n", + " 'resultId': '1603211292937',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 80.00999450683594}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack Cheese',\n", + " 'scoredName': 'Sliced Pepper Jack Cheese',\n", + " 'score': 0.8643887804878049,\n", + " 'displayNameScore': 0.8643887804878049,\n", + " 'brandName': 'Tops Markets, LLC',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211277022',\n", + " 'resultId': '1603211277022',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 89.93000030517578}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Shredded Asiago Cheese, Schnuck Markets,',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Shredded Asiago Cheese, Schnuck Markets,',\n", + " 'scoredName': 'Shredded Asiago Cheese, Schnuck Markets,',\n", + " 'score': 0.6043672467408867,\n", + " 'displayNameScore': 0.6043672467408867,\n", + " 'brandName': 'Schnuck Markets, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211505874',\n", + " 'resultId': '1603211505874',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 2.5},\n", + " 'name': 'tsp',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [2]},\n", + " 'calories': 20}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': 'Harris-Teeter Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606767984',\n", + " 'resultId': '1628606767984',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': 'The Deli Source, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606764221',\n", + " 'resultId': '1628606764221',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': 'Rainbow Games Inc',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606764066',\n", + " 'resultId': '1628606764066',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': 'Maple Leaf Sales, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211558154',\n", + " 'resultId': '1603211558154',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': \"HENNING'S\",\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211536513',\n", + " 'resultId': '1603211536513',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': 'Brookshire Grocery Company',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211535454',\n", + " 'resultId': '1603211535454',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': 'STATER BROS.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211529811',\n", + " 'resultId': '1603211529811',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': 'Festive Finer Foods',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211526029',\n", + " 'resultId': '1603211526029',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': 'SPARTAN',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211516402',\n", + " 'resultId': '1603211516402',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Cheese, Pepper Jack',\n", + " 'score': 0.6395190398376865,\n", + " 'displayNameScore': 0.6395190398376865,\n", + " 'brandName': 'SHURFINE',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211392349',\n", + " 'resultId': '1603211392349',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 80.00999450683594}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Sliced Monterey Jack Cheese With Peppers, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Sliced Monterey Jack Cheese With Peppers, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Sliced Monterey Jack Cheese With Peppers, Pepper Jack',\n", + " 'score': 0.6726903064415259,\n", + " 'displayNameScore': 0.6726903064415259,\n", + " 'brandName': 'FIRST STREET',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211521430',\n", + " 'resultId': '1603211521430',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Monterey Jack Cheese With Jalapeno Peppers Sliced Cheese, Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Monterey Jack Cheese With Jalapeno Peppers Sliced Cheese, Pepper Jack',\n", + " 'scoredName': 'Pepper Jack Monterey Jack Cheese With Jalapeno Peppers Sliced Cheese, Pepper Jack',\n", + " 'score': 0.6707702383434091,\n", + " 'displayNameScore': 0.6707702383434091,\n", + " 'brandName': 'Wegmans Food Markets, Inc. ',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1628606768346',\n", + " 'resultId': '1628606768346',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 80.00999450683594}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Part-Skim Ricotta Cheese, Schnuck Markets',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Part-Skim Ricotta Cheese, Schnuck Markets',\n", + " 'scoredName': 'Part-Skim Ricotta Cheese, Schnuck Markets',\n", + " 'score': 0.584708715103024,\n", + " 'displayNameScore': 0.584708715103024,\n", + " 'brandName': 'Schnuck Markets, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211581343',\n", + " 'resultId': '1603211581343',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 248},\n", + " 'name': 'cup',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.25]},\n", + " 'calories': 89.9000015258789}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Parmesan Cheese, Parmesan Schnuck Markets, Inc.',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Parmesan Cheese, Parmesan Schnuck Markets, Inc.',\n", + " 'scoredName': 'Parmesan Cheese, Parmesan Schnuck Markets, Inc.',\n", + " 'score': 0.5804549228139668,\n", + " 'displayNameScore': 0.5804549228139668,\n", + " 'brandName': 'Schnuck Markets, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211492403',\n", + " 'resultId': '1603211492403',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 112},\n", + " 'name': 'cup',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [0.25]},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Sliced Pepper Jack',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Sliced Pepper Jack',\n", + " 'scoredName': 'Sliced Pepper Jack',\n", + " 'score': 0.8041506775067749,\n", + " 'displayNameScore': 0.8041506775067749,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood0080364402177',\n", + " 'resultId': 'openfood0080364402177',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100},\n", + " 'name': '',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 352.9411926269531}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'SARGENTO FOODS INC.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood04672519',\n", + " 'resultId': 'openfood04672519',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21},\n", + " 'name': 'serving (piece)',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [1]},\n", + " 'calories': 80}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': '',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': 'openfood0011213384443',\n", + " 'resultId': 'openfood0011213384443',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'serving',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'Meijer, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211542485',\n", + " 'resultId': '1603211542485',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 22},\n", + " 'name': 'slice',\n", + " 'quantity': 1},\n", + " 'calories': 80.08000183105469}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'Brookshire Grocery Company',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211480105',\n", + " 'resultId': '1603211480105',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 9.33},\n", + " 'name': 'slice',\n", + " 'quantity': 1,\n", + " 'suggestedQuantity': [3]},\n", + " 'calories': 99.92430114746094}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'ECKRICH DELI',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211450557',\n", + " 'resultId': '1603211450557',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'FOODTOWN',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211440863',\n", + " 'resultId': '1603211440863',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'WEYAUWEGA STAR DAIRY',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211437307',\n", + " 'resultId': '1603211437307',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'Pearl Valley Cheese, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211414077',\n", + " 'resultId': '1603211414077',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 30},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 120.00000762939453}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'Ingles Markets Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211394213',\n", + " 'resultId': '1603211394213',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'Topco Associates, Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211393313',\n", + " 'resultId': '1603211393313',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'SPRING HAVEN FARMS',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211379458',\n", + " 'resultId': '1603211379458',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 110.04000091552734}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': \"HAYDEN'S FARMSTEAD CHEESE\",\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211379238',\n", + " 'resultId': '1603211379238',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}},\n", + " {'type': 'reference',\n", + " 'displayName': 'Pepper Jack Cheese',\n", + " 'stemmedDisplayName': '',\n", + " 'shortName': '',\n", + " 'longName': 'Pepper Jack Cheese',\n", + " 'scoredName': 'Pepper Jack Cheese',\n", + " 'score': 0.766809756097561,\n", + " 'displayNameScore': 0.766809756097561,\n", + " 'brandName': 'Empire Cheese Inc.',\n", + " 'iconId': '',\n", + " 'labelId': '',\n", + " 'synonymId': '',\n", + " 'recipeId': '',\n", + " 'referenceId': '1603211366205',\n", + " 'resultId': '1603211366205',\n", + " 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28},\n", + " 'name': 'oz',\n", + " 'quantity': 1},\n", + " 'calories': 99.95999908447266}}],\n", + " 'alternateNames': ['meijer colby jack slice cheese',\n", + " 'schnuck markets orange juice',\n", + " 'pepper jack cheese',\n", + " 'pepper jack cheese cubes',\n", + " 'sliced muenster cheese',\n", + " 'sliced mozzarella cheese',\n", + " 'cheese-stuffed peppers',\n", + " 'sliced colby cheese']}" + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "nutritionai_search.invoke(\"Schnuck Markets sliced pepper jack cheese\")" + ] + }, + { + "cell_type": "markdown", + "id": "c3b47c1d", + "metadata": {}, + "source": [ + "### Tools\n", + "\n", + "Now that we have the tool, we can create a list of tools that we will use downstream." + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "id": "b8e8e710", + "metadata": {}, + "outputs": [], + "source": [ + "tools = [nutritionai_search]" + ] + }, + { + "cell_type": "markdown", + "id": "40ccec80", + "metadata": {}, + "source": [ + "## Create the agent\n", + "\n", + "Now that we have defined the tools, we can create the agent. We will be using an OpenAI Functions agent - for more information on this type of agent, as well as other options, see [this guide](./agent_types)\n", + "\n", + "First, we choose the LLM we want to be guiding the agent." + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "f70b0fad", + "metadata": {}, + "outputs": [], + "source": [ + "from langchain_openai import ChatOpenAI\n", + "\n", + "llm = ChatOpenAI(model=\"gpt-3.5-turbo\", temperature=0)" + ] + }, + { + "cell_type": "markdown", + "id": "5d1a95ce", + "metadata": {}, + "source": [ + "Next, we choose the prompt we want to use to guide the agent." + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "af83d3e3", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[SystemMessagePromptTemplate(prompt=PromptTemplate(input_variables=[], template='You are a helpful assistant')),\n", + " MessagesPlaceholder(variable_name='chat_history', optional=True),\n", + " HumanMessagePromptTemplate(prompt=PromptTemplate(input_variables=['input'], template='{input}')),\n", + " MessagesPlaceholder(variable_name='agent_scratchpad')]" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from langchain import hub\n", + "\n", + "# Get the prompt to use - you can modify this!\n", + "prompt = hub.pull(\"hwchase17/openai-functions-agent\")\n", + "prompt.messages" + ] + }, + { + "cell_type": "markdown", + "id": "f8014c9d", + "metadata": {}, + "source": [ + "Now, we can initalize the agent with the LLM, the prompt, and the tools. The agent is responsible for taking in input and deciding what actions to take. Crucially, the Agent does not execute those actions - that is done by the AgentExecutor (next step). For more information about how to think about these components, see our [conceptual guide](./concepts)" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "89cf72b4-6046-4b47-8f27-5522d8cb8036", + "metadata": {}, + "outputs": [], + "source": [ + "from langchain.agents import create_openai_functions_agent\n", + "\n", + "agent = create_openai_functions_agent(llm, tools, prompt)" + ] + }, + { + "cell_type": "markdown", + "id": "1a58c9f8", + "metadata": {}, + "source": [ + "Finally, we combine the agent (the brains) with the tools inside the AgentExecutor (which will repeatedly call the agent and execute tools). For more information about how to think about these components, see our [conceptual guide](./concepts)" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "id": "ce33904a", + "metadata": {}, + "outputs": [], + "source": [ + "from langchain.agents import AgentExecutor\n", + "\n", + "agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)" + ] + }, + { + "cell_type": "markdown", + "id": "e4df0e06", + "metadata": {}, + "source": [ + "## Run the agent\n", + "\n", + "We can now run the agent on a few queries! Note that for now, these are all **stateless** queries (it won't remember previous interactions)." + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "id": "114ba50d", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3mHello! How can I assist you today?\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" + ] + }, + { + "data": { + "text/plain": [ + "{'input': 'hi!', 'output': 'Hello! How can I assist you today?'}" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "agent_executor.invoke({\"input\": \"hi!\"})" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "id": "3fa4780a", + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `nutritionai_advanced_search` with `{'query': 'slice of pepperoni pizza'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[36;1m\u001b[1;3m{'results': [{'type': 'synonym', 'displayName': 'Fast Food, Pizza Chain, 14\" Pizza, Pepperoni Topping, Regular Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Fast Food, Pizza Chain, 14\" Pizza, Pepperoni Topping, Regular Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6534380115251439, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199398', 'resultId': '1603211199398', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 111}, 'name': 'slice', 'quantity': 1}, 'calories': 313.0199890136719}}, {'type': 'synonym', 'displayName': 'Little Caesars 14\" Original Round Pepperoni Pizza, Regular Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Little Caesars 14\" Original Round Pepperoni Pizza, Regular Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.7325199740203867, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199317', 'resultId': '1603211199317', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 90}, 'name': 'slice', 'quantity': 1}, 'calories': 245.6999969482422}}, {'type': 'synonym', 'displayName': 'Little Caesars 14\" Pepperoni Pizza, Large Deep Dish Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Little Caesars 14\" Pepperoni Pizza, Large Deep Dish Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.7201931776395608, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199393', 'resultId': '1603211199393', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 104}, 'name': 'slice', 'quantity': 1}, 'calories': 275.5999755859375}}, {'type': 'synonym', 'displayName': 'Papa John\\'s 14\" Pepperoni Pizza, Original Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Papa John\\'s 14\" Pepperoni Pizza, Original Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6968554341169094, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199390', 'resultId': '1603211199390', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 123}, 'name': 'slice', 'quantity': 1}, 'calories': 338.25}}, {'type': 'synonym', 'displayName': 'Domino\\'s 14\" Pepperoni Pizza, Classic Hand-Tossed Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Domino\\'s 14\" Pepperoni Pizza, Classic Hand-Tossed Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6899227102881633, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199314', 'resultId': '1603211199314', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 113}, 'name': 'slice', 'quantity': 1}, 'calories': 308.489990234375}}, {'type': 'synonym', 'displayName': 'Domino\\'s 14\" Pepperoni Pizza, Ultimate Deep Dish Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Domino\\'s 14\" Pepperoni Pizza, Ultimate Deep Dish Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6847983235637767, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199315', 'resultId': '1603211199315', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 123}, 'name': 'slice', 'quantity': 1}, 'calories': 348.0899963378906}}, {'type': 'synonym', 'displayName': 'Pizza Hut 12\" Pepperoni Pizza, Pan Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Pizza Hut 12\" Pepperoni Pizza, Pan Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6691110331076223, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199388', 'resultId': '1603211199388', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 96}, 'name': 'slice', 'quantity': 1}, 'calories': 286.0799865722656}}, {'type': 'synonym', 'displayName': 'Pizza Hut 14\" Pepperoni Pizza, Pan Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Pizza Hut 14\" Pepperoni Pizza, Pan Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6691110331076223, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199322', 'resultId': '1603211199322', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 113}, 'name': 'slice', 'quantity': 1}, 'calories': 328.8299865722656}}, {'type': 'synonym', 'displayName': 'Fast Food, Pizza Chain, 14\" Pizza, Pepperoni Topping, Thick Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Fast Food, Pizza Chain, 14\" Pizza, Pepperoni Topping, Thick Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6611580341596942, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199399', 'resultId': '1603211199399', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 118}, 'name': 'slice', 'quantity': 1}, 'calories': 338.65997314453125}}, {'type': 'synonym', 'displayName': 'Pizza Hut 12\" Pepperoni Pizza, Hand-Tossed Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Pizza Hut 12\" Pepperoni Pizza, Hand-Tossed Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6522596762207815, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199387', 'resultId': '1603211199387', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 96}, 'name': 'slice', 'quantity': 1}, 'calories': 268.79998779296875}}, {'type': 'synonym', 'displayName': 'Pizza Hut 14\" Pepperoni Pizza, Hand-Tossed Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Pizza Hut 14\" Pepperoni Pizza, Hand-Tossed Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6522596762207815, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199321', 'resultId': '1603211199321', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 110}, 'name': 'slice', 'quantity': 1}, 'calories': 320.1000061035156}}, {'type': 'synonym', 'displayName': 'Fast Food, Pizza Chain, 14\" Pizza, Pepperoni Topping, Thin Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Fast Food, Pizza Chain, 14\" Pizza, Pepperoni Topping, Thin Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6500950230445005, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199493', 'resultId': '1603211199493', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 79}, 'name': 'slice', 'quantity': 1}, 'calories': 261.4900207519531}}, {'type': 'synonym', 'displayName': 'Pizza Hut 14\" Pepperoni Pizza, Thin \\'N Crispy Crust', 'stemmedDisplayName': '', 'shortName': 'slice of pepperoni pizza', 'longName': 'Pizza Hut 14\" Pepperoni Pizza, Thin \\'N Crispy Crust', 'scoredName': 'Slice Of Pepperoni Pizza', 'score': 1, 'displayNameScore': 0.6405047998410058, 'brandName': '', 'iconId': '1003594', 'labelId': '1f1bf95c-3256-11ed-920f-7e029295fe1f', 'synonymId': '1f1bf95f-3256-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1603211199539', 'resultId': '1603211199539', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 80}, 'name': 'slice', 'quantity': 1}, 'calories': 266.3999938964844}}, {'type': 'synonym', 'displayName': 'Veggieful Plant Based Pepperoni Pizza Pocket Pies', 'stemmedDisplayName': '', 'shortName': 'pepperoni pizza', 'longName': 'Veggieful Plant Based Pepperoni Pizza Pocket Pies', 'scoredName': 'Pepperoni Pizza', 'score': 0.9221171171171171, 'displayNameScore': 0.7075380492062102, 'brandName': 'Del Monte', 'iconId': 'PRE0029', 'labelId': '0c21d8a6-9c84-11ea-a210-d777e2c629bd', 'synonymId': 'f7d039ef-3258-11ed-920f-7e029295fe1f', 'recipeId': '', 'referenceId': '1695480616643', 'resultId': '1695480616643', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 228}, 'name': 'serving', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 250}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': \"PAPA ENZO'S\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'usda45256149', 'resultId': 'usda45256149', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 850.2994}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.167]}, 'calories': 380.5599670410156}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood7035620031144', 'resultId': 'openfood7035620031144', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 216}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': \"DOREEN'S\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211551960', 'resultId': '1603211551960', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 740}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.2]}, 'calories': 390.7200012207031}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': \"SHAKESPEARE'S PIZZA\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211544533', 'resultId': '1603211544533', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 720}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.2]}, 'calories': 440.6399841308594}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Nestle USA Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211523897', 'resultId': '1603211523897', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 735}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.2]}, 'calories': 430.71002197265625}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'ALE HAUS', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211516675', 'resultId': '1603211516675', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 778.44}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.17]}, 'calories': 325.5436096191406}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Meijer, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211511710', 'resultId': '1603211511710', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 438.44}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.33]}, 'calories': 347.2444763183594}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'TOMBSTONE PIZZA', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211508426', 'resultId': '1603211508426', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 548}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.25]}, 'calories': 360.30999755859375}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': \"PAPA JOHN'S SALAD & PRODUCE\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211471258', 'resultId': '1603211471258', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 89}, 'name': 'piece', 'quantity': 1}, 'calories': 229.6199951171875}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': \"LUIGI & RAFFAELE'S LLC\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211464038', 'resultId': '1603211464038', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 432.43}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.33]}, 'calories': 306.80908203125}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'DAVIS BROS. PIZZA', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211442291', 'resultId': '1603211442291', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 363.36}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.33]}, 'calories': 316.5592346191406}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'BEST CHOICE', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211431353', 'resultId': '1603211431353', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 922.16}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.17]}, 'calories': 387.2149658203125}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Palermo Villa Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211416427', 'resultId': '1603211416427', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 690}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.2]}, 'calories': 369.84002685546875}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Food Town Stores Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211414685', 'resultId': '1603211414685', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 1176}, 'name': 'pizaa', 'quantity': 1, 'suggestedQuantity': [0.12]}, 'calories': 345.7439880371094}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'NOT A BRANDED ITEM', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211409932', 'resultId': '1603211409932', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 85}, 'name': 'piece', 'quantity': 1}, 'calories': 199.75}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Ahold USA, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211392886', 'resultId': '1603211392886', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 612}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.25]}, 'calories': 379.44000244140625}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'LAND MARK PRODUCTS, INC.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211388611', 'resultId': '1603211388611', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': 'slice', 'quantity': 1}, 'calories': 240}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Safeway, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211369397', 'resultId': '1603211369397', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 635}, 'name': 'of pizza', 'quantity': 1, 'suggestedQuantity': [0.2]}, 'calories': 350.5199890136719}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'ARCHER FARMS', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211355150', 'resultId': '1603211355150', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 711.76}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.17]}, 'calories': 279.5081481933594}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'SE GROCERS', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211347597', 'resultId': '1603211347597', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 826.35}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.17]}, 'calories': 345.57958984375}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Dr. Oetker USA, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211327738', 'resultId': '1603211327738', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 60}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [2]}, 'calories': 260.4000244140625}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'FESTIVAL FOODS', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211324914', 'resultId': '1603211324914', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 650}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.2]}, 'calories': 340.6000061035156}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Taylor Fresh Foods, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211324896', 'resultId': '1603211324896', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 590.91}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.33]}, 'calories': 520.6508178710938}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Mama Bosso Pizza, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211323915', 'resultId': '1603211323915', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 568}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.25]}, 'calories': 289.67999267578125}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Gateway Foods Inc', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211322054', 'resultId': '1603211322054', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 184}, 'name': 'pizza', 'quantity': 1}, 'calories': 460}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': \"TJ'S PIZZA CO., INC.\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211321998', 'resultId': '1603211321998', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 32}, 'name': 'slice', 'quantity': 1}, 'calories': 80}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': \"TINA'S\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211320479', 'resultId': '1603211320479', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 113}, 'name': 'go roll', 'quantity': 1}, 'calories': 280.239990234375}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Wal-Mart Stores, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211320257', 'resultId': '1603211320257', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 540}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.25]}, 'calories': 360.45001220703125}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'POPLIES', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211318803', 'resultId': '1603211318803', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.33}, 'name': 'piece', 'quantity': 1, 'suggestedQuantity': [3]}, 'calories': 209.92532348632812}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': \"Bernatello's Pizza, Inc.\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211309094', 'resultId': '1603211309094', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 660}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.2]}, 'calories': 349.8000183105469}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'H.J. Heinz Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211307002', 'resultId': '1603211307002', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 173}, 'name': 'pizza', 'quantity': 1}, 'calories': 430.77001953125}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'FOX DE LUXE', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211300996', 'resultId': '1603211300996', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 360.36}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.33]}, 'calories': 317.51318359375}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211300687', 'resultId': '1603211300687', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 608}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.25]}, 'calories': 360.239990234375}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'Supervalu, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211289955', 'resultId': '1603211289955', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 409.09}, 'name': 'pizza', 'quantity': 1, 'suggestedQuantity': [0.33]}, 'calories': 369.8992004394531}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'FIESTA', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211289647', 'resultId': '1603211289647', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 147}, 'name': 'pizza', 'quantity': 1}, 'calories': 389.5500183105469}}, {'type': 'reference', 'displayName': 'Pepperoni Pizza', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepperoni Pizza', 'scoredName': 'Pepperoni Pizza', 'score': 0.872117117117117, 'displayNameScore': 0.872117117117117, 'brandName': 'The Federated Group, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211289634', 'resultId': '1603211289634', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 147}, 'name': 'pizza', 'quantity': 1}, 'calories': 389.5500183105469}}], 'alternateNames': ['slice of pepperoni pizza', 'pepperoni pizza', 'slice of meat pizza', 'slice of tuna pizza', 'slice of white pizza', 'slice of cheese pizza', 'slice of supreme pizza', 'slice of seafood pizza', 'slice of pizza rucola', 'slice of chicken pizza', 'slice of sausage pizza']}\u001b[0m\u001b[32;1m\u001b[1;3mA slice of pepperoni pizza typically contains around 245-350 calories, depending on the specific brand and type of crust.\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" + ] + }, + { + "data": { + "text/plain": [ + "{'input': 'how many calories are in a slice pepperoni pizza?',\n", + " 'output': 'A slice of pepperoni pizza typically contains around 245-350 calories, depending on the specific brand and type of crust.'}" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "agent_executor.invoke({\"input\": \"how many calories are in a slice pepperoni pizza?\"})" + ] + }, + { + "cell_type": "markdown", + "id": "07b3bcf2", + "metadata": {}, + "source": [ + "If we want to keep track of these messages automatically, we can wrap this in a RunnableWithMessageHistory. For more information on how to use this, see [this guide](/docs/expression_language/how_to/message_history)" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "id": "8edd96e6", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `nutritionai_advanced_search` with `{'query': 'bacon and eggs'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[36;1m\u001b[1;3m{'results': [{'type': 'recipe', 'displayName': 'English Muffin With Egg, Bacon And Cheese', 'stemmedDisplayName': '', 'shortName': 'English Muffin with Egg, Bacon and Cheese', 'longName': '', 'scoredName': 'Bacon And Egg Mcmuffin', 'score': 0.9336296056884292, 'displayNameScore': 0.7684418158923452, 'brandName': '', 'iconId': 'PRE0398', 'labelId': 'fccdbf14-cc85-11ea-965a-ab82c246b581', 'synonymId': '75da9f7e-7dd6-11eb-8ccb-c3fcc89180a9', 'recipeId': '68d57155-da31-11ec-b94d-ded9c6f70628', 'referenceId': '', 'resultId': '68d57155-da31-11ec-b94d-ded9c6f70628', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 148.1}, 'name': 'serving', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 331.40802001953125}}, {'type': 'recipe', 'displayName': 'Puff Pastry Filled With Bacon And Egg', 'stemmedDisplayName': '', 'shortName': 'puff pastry filled with bacon and egg', 'longName': '', 'scoredName': 'Bacon And Egg Cups', 'score': 0.9230363661479553, 'displayNameScore': 0.7166794990768024, 'brandName': '', 'iconId': 'PRE0216', 'labelId': '97550018-a14a-11ea-9bbc-b7fd1a1440b9', 'synonymId': '77f3544a-7dd6-11eb-8ccb-5f57fa05d1f4', 'recipeId': '639e70a9-d1c2-11ea-b7c8-5e3d41bb5594', 'referenceId': '', 'resultId': '639e70a9-d1c2-11ea-b7c8-5e3d41bb5594', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 125.1}, 'name': 'serving', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 481.4480285644531}}, {'type': 'synonym', 'displayName': 'Pork, Cured, Bacon, Pre-Sliced, Cooked, Pan-Fried', 'stemmedDisplayName': '', 'shortName': 'bacon', 'longName': 'Pork, Cured, Bacon, Pre-Sliced, Cooked, Pan-Fried', 'scoredName': 'Bacon', 'score': 0.9100176165815452, 'displayNameScore': 0.6209159345468147, 'brandName': '', 'iconId': 'MEA0013', 'labelId': '77b122ac-8951-11ea-a893-4f5fdf3385ca', 'synonymId': '107744b4-bda8-11ee-a741-3ea322ece7aa', 'recipeId': '', 'referenceId': '1603211568415', 'resultId': '1603211568415', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 11.5}, 'name': 'slice', 'quantity': 1}, 'calories': 53.81999969482422}}, {'type': 'synonym', 'displayName': 'Pork, Cured, Bacon, Cooked, Baked', 'stemmedDisplayName': '', 'shortName': 'bacon', 'longName': 'Pork, Cured, Bacon, Cooked, Baked', 'scoredName': 'Bacon', 'score': 0.9100176165815452, 'displayNameScore': 0.6071200239780703, 'brandName': '', 'iconId': 'MEA0013', 'labelId': '77b122ac-8951-11ea-a893-4f5fdf3385ca', 'synonymId': '107744b4-bda8-11ee-a741-3ea322ece7aa', 'recipeId': '', 'referenceId': '1603211574935', 'resultId': '1603211574935', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 8.1}, 'name': 'slice cooked', 'quantity': 1}, 'calories': 133.16400146484375}}, {'type': 'synonym', 'displayName': 'Smithfield, Hickory Smoked Hometown Original Bacon', 'stemmedDisplayName': '', 'shortName': 'bacon', 'longName': 'Smithfield, Hickory Smoked Hometown Original Bacon', 'scoredName': 'Bacon', 'score': 0.9100176165815452, 'displayNameScore': 0.5666352657255702, 'brandName': 'Smithfield Farmland Corp.', 'iconId': 'MEA0013', 'labelId': '77b122ac-8951-11ea-a893-4f5fdf3385ca', 'synonymId': '107744b4-bda8-11ee-a741-3ea322ece7aa', 'recipeId': '', 'referenceId': 'usda45113302', 'resultId': 'usda45113302', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 9.5}, 'name': 'slice', 'quantity': 2}, 'calories': 160}}, {'type': 'recipe', 'displayName': 'Breakfast Biscuit Sandwich With Bacon, Egg And Cheese', 'stemmedDisplayName': '', 'shortName': 'Breakfast Biscuit Sandwich with Bacon, Egg and Cheese', 'longName': '', 'scoredName': 'Bacon Egg And Cheese Biscuit Sandwich', 'score': 0.8463033137055694, 'displayNameScore': 0.7216498048191765, 'brandName': '', 'iconId': 'MEA0171', 'labelId': '584c0d7e-cd20-11ea-84a7-a3665ba34035', 'synonymId': '7759f692-7dd6-11eb-8ccb-3bee1a952fbe', 'recipeId': 'f81c53e7-da35-11ec-b94d-ded9c6f70628', 'referenceId': '', 'resultId': 'f81c53e7-da35-11ec-b94d-ded9c6f70628', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 157.20001}, 'name': 'serving', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 462.45501708984375}}, {'type': 'reference', 'displayName': 'Bacon N Eggs', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon N Eggs', 'scoredName': 'Bacon N Eggs', 'score': 0.6852272727272728, 'displayNameScore': 0.6852272727272728, 'brandName': 'CHEESEWICH', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211456734', 'resultId': '1603211456734', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 101}, 'name': 'package', 'quantity': 1}, 'calories': 169.67999267578125}}, {'type': 'recipe', 'displayName': 'Bacon, Egg And Cheese Breakfast Biscuit', 'stemmedDisplayName': '', 'shortName': 'Bacon, Egg and Cheese Breakfast Biscuit', 'longName': '', 'scoredName': 'Bacon, Egg And Cheese Breakfast Biscuit', 'score': 0.825879545922035, 'displayNameScore': 0.825879545922035, 'brandName': '', 'iconId': 'PRE0395', 'labelId': 'bd7be66a-cc85-11ea-b544-e7d406036a6b', 'synonymId': '7bd3973c-7dd6-11eb-8ccb-d330945f017a', 'recipeId': 'ae7cc89d-c7d1-11ec-b9e6-86ba9b4ceb92', 'referenceId': '', 'resultId': 'ae7cc89d-c7d1-11ec-b9e6-86ba9b4ceb92', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 157.20001}, 'name': 'serving', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 462.45501708984375}}, {'type': 'synonym', 'displayName': 'Bacon Bits', 'stemmedDisplayName': '', 'shortName': 'roasted bacon bits', 'longName': 'Bacon Bits', 'scoredName': 'Bacon Bits', 'score': 0.7341423805584743, 'displayNameScore': 0.7341423805584743, 'brandName': '', 'iconId': 'MEA0133', 'labelId': 'adc84b7c-a913-11ea-b054-d325f5de5b24', 'synonymId': 'd141bdbb-bc22-11ee-bee4-5657e6be0931', 'recipeId': '', 'referenceId': '1603211487577', 'resultId': '1603211487577', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 7}, 'name': 'tbsp', 'quantity': 1}, 'calories': 33.31999969482422}}, {'type': 'reference', 'displayName': 'Bacon And Egg Sandwich', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon And Egg Sandwich', 'scoredName': 'Bacon And Egg Sandwich', 'score': 0.6943438914027149, 'displayNameScore': 0.6943438914027149, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211204979', 'resultId': '1603211204979', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 177}, 'name': 'sandwich', 'quantity': 1}, 'calories': 419.489990234375}}, {'type': 'reference', 'displayName': 'Bacon Ends And Pieces', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon Ends And Pieces', 'scoredName': 'Bacon Ends And Pieces', 'score': 0.6205794205794206, 'displayNameScore': 0.6205794205794206, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0041220710348', 'resultId': 'openfood0041220710348', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 226.78}, 'name': 'serving', 'quantity': 1}, 'calories': 1220.076416015625}}, {'type': 'recipe', 'displayName': 'Salmorejo With Egg And Bacon', 'stemmedDisplayName': '', 'shortName': 'Salmorejo with Egg and Bacon', 'longName': '', 'scoredName': 'Salmorejo With Egg And Bacon', 'score': 0.7029796937356609, 'displayNameScore': 0.7029796937356609, 'brandName': '', 'iconId': '1003574', 'labelId': '5ced9ded-220e-11ed-b784-423343ed83d7', 'synonymId': '', 'recipeId': '592f936f-303e-11ed-8dec-eeac0e24d08d', 'referenceId': '', 'resultId': '592f936f-303e-11ed-8dec-eeac0e24d08d', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 215.5}, 'name': 'serving', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 196.4949951171875}}, {'type': 'synonym', 'displayName': 'Kirkland Signature Bacon Crumbles', 'stemmedDisplayName': '', 'shortName': 'roasted bacon bits', 'longName': 'Kirkland Signature Bacon Crumbles', 'scoredName': 'Bacon Bits', 'score': 0.7341423805584743, 'displayNameScore': 0.6210604624765562, 'brandName': 'Kirkland', 'iconId': 'MEA0133', 'labelId': 'adc84b7c-a913-11ea-b054-d325f5de5b24', 'synonymId': 'd141bdbb-bc22-11ee-bee4-5657e6be0931', 'recipeId': '', 'referenceId': '1649206160053', 'resultId': '1649206160053', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 7}, 'name': 'tbsp', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 30.000001907348633}}, {'type': 'reference', 'displayName': 'Bacon, Egg And Cheese Biscuits, Bacon, Egg And Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon, Egg And Cheese Biscuits, Bacon, Egg And Cheese', 'scoredName': 'Bacon, Egg And Cheese Biscuits, Bacon, Egg And Cheese', 'score': 0.5964793696869168, 'displayNameScore': 0.5964793696869168, 'brandName': 'Hy-Vee, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211452535', 'resultId': '1603211452535', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 103}, 'name': 'sandwich', 'quantity': 1}, 'calories': 290.4599914550781}}, {'type': 'recipe', 'displayName': 'Half Avocado With Baked Egg', 'stemmedDisplayName': '', 'shortName': 'half avocado with baked egg', 'longName': '', 'scoredName': 'Avocado Baked Eggs', 'score': 0.7144221809152558, 'displayNameScore': 0.6374807889738641, 'brandName': '', 'iconId': 'MEA0012', 'labelId': '8d00cea0-9c3e-11ea-a4a0-67737b75a520', 'synonymId': 'c576b761-7df2-11eb-86a6-2ef1fa583c8e', 'recipeId': 'b0089f49-cdbd-11ea-9bcf-d67899977539', 'referenceId': '', 'resultId': 'b0089f49-cdbd-11ea-9bcf-d67899977539', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 147}, 'name': 'avocado', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 125.90826183511126}}, {'type': 'reference', 'displayName': 'Cheddar And Bacon Free Range Eggs', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Cheddar And Bacon Free Range Eggs', 'scoredName': 'Cheddar And Bacon Free Range Eggs', 'score': 0.5924458874458873, 'displayNameScore': 0.5924458874458873, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood3599010074035', 'resultId': 'openfood3599010074035', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 2}, 'name': 'serving', 'quantity': 1}, 'calories': 238}}, {'type': 'reference', 'displayName': 'Bacon Scrambles A Crust Topped With Gravy, Bacon, Scrambled Eggs, Mozzarella And Cheddar Cheese, Bacon Scrambles', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon Scrambles A Crust Topped With Gravy, Bacon, Scrambled Eggs, Mozzarella And Cheddar Cheese, Bacon Scrambles', 'scoredName': 'Bacon Scrambles A Crust Topped With Gravy, Bacon, Scrambled Eggs, Mozzarella And Cheddar Cheese, Bacon Scrambles', 'score': 0.5868801843317972, 'displayNameScore': 0.5868801843317972, 'brandName': 'The Schwan Food Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211509552', 'resultId': '1603211509552', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 166}, 'name': 'piece', 'quantity': 1}, 'calories': 439.8999938964844}}, {'type': 'reference', 'displayName': 'Bacon Hearty Potatoes, Scrambled Eggs And Bacon In A Creamy Cheddar Cheese Sauce Breakfast Bowl, Bacon', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon Hearty Potatoes, Scrambled Eggs And Bacon In A Creamy Cheddar Cheese Sauce Breakfast Bowl, Bacon', 'scoredName': 'Bacon Hearty Potatoes, Scrambled Eggs And Bacon In A Creamy Cheddar Cheese Sauce Breakfast Bowl, Bacon', 'score': 0.5801012826183105, 'displayNameScore': 0.5801012826183105, 'brandName': 'Topco Associates, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211455552', 'resultId': '1603211455552', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 198}, 'name': 'bowl', 'quantity': 1}, 'calories': 350.4599914550781}}, {'type': 'reference', 'displayName': 'Bacon And Beef Sticks', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon And Beef Sticks', 'scoredName': 'Bacon And Beef Sticks', 'score': 0.6099500499500499, 'displayNameScore': 0.6099500499500499, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211200504', 'resultId': '1603211200504', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 144.75999450683594}}, {'type': 'reference', 'displayName': 'Minis Scrambled Eggs, Bacon Bits And Cheese On A Crust, Bacon & Egg', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Minis Scrambled Eggs, Bacon Bits And Cheese On A Crust, Bacon & Egg', 'scoredName': 'Minis Scrambled Eggs, Bacon Bits And Cheese On A Crust, Bacon & Egg', 'score': 0.5437274297589809, 'displayNameScore': 0.5437274297589809, 'brandName': 'The Schwan Food Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211536604', 'resultId': '1603211536604', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 38.33}, 'name': 'piece', 'quantity': 1, 'suggestedQuantity': [3]}, 'calories': 289.7747802734375}}, {'type': 'recipe', 'displayName': 'Eggs In A Basket', 'stemmedDisplayName': '', 'shortName': 'Eggs in a basket', 'longName': '', 'scoredName': 'Eggs In A Basket', 'score': 0.5730397136609872, 'displayNameScore': 0.5730397136609872, 'brandName': '', 'iconId': 'PRE0024', 'labelId': 'ba96d8c4-9c3d-11ea-9f22-a3d5a7ee9f03', 'synonymId': '', 'recipeId': '7d10feec-dc32-11ea-96f9-7a8740d3b27f', 'referenceId': '', 'resultId': '7d10feec-dc32-11ea-96f9-7a8740d3b27f', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 78.1}, 'name': 'serving', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 213.56700134277344}}, {'type': 'reference', 'displayName': 'Mini Bagels Topped With Bacon, Eggs And Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Mini Bagels Topped With Bacon, Eggs And Cheese', 'scoredName': 'Mini Bagels Topped With Bacon, Eggs And Cheese', 'score': 0.5390589320724254, 'displayNameScore': 0.5390589320724254, 'brandName': 'Heinz Frozen Food Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211351483', 'resultId': '1603211351483', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 22}, 'name': 'piece', 'quantity': 1, 'suggestedQuantity': [4]}, 'calories': 190.0800018310547}}, {'type': 'reference', 'displayName': 'Aunt Jemima, Scrambled Eggs And Bacon', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Aunt Jemima, Scrambled Eggs And Bacon', 'scoredName': 'Aunt Jemima, Scrambled Eggs And Bacon', 'score': 0.5308498451355594, 'displayNameScore': 0.5308498451355594, 'brandName': 'Campbell Soup Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606745887', 'resultId': '1628606745887', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 149}, 'name': 'serving', 'quantity': 1}, 'calories': 250.32000732421875}}, {'type': 'reference', 'displayName': 'Bacon And Tomato Dressing', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon And Tomato Dressing', 'scoredName': 'Bacon And Tomato Dressing', 'score': 0.5976894564894565, 'displayNameScore': 0.5976894564894565, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211202283', 'resultId': '1603211202283', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 240}, 'name': 'cup', 'quantity': 1}, 'calories': 782.4000244140625}}, {'type': 'reference', 'displayName': 'Uncured Bacon & Eggs Scramble Bowl', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Uncured Bacon & Eggs Scramble Bowl', 'scoredName': 'Uncured Bacon & Eggs Scramble Bowl', 'score': 0.5296162277620079, 'displayNameScore': 0.5296162277620079, 'brandName': 'GOOD FOOD MADE SIMPLE', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211264757', 'resultId': '1603211264757', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 198}, 'name': 'bowl', 'quantity': 1}, 'calories': 370.260009765625}}, {'type': 'reference', 'displayName': 'Bacon And Cabbage Dinner', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon And Cabbage Dinner', 'scoredName': 'Bacon And Cabbage Dinner', 'score': 0.583131868131868, 'displayNameScore': 0.583131868131868, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5054775297665', 'resultId': 'openfood5054775297665', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 500}, 'name': 'package', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 505}}, {'type': 'reference', 'displayName': 'Scrambled Eggs, Sausage And Bacon With Seasoned Fried Rice And Vegetables Morning Bowl, Fried Rice With Sausage, Bacon & Eggs', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Scrambled Eggs, Sausage And Bacon With Seasoned Fried Rice And Vegetables Morning Bowl, Fried Rice With Sausage, Bacon & Eggs', 'scoredName': 'Scrambled Eggs, Sausage And Bacon With Seasoned Fried Rice And Vegetables Morning Bowl, Fried Rice With Sausage, Bacon & Eggs', 'score': 0.5304785818561001, 'displayNameScore': 0.5304785818561001, 'brandName': 'Innovasian Cuisine Enterprises, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211527376', 'resultId': '1603211527376', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 227}, 'name': 'bowl', 'quantity': 1}, 'calories': 390.44000244140625}}, {'type': 'reference', 'displayName': 'Fried Rice With Eggs & Bacon Scrambled Eggs And Bacon With Seasoned Fried Rice And Vegetables, Fried Rice With Eggs & Bacon', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Fried Rice With Eggs & Bacon Scrambled Eggs And Bacon With Seasoned Fried Rice And Vegetables, Fried Rice With Eggs & Bacon', 'scoredName': 'Fried Rice With Eggs & Bacon Scrambled Eggs And Bacon With Seasoned Fried Rice And Vegetables, Fried Rice With Eggs & Bacon', 'score': 0.5225474254742547, 'displayNameScore': 0.5225474254742547, 'brandName': 'Innovasian Cuisine Enterprises, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211521572', 'resultId': '1603211521572', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 227}, 'name': 'bowl', 'quantity': 1}, 'calories': 379.0899963378906}}, {'type': 'reference', 'displayName': 'Bacon And Cheddar Dip, Bacon And Cheddar', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon And Cheddar Dip, Bacon And Cheddar', 'scoredName': 'Bacon And Cheddar Dip, Bacon And Cheddar', 'score': 0.5434549450549451, 'displayNameScore': 0.5434549450549451, 'brandName': 'Kraft Heinz Foods Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606747021', 'resultId': '1628606747021', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 32}, 'name': 'serving', 'quantity': 1}, 'calories': 60.15999984741211}}, {'type': 'reference', 'displayName': 'Potatoes, Eggs, Sausage, Bacon And Cheese Sauce', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Potatoes, Eggs, Sausage, Bacon And Cheese Sauce', 'scoredName': 'Potatoes, Eggs, Sausage, Bacon And Cheese Sauce', 'score': 0.5159193240945855, 'displayNameScore': 0.5159193240945855, 'brandName': 'Hy-Vee, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211268204', 'resultId': '1603211268204', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 198}, 'name': 'bowl', 'quantity': 1}, 'calories': 370.260009765625}}, {'type': 'reference', 'displayName': 'Bacon And Cheese Gourmet Chicken Burgers, Bacon And Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon And Cheese Gourmet Chicken Burgers, Bacon And Cheese', 'scoredName': 'Bacon And Cheese Gourmet Chicken Burgers, Bacon And Cheese', 'score': 0.5726146267525578, 'displayNameScore': 0.5726146267525578, 'brandName': \"SMART GRILLIN'\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211524922', 'resultId': '1603211524922', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.5}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [4]}, 'calories': 190.3800048828125}}, {'type': 'reference', 'displayName': 'Potatoes, Eggs, Bacon & Cheddar Cheese Bowl, Bacon', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Potatoes, Eggs, Bacon & Cheddar Cheese Bowl, Bacon', 'scoredName': 'Potatoes, Eggs, Bacon & Cheddar Cheese Bowl, Bacon', 'score': 0.4617813541297412, 'displayNameScore': 0.4617813541297412, 'brandName': 'BREAKFAST', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211472207', 'resultId': '1603211472207', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 198}, 'name': 'bowl', 'quantity': 1}, 'calories': 380.1600036621094}}, {'type': 'reference', 'displayName': 'Liver Bacon And Mash', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Liver Bacon And Mash', 'scoredName': 'Liver Bacon And Mash', 'score': 0.5449500499500499, 'displayNameScore': 0.5449500499500499, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5641609708216', 'resultId': 'openfood5641609708216', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 414}, 'name': 'serving', 'quantity': 1}, 'calories': 1842.2999267578125}}, {'type': 'reference', 'displayName': 'Beef And Bacon Pasta', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Beef And Bacon Pasta', 'scoredName': 'Beef And Bacon Pasta', 'score': 0.5340497252747252, 'displayNameScore': 0.5340497252747252, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood9310761721252', 'resultId': 'openfood9310761721252', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 400}, 'name': 'package', 'quantity': 1}, 'calories': 136.71119689941406}}, {'type': 'reference', 'displayName': 'Eggs, Potatoes And Bacon Breakfast Burrito', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Eggs, Potatoes And Bacon Breakfast Burrito', 'scoredName': 'Eggs, Potatoes And Bacon Breakfast Burrito', 'score': 0.530128205128205, 'displayNameScore': 0.530128205128205, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0046567507576', 'resultId': 'openfood0046567507576', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 218.30990600585938}}, {'type': 'reference', 'displayName': 'Eggs, Potatoes & Cheesy Bacon Sauce Snack Bowl, Eggs, Potatoes & Cheesy Bacon Sauce', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Eggs, Potatoes & Cheesy Bacon Sauce Snack Bowl, Eggs, Potatoes & Cheesy Bacon Sauce', 'scoredName': 'Eggs, Potatoes & Cheesy Bacon Sauce Snack Bowl, Eggs, Potatoes & Cheesy Bacon Sauce', 'score': 0.46639205753029467, 'displayNameScore': 0.46639205753029467, 'brandName': 'Completely Fresh Foods, Inc ', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606795099', 'resultId': '1628606795099', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 142}, 'name': 'serving', 'quantity': 1}, 'calories': 230.0399932861328}}, {'type': 'reference', 'displayName': 'Potatoes, Eggs, Bacon & Cheese Breakfast Bowl , Bacon', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Potatoes, Eggs, Bacon & Cheese Breakfast Bowl , Bacon', 'scoredName': 'Potatoes, Eggs, Bacon & Cheese Breakfast Bowl , Bacon', 'score': 0.4418401409910844, 'displayNameScore': 0.4418401409910844, 'brandName': 'Wal-Mart Stores, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211509880', 'resultId': '1603211509880', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 198}, 'name': 'bowl', 'quantity': 1}, 'calories': 439.55999755859375}}, {'type': 'reference', 'displayName': 'Bacon And Pepper Leverpostei', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon And Pepper Leverpostei', 'scoredName': 'Bacon And Pepper Leverpostei', 'score': 0.5870604395604395, 'displayNameScore': 0.5870604395604395, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood7036110007779', 'resultId': 'openfood7036110007779', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 185}, 'name': 'package', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 275.6499938964844}}, {'type': 'reference', 'displayName': 'Precooked Scrambled Eggs With Bacon', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Precooked Scrambled Eggs With Bacon', 'scoredName': 'Precooked Scrambled Eggs With Bacon', 'score': 0.4767994558632856, 'displayNameScore': 0.4767994558632856, 'brandName': 'MOUNTAIN HOUSE', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211528619', 'resultId': '1603211528619', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 43}, 'name': 'cup', 'quantity': 1}, 'calories': 239.94000244140625}}, {'type': 'reference', 'displayName': 'Freeze Dried Scrambled Eggs With Bacon', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Freeze Dried Scrambled Eggs With Bacon', 'scoredName': 'Freeze Dried Scrambled Eggs With Bacon', 'score': 0.43285367264314634, 'displayNameScore': 0.43285367264314634, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0041133594479', 'resultId': 'openfood0041133594479', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 57}, 'name': 'serving', 'quantity': 1}, 'calories': 299.82000732421875}}, {'type': 'reference', 'displayName': 'Bacon And Chicken Tortelloni', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Bacon And Chicken Tortelloni', 'scoredName': 'Bacon And Chicken Tortelloni', 'score': 0.5699175824175824, 'displayNameScore': 0.5699175824175824, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood4056489523956', 'resultId': 'openfood4056489523956', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 300}, 'name': 'package', 'quantity': 1}, 'calories': 552}}, {'type': 'reference', 'displayName': 'Cookies And Cream Mini Eggs', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Cookies And Cream Mini Eggs', 'scoredName': 'Cookies And Cream Mini Eggs', 'score': 0.5524481074481074, 'displayNameScore': 0.5524481074481074, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0753854584126', 'resultId': 'openfood0753854584126', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 75}, 'name': 'package', 'quantity': 1}, 'calories': 407.25}}, {'type': 'reference', 'displayName': 'Chicken And Bacon Salad', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken And Bacon Salad', 'scoredName': 'Chicken And Bacon Salad', 'score': 0.5125914954610606, 'displayNameScore': 0.5125914954610606, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5035106280723', 'resultId': 'openfood5035106280723', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 300}, 'name': 'package', 'quantity': 1}, 'calories': 294}}, {'type': 'reference', 'displayName': 'Chicken And Bacon Sandwich', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken And Bacon Sandwich', 'scoredName': 'Chicken And Bacon Sandwich', 'score': 0.49956911509543095, 'displayNameScore': 0.49956911509543095, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5029730074575', 'resultId': 'openfood5029730074575', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 212}}, {'type': 'reference', 'displayName': 'Chicken And Bacon Pie', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken And Bacon Pie', 'scoredName': 'Chicken And Bacon Pie', 'score': 0.5066167166167166, 'displayNameScore': 0.5066167166167166, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5057172221059', 'resultId': 'openfood5057172221059', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 800}, 'name': 'package', 'quantity': 1}, 'calories': 1040}}, {'type': 'reference', 'displayName': 'Liver And Bacon', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Liver And Bacon', 'scoredName': 'Liver And Bacon', 'score': 0.42733943833943827, 'displayNameScore': 0.42733943833943827, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5052449666663', 'resultId': 'openfood5052449666663', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 400}, 'name': 'package', 'quantity': 1}, 'calories': 344}}, {'type': 'reference', 'displayName': 'Chicken And Bacon Mac And Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken And Bacon Mac And Cheese', 'scoredName': 'Chicken And Bacon Mac And Cheese', 'score': 0.4947714785214785, 'displayNameScore': 0.4947714785214785, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood4088700354834', 'resultId': 'openfood4088700354834', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 275}, 'name': 'serving', 'quantity': 1}, 'calories': 420.75}}, {'type': 'reference', 'displayName': 'Chick And Bacon Sub', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chick And Bacon Sub', 'scoredName': 'Chick And Bacon Sub', 'score': 0.46659455711238385, 'displayNameScore': 0.46659455711238385, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5057172759668', 'resultId': 'openfood5057172759668', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': 'serving', 'quantity': 1}, 'calories': 261}}, {'type': 'reference', 'displayName': 'Lentil And Bacon Soup', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Lentil And Bacon Soup', 'scoredName': 'Lentil And Bacon Soup', 'score': 0.49590243090243086, 'displayNameScore': 0.49590243090243086, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5012427066304', 'resultId': 'openfood5012427066304', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 380}, 'name': 'package', 'quantity': 1}, 'calories': 828.3999633789062}}, {'type': 'reference', 'displayName': 'Chicken And Bacon Pasta', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken And Bacon Pasta', 'scoredName': 'Chicken And Bacon Pasta', 'score': 0.5125914954610606, 'displayNameScore': 0.5125914954610606, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0624', 'resultId': 'openfood0624', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 250}, 'name': 'serving', 'quantity': 1}, 'calories': 460}}], 'alternateNames': ['bacon and egg cups', 'bacon', 'crepes with bacon and egg', 'eggs benedict with bacon', 'bacon egg and cheese biscuit sandwich', 'bacon and egg mcmuffin', 'bacon egg biscuit sandwich', 'packaged bacon and turkey bacon', 'baked eggs', 'roasted bacon bits', 'boiled eggs']}\u001b[0m\u001b[32;1m\u001b[1;3mThe bacon and eggs you had for breakfast contain approximately 331 calories.\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" + ] + }, + { + "data": { + "text/plain": [ + "{'input': 'I had bacon and eggs for breakfast. How many calories is that?',\n", + " 'output': 'The bacon and eggs you had for breakfast contain approximately 331 calories.'}" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "agent_executor.invoke(\n", + " {\"input\": \"I had bacon and eggs for breakfast. How many calories is that?\"}\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "id": "1ad3ef5a", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `nutritionai_advanced_search` with `{'query': 'sliced pepper jack cheese'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[36;1m\u001b[1;3m{'results': [{'type': 'reference', 'displayName': 'Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack Cheese', 'scoredName': 'Sliced Pepper Jack Cheese', 'score': 1, 'displayNameScore': 1, 'brandName': 'Tops Markets, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211277022', 'resultId': '1603211277022', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23}, 'name': 'slice', 'quantity': 1}, 'calories': 89.93000030517578}}, {'type': 'reference', 'displayName': 'Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack Cheese', 'scoredName': 'Sliced Pepper Jack Cheese', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0046567042633', 'resultId': 'openfood0046567042633', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 368.4211120605469}}, {'type': 'reference', 'displayName': 'Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack Cheese', 'scoredName': 'Sliced Pepper Jack Cheese', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Lipari Foods Operating Company, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211480183', 'resultId': '1603211480183', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 17}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [2]}, 'calories': 120.02000427246094}}, {'type': 'reference', 'displayName': 'Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack Cheese', 'scoredName': 'Sliced Pepper Jack Cheese', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'HAOLAM', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211475934', 'resultId': '1603211475934', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack Cheese', 'scoredName': 'Sliced Pepper Jack Cheese', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': \"MILLER'S\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211436119', 'resultId': '1603211436119', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack Cheese', 'scoredName': 'Sliced Pepper Jack Cheese', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'BONAGARDS', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211372208', 'resultId': '1603211372208', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'slice', 'quantity': 1}, 'calories': 80.00999450683594}}, {'type': 'reference', 'displayName': 'Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack Cheese', 'scoredName': 'Sliced Pepper Jack Cheese', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Dietz & Watson Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211304686', 'resultId': '1603211304686', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'slice', 'quantity': 1}, 'calories': 80.00999450683594}}, {'type': 'reference', 'displayName': 'Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack Cheese', 'scoredName': 'Sliced Pepper Jack Cheese', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Brookshire Grocery Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211296111', 'resultId': '1603211296111', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23}, 'name': 'slice', 'quantity': 1}, 'calories': 89.93000030517578}}, {'type': 'reference', 'displayName': 'Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack Cheese', 'scoredName': 'Sliced Pepper Jack Cheese', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Schreiber Foods, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211292937', 'resultId': '1603211292937', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'slice', 'quantity': 1}, 'calories': 80.00999450683594}}, {'type': 'synonym', 'displayName': 'Cabot, Pepper Jack Cheese Slices', 'stemmedDisplayName': '', 'shortName': 'pepper jack cheese', 'longName': 'Cabot, Pepper Jack Cheese Slices', 'scoredName': 'Pepper Jack Cheese', 'score': 0.944921363709981, 'displayNameScore': 0.8732313404811772, 'brandName': 'Agri-Mark, Inc.', 'iconId': 'ZZZ0007', 'labelId': '77b96200-8951-11ea-a893-bb8ec34177a7', 'synonymId': '78e740d2-7dd6-11eb-8ccb-eb5f7803e432', 'recipeId': '', 'referenceId': '1603211492772', 'resultId': '1603211492772', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23}, 'name': 'slice', 'quantity': 1}, 'calories': 89.93000030517578}}, {'type': 'synonym', 'displayName': 'Tillamook, Thick Slices Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': 'pepper jack cheese', 'longName': 'Tillamook, Thick Slices Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.944921363709981, 'displayNameScore': 0.8575462489060857, 'brandName': 'Tillamook County Creamery Association', 'iconId': 'ZZZ0007', 'labelId': '77b96200-8951-11ea-a893-bb8ec34177a7', 'synonymId': '78e740d2-7dd6-11eb-8ccb-eb5f7803e432', 'recipeId': '', 'referenceId': '1603211567862', 'resultId': '1603211567862', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'synonym', 'displayName': 'Pepper Jack Cheese, Pepper Jack', 'stemmedDisplayName': '', 'shortName': 'pepper jack cheese', 'longName': 'Pepper Jack Cheese, Pepper Jack', 'scoredName': 'Pepper Jack Cheese', 'score': 0.944921363709981, 'displayNameScore': 0.7752967014642801, 'brandName': 'Red Apple Cheese LLC', 'iconId': 'ZZZ0007', 'labelId': '77b96200-8951-11ea-a893-bb8ec34177a7', 'synonymId': '78e740d2-7dd6-11eb-8ccb-eb5f7803e432', 'recipeId': '', 'referenceId': '1603211510176', 'resultId': '1603211510176', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'synonym', 'displayName': 'Frigo Cheese Heads, Wisconsin Pepper Jack String Cheese', 'stemmedDisplayName': '', 'shortName': 'pepper jack cheese', 'longName': 'Frigo Cheese Heads, Wisconsin Pepper Jack String Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.944921363709981, 'displayNameScore': 0.7504933018531387, 'brandName': 'Saputo Cheese USA Inc.', 'iconId': 'ZZZ0007', 'labelId': '77b96200-8951-11ea-a893-bb8ec34177a7', 'synonymId': '78e740d2-7dd6-11eb-8ccb-eb5f7803e432', 'recipeId': '', 'referenceId': '1603211332598', 'resultId': '1603211332598', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 24}, 'name': 'piece', 'quantity': 1}, 'calories': 79.91999816894531}}, {'type': 'synonym', 'displayName': 'Kraft, Singles, Pepper Jack, 16 Slices', 'stemmedDisplayName': '', 'shortName': 'pepper jack cheese', 'longName': 'Kraft, Singles, Pepper Jack, 16 Slices', 'scoredName': 'Pepper Jack Cheese', 'score': 0.944921363709981, 'displayNameScore': 0.7005258525810991, 'brandName': 'Kraft Heinz Foods Company', 'iconId': 'ZZZ0007', 'labelId': '77b96200-8951-11ea-a893-bb8ec34177a7', 'synonymId': '78e740d2-7dd6-11eb-8ccb-eb5f7803e432', 'recipeId': '', 'referenceId': '1628606775651', 'resultId': '1628606775651', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'slice', 'quantity': 1}, 'calories': 60.05999755859375}}, {'type': 'reference', 'displayName': 'Sliced Pepper Jack', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Pepper Jack', 'scoredName': 'Sliced Pepper Jack', 'score': 0.917560975609756, 'displayNameScore': 0.917560975609756, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0080364402177', 'resultId': 'openfood0080364402177', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 352.9411926269531}}, {'type': 'reference', 'displayName': 'Deli Sliced Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Deli Sliced Pepper Jack Cheese', 'scoredName': 'Deli Sliced Pepper Jack Cheese', 'score': 0.9158621383647799, 'displayNameScore': 0.9158621383647799, 'brandName': \"MEMBER'S MARK\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211258689', 'resultId': '1603211258689', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'slice', 'quantity': 1}, 'calories': 80.00999450683594}}, {'type': 'reference', 'displayName': 'Sliced Colby-Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby-Pepper Jack Cheese', 'scoredName': 'Sliced Colby-Pepper Jack Cheese', 'score': 0.9139351851851851, 'displayNameScore': 0.9139351851851851, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0070552080010', 'resultId': 'openfood0070552080010', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 392.8570861816406}}, {'type': 'reference', 'displayName': 'Pepper Jack Sliced Cheese, Pepper Jack', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Sliced Cheese, Pepper Jack', 'scoredName': 'Pepper Jack Sliced Cheese, Pepper Jack', 'score': 0.8316681967213114, 'displayNameScore': 0.8316681967213114, 'brandName': 'Agri-Mark, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606763935', 'resultId': '1628606763935', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 22}, 'name': 'serving', 'quantity': 1}, 'calories': 80.08000183105469}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'SARGENTO FOODS INC.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood04672519', 'resultId': 'openfood04672519', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'serving (piece)', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 80}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0011213384443', 'resultId': 'openfood0011213384443', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'serving', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Kraft Heinz Foods Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606747750', 'resultId': '1628606747750', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23}, 'name': 'serving', 'quantity': 1}, 'calories': 89.93000030517578}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Red Apple Cheese LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211554568', 'resultId': '1603211554568', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 22}, 'name': 'slice', 'quantity': 1}, 'calories': 80.08000183105469}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Meijer, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211542485', 'resultId': '1603211542485', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 22}, 'name': 'slice', 'quantity': 1}, 'calories': 80.08000183105469}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Brookshire Grocery Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211480105', 'resultId': '1603211480105', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 9.33}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [3]}, 'calories': 99.92430114746094}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'ECKRICH DELI', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211450557', 'resultId': '1603211450557', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'FOODTOWN', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211440863', 'resultId': '1603211440863', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'WEYAUWEGA STAR DAIRY', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211437307', 'resultId': '1603211437307', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Pearl Valley Cheese, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211414077', 'resultId': '1603211414077', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 30}, 'name': 'oz', 'quantity': 1}, 'calories': 120.00000762939453}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Ingles Markets Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211394213', 'resultId': '1603211394213', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Topco Associates, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211393313', 'resultId': '1603211393313', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'SPRING HAVEN FARMS', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211379458', 'resultId': '1603211379458', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': \"HAYDEN'S FARMSTEAD CHEESE\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211379238', 'resultId': '1603211379238', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Empire Cheese Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211366205', 'resultId': '1603211366205', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'BORDEN', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211335792', 'resultId': '1603211335792', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'John Morrell & Co.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211331690', 'resultId': '1603211331690', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Los Altos Food Products Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211325931', 'resultId': '1603211325931', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Cooperative Regions of Organic Producer Pools', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211312705', 'resultId': '1603211312705', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [0.75]}, 'calories': 80.01000213623047}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': \"Boar's Head Provision Co., Inc.\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211301611', 'resultId': '1603211301611', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'The Federated Group, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211300671', 'resultId': '1603211300671', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'slice', 'quantity': 1}, 'calories': 69.93000030517578}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'GREEN BAY CHEESE', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211290707', 'resultId': '1603211290707', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'All Star, Ltd.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211288096', 'resultId': '1603211288096', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Walgreens Co.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211286236', 'resultId': '1603211286236', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Tops Markets, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211278777', 'resultId': '1603211278777', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Harris-Teeter Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211276965', 'resultId': '1603211276965', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'The Deli Source, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211276217', 'resultId': '1603211276217', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Central Grocers Co-Op, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211274734', 'resultId': '1603211274734', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 9.33}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [3]}, 'calories': 99.92430114746094}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Iga, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211274685', 'resultId': '1603211274685', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211273690', 'resultId': '1603211273690', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'MARKET PANTRY', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211268907', 'resultId': '1603211268907', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Pepper Jack Cheese', 'scoredName': 'Pepper Jack Cheese', 'score': 0.9003343089430894, 'displayNameScore': 0.9003343089430894, 'brandName': 'Tillamook County Creamery Association', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211259125', 'resultId': '1603211259125', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}], 'alternateNames': ['pepper jack cheese', 'pepper jack cheese cubes', 'raw sliced green peppers', 'meijer colby jack slice cheese', 'raw sliced red peppers', 'sliced muenster cheese', 'lucerne sliced cheese', 'generic sliced cheese package', 'sliced colby cheese', 'kroger swiss sliced cheese', 'sliced havarti cheese', 'tillamook sliced cheese', 'cheese-stuffed peppers']}\u001b[0m\u001b[32;1m\u001b[1;3mThe sliced pepper jack cheese you had contains approximately 5 grams of protein per 1 slice (23g).\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" + ] + }, + { + "data": { + "text/plain": [ + "{'input': 'I had sliced pepper jack cheese for a snack. How much protein did I have?',\n", + " 'output': 'The sliced pepper jack cheese you had contains approximately 5 grams of protein per 1 slice (23g).'}" + ] + }, + "execution_count": 23, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "agent_executor.invoke(\n", + " {\n", + " \"input\": \"I had sliced pepper jack cheese for a snack. How much protein did I have?\"\n", + " }\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "id": "1801efd6", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `nutritionai_advanced_search` with `{'query': 'Schnuck Markets sliced colby cheese'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[36;1m\u001b[1;3m{'results': [{'type': 'reference', 'displayName': 'Schnuck Markets, Sliced Colby Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Sliced Colby Cheese', 'scoredName': 'Schnuck Markets, Sliced Colby Cheese', 'score': 0.9361508951406649, 'displayNameScore': 0.9361508951406649, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211583771', 'resultId': '1603211583771', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23}, 'name': 'slice', 'quantity': 1}, 'calories': 89.93000030517578}}, {'type': 'synonym', 'displayName': 'Kroger Colby Jack Sliced Cheese', 'stemmedDisplayName': '', 'shortName': 'sliced colby cheese', 'longName': 'Kroger Colby Jack Sliced Cheese', 'scoredName': 'Sliced Colby Cheese', 'score': 0.881964219181897, 'displayNameScore': 0.7489655805654359, 'brandName': 'Kroger', 'iconId': '1000126', 'labelId': '6853d059-aee7-11eb-823b-f2c035d4d4fc', 'synonymId': '68540b00-aee7-11eb-a0a8-bf083ff09272', 'recipeId': '', 'referenceId': '1647445102076', 'resultId': '1647445102076', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 80}}, {'type': 'synonym', 'displayName': 'Cheese, Colby', 'stemmedDisplayName': '', 'shortName': 'sliced colby cheese', 'longName': 'Cheese, Colby', 'scoredName': 'Sliced Colby Cheese', 'score': 0.881964219181897, 'displayNameScore': 0.7160625318836881, 'brandName': '', 'iconId': '1000126', 'labelId': '6853d059-aee7-11eb-823b-f2c035d4d4fc', 'synonymId': '68540b00-aee7-11eb-a0a8-bf083ff09272', 'recipeId': '', 'referenceId': '1603211569473', 'resultId': '1603211569473', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'slice (1 oz)', 'quantity': 1}, 'calories': 110.31999969482422}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Sharp Cheddar Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Sharp Cheddar Cheese', 'scoredName': 'Schnuck Markets, Sharp Cheddar Cheese', 'score': 0.7761286395639336, 'displayNameScore': 0.7761286395639336, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211587513', 'resultId': '1603211587513', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 112}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.25]}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Soy Sauce', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Soy Sauce', 'scoredName': 'Schnuck Markets, Soy Sauce', 'score': 0.7760256869144121, 'displayNameScore': 0.7760256869144121, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211586928', 'resultId': '1603211586928', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 100}}, {'type': 'synonym', 'displayName': 'Schnuck Markets, 100% Orange Juice', 'stemmedDisplayName': '', 'shortName': 'schnuck markets orange juice', 'longName': 'Schnuck Markets, 100% Orange Juice', 'scoredName': 'Schnuck Markets Orange Juice', 'score': 0.7667320448701912, 'displayNameScore': 0.6998762149563549, 'brandName': 'Schnuck Markets, Inc.', 'iconId': 'BEV6847', 'labelId': 'c615ae34-1864-11eb-adfc-3b83413d8f0e', 'synonymId': '75d0984e-7dd6-11eb-8ccb-8b4d3c813cfc', 'recipeId': '', 'referenceId': '1603211579543', 'resultId': '1603211579543', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 46}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Nonfat Cottage Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Nonfat Cottage Cheese', 'scoredName': 'Schnuck Markets, Nonfat Cottage Cheese', 'score': 0.7520146394708118, 'displayNameScore': 0.7520146394708118, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211513966', 'resultId': '1603211513966', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 228}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 79.79999542236328}}, {'type': 'reference', 'displayName': 'Sliced Colby Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby Jack Cheese', 'scoredName': 'Sliced Colby Jack Cheese', 'score': 0.7866595445134573, 'displayNameScore': 0.7866595445134573, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0051934021333', 'resultId': 'openfood0051934021333', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 380.952392578125}}, {'type': 'reference', 'displayName': 'Sliced Colby Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby Jack Cheese', 'scoredName': 'Sliced Colby Jack Cheese', 'score': 0.7866595445134573, 'displayNameScore': 0.7866595445134573, 'brandName': 'Supervalu, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211431889', 'resultId': '1603211431889', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 22}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 89.97999572753906}}, {'type': 'reference', 'displayName': 'Sliced Colby Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby Jack Cheese', 'scoredName': 'Sliced Colby Jack Cheese', 'score': 0.7866595445134573, 'displayNameScore': 0.7866595445134573, 'brandName': 'Brookshire Grocery Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211296115', 'resultId': '1603211296115', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23}, 'name': 'slice', 'quantity': 1}, 'calories': 80.04000091552734}}, {'type': 'reference', 'displayName': 'Sliced Colby Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby Jack Cheese', 'scoredName': 'Sliced Colby Jack Cheese', 'score': 0.7866595445134573, 'displayNameScore': 0.7866595445134573, 'brandName': 'Schreiber Foods, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211294664', 'resultId': '1603211294664', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'slice', 'quantity': 1}, 'calories': 80.00999450683594}}, {'type': 'reference', 'displayName': 'Sliced Colby Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby Jack Cheese', 'scoredName': 'Sliced Colby Jack Cheese', 'score': 0.7866595445134573, 'displayNameScore': 0.7866595445134573, 'brandName': 'Coblentz Distributing, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211286694', 'resultId': '1603211286694', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 17}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [2]}, 'calories': 120.02000427246094}}, {'type': 'reference', 'displayName': 'Sliced Colby Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby Jack Cheese', 'scoredName': 'Sliced Colby Jack Cheese', 'score': 0.7866595445134573, 'displayNameScore': 0.7866595445134573, 'brandName': 'Tops Markets, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211273530', 'resultId': '1603211273530', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 23}, 'name': 'slice', 'quantity': 1}, 'calories': 80.04000091552734}}, {'type': 'reference', 'displayName': 'Schnuck Markets Chocolate Chip Waffles', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets Chocolate Chip Waffles', 'scoredName': 'Schnuck Markets Chocolate Chip Waffles', 'score': 0.7393295733835059, 'displayNameScore': 0.7393295733835059, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211504178', 'resultId': '1603211504178', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 35}, 'name': 'waffles', 'quantity': 1, 'suggestedQuantity': [2]}, 'calories': 240.09999084472656}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Candy Corn Candy', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Candy Corn Candy', 'scoredName': 'Schnuck Markets, Candy Corn Candy', 'score': 0.7099892857142857, 'displayNameScore': 0.7099892857142857, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211586782', 'resultId': '1603211586782', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 1.9}, 'name': 'piece', 'quantity': 1, 'suggestedQuantity': [21]}, 'calories': 149.625}}, {'type': 'reference', 'displayName': 'Thin Sliced Colby Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Thin Sliced Colby Jack Cheese', 'scoredName': 'Thin Sliced Colby Jack Cheese', 'score': 0.7641960667643649, 'displayNameScore': 0.7641960667643649, 'brandName': 'Giant Eagle, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211292704', 'resultId': '1603211292704', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 10.67}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [3]}, 'calories': 129.96060180664062}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Refried Beans', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Refried Beans', 'scoredName': 'Schnuck Markets, Refried Beans', 'score': 0.7227498084291186, 'displayNameScore': 0.7227498084291186, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211583864', 'resultId': '1603211583864', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 226}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 129.9499969482422}}, {'type': 'synonym', 'displayName': 'Meijer, Sliced Colby Jack Cheese', 'stemmedDisplayName': '', 'shortName': 'meijer colby jack slice cheese', 'longName': 'Meijer, Sliced Colby Jack Cheese', 'scoredName': 'Meijer Colby Jack Slice Cheese', 'score': 0.7249356435755642, 'displayNameScore': 0.7576820882187553, 'brandName': 'Meijer, Inc.', 'iconId': 'DAI0058', 'labelId': 'f25fe338-41ca-11ec-9844-0638b4c1887b', 'synonymId': 'f260088c-41ca-11ec-8006-0bda3845e057', 'recipeId': '', 'referenceId': '1603211542856', 'resultId': '1603211542856', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 22}, 'name': 'slice', 'quantity': 1}, 'calories': 89.97999572753906}}, {'type': 'reference', 'displayName': 'Colby Jack Sliced Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Jack Sliced Cheese', 'scoredName': 'Colby Jack Sliced Cheese', 'score': 0.7381745341614906, 'displayNameScore': 0.7381745341614906, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0859092005512', 'resultId': 'openfood0859092005512', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 357.1429138183594}}, {'type': 'reference', 'displayName': 'Colby Jack Sliced Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Jack Sliced Cheese', 'scoredName': 'Colby Jack Sliced Cheese', 'score': 0.7381745341614906, 'displayNameScore': 0.7381745341614906, 'brandName': 'Topco Associates, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211443005', 'resultId': '1603211443005', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 17}, 'name': 'slice', 'quantity': 1}, 'calories': 70.04000091552734}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Cotton Candy Flavored Ice Cream', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Cotton Candy Flavored Ice Cream', 'scoredName': 'Schnuck Markets, Cotton Candy Flavored Ice Cream', 'score': 0.7208421039169178, 'displayNameScore': 0.7208421039169178, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211530714', 'resultId': '1603211530714', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 130.5}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.67]}, 'calories': 170.4982452392578}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Green Beans', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Green Beans', 'scoredName': 'Schnuck Markets, Green Beans', 'score': 0.711529347337544, 'displayNameScore': 0.711529347337544, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211584041', 'resultId': '1603211584041', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 240}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 20.400001525878906}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Chocolate Chip Loaf Cake', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Chocolate Chip Loaf Cake', 'scoredName': 'Schnuck Markets, Chocolate Chip Loaf Cake', 'score': 0.6991607628944788, 'displayNameScore': 0.6991607628944788, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211500635', 'resultId': '1603211500635', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 76}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 300.1999816894531}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Stir Fry Vegetables', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Stir Fry Vegetables', 'scoredName': 'Schnuck Markets, Stir Fry Vegetables', 'score': 0.6920930296756382, 'displayNameScore': 0.6920930296756382, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211588163', 'resultId': '1603211588163', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 106.67}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.75]}, 'calories': 30.400949478149414}}, {'type': 'reference', 'displayName': 'Deli Sliced Colby Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Deli Sliced Colby Jack Cheese', 'scoredName': 'Deli Sliced Colby Jack Cheese', 'score': 0.7396017956459557, 'displayNameScore': 0.7396017956459557, 'brandName': \"MEMBER'S MARK\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211258687', 'resultId': '1603211258687', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 21}, 'name': 'slice', 'quantity': 1}, 'calories': 80.00999450683594}}, {'type': 'reference', 'displayName': 'Schnuck Markets Condensed Tomato Soup', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets Condensed Tomato Soup', 'scoredName': 'Schnuck Markets Condensed Tomato Soup', 'score': 0.718727149670679, 'displayNameScore': 0.718727149670679, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211504515', 'resultId': '1603211504515', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 250}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 80}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Chocolate Peanut Clusters', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Chocolate Peanut Clusters', 'scoredName': 'Schnuck Markets, Chocolate Peanut Clusters', 'score': 0.705490756302521, 'displayNameScore': 0.705490756302521, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211579739', 'resultId': '1603211579739', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 10}, 'name': 'piece', 'quantity': 1, 'suggestedQuantity': [4]}, 'calories': 230}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Strawberry Cupcakes', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Strawberry Cupcakes', 'scoredName': 'Schnuck Markets, Strawberry Cupcakes', 'score': 0.6915593049973613, 'displayNameScore': 0.6915593049973613, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211487663', 'resultId': '1603211487663', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 85}, 'name': 'cupcake', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 300.0500183105469}}, {'type': 'reference', 'displayName': 'Schnuck Markets Garlic French Bread', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets Garlic French Bread', 'scoredName': 'Schnuck Markets Garlic French Bread', 'score': 0.6980314970432616, 'displayNameScore': 0.6980314970432616, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211585215', 'resultId': '1603211585215', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 18.67}, 'name': '\" slice', 'quantity': 1, 'suggestedQuantity': [3]}, 'calories': 189.8739013671875}}, {'type': 'reference', 'displayName': 'Colby Jack Thin Sliced Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Jack Thin Sliced Cheese', 'scoredName': 'Colby Jack Thin Sliced Cheese', 'score': 0.7204660310397797, 'displayNameScore': 0.7204660310397797, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0077890786864', 'resultId': 'openfood0077890786864', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 391.3042907714844}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Kamut Blend Rice Mix', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Kamut Blend Rice Mix', 'scoredName': 'Schnuck Markets, Kamut Blend Rice Mix', 'score': 0.6722713513513514, 'displayNameScore': 0.6722713513513514, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211586867', 'resultId': '1603211586867', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 180}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.25]}, 'calories': 170.09999084472656}}, {'type': 'reference', 'displayName': 'Schnuck Markets Unsweetened Blackberries', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets Unsweetened Blackberries', 'scoredName': 'Schnuck Markets Unsweetened Blackberries', 'score': 0.7126520087487049, 'displayNameScore': 0.7126520087487049, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211585460', 'resultId': '1603211585460', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 140}, 'name': 'cup', 'quantity': 1}, 'calories': 89.5999984741211}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Blueberry Bagels', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Blueberry Bagels', 'scoredName': 'Schnuck Markets, Blueberry Bagels', 'score': 0.6765918506493507, 'displayNameScore': 0.6765918506493507, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211506100', 'resultId': '1603211506100', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 94}, 'name': 'bagel', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 250.0399932861328}}, {'type': 'reference', 'displayName': 'Schnuck Markets Hearth Baked Garlic Bread', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets Hearth Baked Garlic Bread', 'scoredName': 'Schnuck Markets Hearth Baked Garlic Bread', 'score': 0.6944992578559294, 'displayNameScore': 0.6944992578559294, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211585212', 'resultId': '1603211585212', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 456}, 'name': 'loaf', 'quantity': 1, 'suggestedQuantity': [0.12]}, 'calories': 172.91519165039062}}, {'type': 'reference', 'displayName': 'Sliced Colby & Monterey Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby & Monterey Jack Cheese', 'scoredName': 'Sliced Colby & Monterey Jack Cheese', 'score': 0.6845884439292959, 'displayNameScore': 0.6845884439292959, 'brandName': \"Raley's\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211477744', 'resultId': '1603211477744', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 19}, 'name': 'slice', 'quantity': 1}, 'calories': 69.91999816894531}}, {'type': 'reference', 'displayName': 'Colby & Monterey Jack Sliced Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby & Monterey Jack Sliced Cheese', 'scoredName': 'Colby & Monterey Jack Sliced Cheese', 'score': 0.6733344537815125, 'displayNameScore': 0.6733344537815125, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0041220816941', 'resultId': 'openfood0041220816941', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 391.3042907714844}}, {'type': 'reference', 'displayName': 'Colby Sliced Cheese Count', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Sliced Cheese Count', 'scoredName': 'Colby Sliced Cheese Count', 'score': 0.6749337110016419, 'displayNameScore': 0.6749337110016419, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0011110068804', 'resultId': 'openfood0011110068804', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 386.3599853515625}}, {'type': 'reference', 'displayName': 'Sliced Colby Jack', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby Jack', 'scoredName': 'Sliced Colby Jack', 'score': 0.7155878991596638, 'displayNameScore': 0.7155878991596638, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0073866210142', 'resultId': 'openfood0073866210142', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'serving', 'quantity': 1}, 'calories': 99.95999908447266}}, {'type': 'reference', 'displayName': 'Sliced Colby-Pepper Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Sliced Colby-Pepper Jack Cheese', 'scoredName': 'Sliced Colby-Pepper Jack Cheese', 'score': 0.684407916282642, 'displayNameScore': 0.684407916282642, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0070552080010', 'resultId': 'openfood0070552080010', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 392.8570861816406}}, {'type': 'reference', 'displayName': \"Yoder's, Colby Jack Sliced Cheese\", 'stemmedDisplayName': '', 'shortName': '', 'longName': \"Yoder's, Colby Jack Sliced Cheese\", 'scoredName': \"Yoder's, Colby Jack Sliced Cheese\", 'score': 0.6866853835978836, 'displayNameScore': 0.6866853835978836, 'brandName': 'Lipari Foods Operating Company, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211394119', 'resultId': '1603211394119', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 17}, 'name': 'slice', 'quantity': 1, 'suggestedQuantity': [2]}, 'calories': 120.02000427246094}}, {'type': 'reference', 'displayName': ' Schnuck Markets Ripple Potato Chips', 'stemmedDisplayName': '', 'shortName': '', 'longName': ' Schnuck Markets Ripple Potato Chips', 'scoredName': ' Schnuck Markets Ripple Potato Chips', 'score': 0.6414113684894247, 'displayNameScore': 0.6414113684894247, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211580928', 'resultId': '1603211580928', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 2.15}, 'name': 'chips', 'quantity': 1, 'suggestedQuantity': [13]}, 'calories': 149.81199645996094}}, {'type': 'reference', 'displayName': 'Schnuck Markets, Vanilla Wafers', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets, Vanilla Wafers', 'scoredName': 'Schnuck Markets, Vanilla Wafers', 'score': 0.6612991656193268, 'displayNameScore': 0.6612991656193268, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211580389', 'resultId': '1603211580389', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 4.43}, 'name': 'cookie', 'quantity': 1, 'suggestedQuantity': [7]}, 'calories': 140.16519165039062}}, {'type': 'reference', 'displayName': 'Tops Markets, Sliced Swiss Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Tops Markets, Sliced Swiss Cheese', 'scoredName': 'Tops Markets, Sliced Swiss Cheese', 'score': 0.6872191017316017, 'displayNameScore': 0.6872191017316017, 'brandName': 'Tops Markets, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211583786', 'resultId': '1603211583786', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 19}, 'name': 'slice', 'quantity': 1}, 'calories': 60.040000915527344}}, {'type': 'reference', 'displayName': 'Colby Jack Sliced Colby & Monterey Jack Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Jack Sliced Colby & Monterey Jack Cheese', 'scoredName': 'Colby Jack Sliced Colby & Monterey Jack Cheese', 'score': 0.6804048265623597, 'displayNameScore': 0.6804048265623597, 'brandName': 'FIRST STREET', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211525087', 'resultId': '1603211525087', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'slice', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Schnuck Markets 100% Pure Maple Syrup', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Schnuck Markets 100% Pure Maple Syrup', 'scoredName': 'Schnuck Markets 100% Pure Maple Syrup', 'score': 0.6427057986155685, 'displayNameScore': 0.6427057986155685, 'brandName': 'Schnuck Markets, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211585607', 'resultId': '1603211585607', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 367}}, {'type': 'reference', 'displayName': 'Colby Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Cheese', 'scoredName': 'Colby Cheese', 'score': 0.7039650793650793, 'displayNameScore': 0.7039650793650793, 'brandName': 'STAR DAIRY', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'usda45047928', 'resultId': 'usda45047928', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Colby Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Cheese', 'scoredName': 'Colby Cheese', 'score': 0.7039650793650793, 'displayNameScore': 0.7039650793650793, 'brandName': 'Kraft Heinz Foods Company', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606747401', 'resultId': '1628606747401', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'serving', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Colby Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Cheese', 'scoredName': 'Colby Cheese', 'score': 0.7039650793650793, 'displayNameScore': 0.7039650793650793, 'brandName': 'SHURFINE', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211557089', 'resultId': '1603211557089', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Colby Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Cheese', 'scoredName': 'Colby Cheese', 'score': 0.7039650793650793, 'displayNameScore': 0.7039650793650793, 'brandName': \"Lowe's Food Stores, Inc.\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211490110', 'resultId': '1603211490110', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}, {'type': 'reference', 'displayName': 'Colby Cheese', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Colby Cheese', 'scoredName': 'Colby Cheese', 'score': 0.7039650793650793, 'displayNameScore': 0.7039650793650793, 'brandName': 'Lipari Foods Operating Company, LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211480147', 'resultId': '1603211480147', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1}, 'calories': 110.04000091552734}}], 'alternateNames': ['schnuck markets orange juice', 'sliced colby cheese', 'meijer colby jack slice cheese', 'sliced havarti cheese', 'colby cheese', 'lucerne sliced cheese', 'sliced mozzarella cheese', 'sliced muenster cheese', 'tillamook sliced cheese', 'kroger swiss sliced cheese']}\u001b[0m\u001b[32;1m\u001b[1;3mThe Schnuck Markets sliced colby cheese contains approximately 89.93 calories per slice (23g).\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" + ] + }, + { + "data": { + "text/plain": [ + "{'input': 'I had sliced colby cheese for a snack. Give me calories for this Schnuck Markets product.',\n", + " 'output': 'The Schnuck Markets sliced colby cheese contains approximately 89.93 calories per slice (23g).'}" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "agent_executor.invoke(\n", + " {\n", + " \"input\": \"I had sliced colby cheese for a snack. Give me calories for this Schnuck Markets product.\"\n", + " }\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "id": "919cca5f", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `nutritionai_advanced_search` with `{'query': 'chicken tikka masala'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[36;1m\u001b[1;3m{'results': [{'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 1, 'displayNameScore': 1, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0085239308349', 'resultId': 'openfood0085239308349', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 142.8571014404297}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Wells Enterprises, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5390003010973', 'resultId': 'openfood5390003010973', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 320}, 'name': 'meal', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 345.6000061035156}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Tesco plc', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5054269267228', 'resultId': 'openfood5054269267228', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 450}, 'name': 'package', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 540}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Sharwoods', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5000187114670', 'resultId': 'openfood5000187114670', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 375}, 'name': 'package', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 453.75}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': \"SUKHI'S GOURMET INDIAN FOOD.\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0767226447919', 'resultId': 'openfood0767226447919', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 140}, 'name': 'serving', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 179.9999542236328}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'T.A.C.T. Holding, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood00989121', 'resultId': 'openfood00989121', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 454}, 'name': 'package', 'quantity': 1}, 'calories': 580}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'EVOL.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211477023', 'resultId': '1603211477023', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 142}, 'name': 'burrito', 'quantity': 1}, 'calories': 269.79998779296875}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Star Markets Co.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211444746', 'resultId': '1603211444746', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.3}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [10]}, 'calories': 379.219970703125}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': \"SUKHI'S\", 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211442144', 'resultId': '1603211442144', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.27}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [5.2]}, 'calories': 299.8881530761719}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Safeway, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211440951', 'resultId': '1603211440951', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.36}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [11]}, 'calories': 358.75396728515625}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Ahold USA, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211387832', 'resultId': '1603211387832', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [5]}, 'calories': 229.60000610351562}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Glencourt Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211384069', 'resultId': '1603211384069', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 241}, 'name': 'tray', 'quantity': 1}, 'calories': 260.2799987792969}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Us-Nippon Meat Packers', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211383435', 'resultId': '1603211383435', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [5]}, 'calories': 210}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'CONTESSA', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211342300', 'resultId': '1603211342300', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.38}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [10.5]}, 'calories': 318.84930419921875}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'The Kroger Co.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211306659', 'resultId': '1603211306659', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.36}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [11]}, 'calories': 330.6776123046875}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Wal-Mart Stores, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211276873', 'resultId': '1603211276873', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 335}, 'name': 'container', 'quantity': 1}, 'calories': 311.54998779296875}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala', 'score': 0.95, 'displayNameScore': 0.95, 'brandName': 'Target Stores', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211257427', 'resultId': '1603211257427', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.57}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [4.9]}, 'calories': 239.38803100585938}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala Mix', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala Mix', 'scoredName': 'Chicken Tikka Masala Mix', 'score': 0.9319047619047619, 'displayNameScore': 0.9319047619047619, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood8906064230044', 'resultId': 'openfood8906064230044', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 80}, 'name': 'package', 'quantity': 1}, 'calories': 325.6000061035156}}, {'type': 'reference', 'displayName': 'Wie Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Wie Chicken Tikka Masala', 'scoredName': 'Wie Chicken Tikka Masala', 'score': 0.9319047619047619, 'displayNameScore': 0.9319047619047619, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood4005009102478', 'resultId': 'openfood4005009102478', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 350}, 'name': 'package', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 145.25}}, {'type': 'reference', 'displayName': 'Hot Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Hot Chicken Tikka Masala', 'scoredName': 'Hot Chicken Tikka Masala', 'score': 0.9319047619047619, 'displayNameScore': 0.9319047619047619, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood00776516', 'resultId': 'openfood00776516', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 200}, 'name': 'serving', 'quantity': 1}, 'calories': 284}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala Bowl', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala Bowl', 'scoredName': 'Chicken Tikka Masala Bowl', 'score': 0.927906976744186, 'displayNameScore': 0.927906976744186, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood0041415024151', 'resultId': 'openfood0041415024151', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 100}, 'name': '', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 134.27560424804688}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala Sauce', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala Sauce', 'scoredName': 'Chicken Tikka Masala Sauce', 'score': 0.924090909090909, 'displayNameScore': 0.924090909090909, 'brandName': 'Safeway, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211342703', 'resultId': '1603211342703', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 255}, 'name': 'tray', 'quantity': 1}, 'calories': 239.6999969482422}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala (Main)', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala (Main)', 'scoredName': 'Chicken Tikka Masala (Main)', 'score': 0.9204444444444443, 'displayNameScore': 0.9204444444444443, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5054781137085', 'resultId': 'openfood5054781137085', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 400}, 'name': 'package', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 266}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala Crowns', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala Crowns', 'scoredName': 'Chicken Tikka Masala Crowns', 'score': 0.9204444444444443, 'displayNameScore': 0.9204444444444443, 'brandName': 'The Kroger Co.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211285450', 'resultId': '1603211285450', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 25}, 'name': 'piece', 'quantity': 1, 'suggestedQuantity': [3]}, 'calories': 210}}, {'type': 'reference', 'displayName': 'Evol, Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Evol, Chicken Tikka Masala', 'scoredName': 'Evol, Chicken Tikka Masala', 'score': 0.9194139860139859, 'displayNameScore': 0.9194139860139859, 'brandName': 'Pinnacle Foods Group LLC', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211455071', 'resultId': '1603211455071', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 566}, 'name': 'bag', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 299.97998046875}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala, Chicken', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala, Chicken', 'scoredName': 'Chicken Tikka Masala, Chicken', 'score': 0.9136170212765957, 'displayNameScore': 0.9136170212765957, 'brandName': 'LIDL', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606739622', 'resultId': '1628606739622', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.3}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [10]}, 'calories': 311.29998779296875}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala, Chicken', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala, Chicken', 'scoredName': 'Chicken Tikka Masala, Chicken', 'score': 0.9136170212765957, 'displayNameScore': 0.9136170212765957, 'brandName': 'Target Stores', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211557019', 'resultId': '1603211557019', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 202.5}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.67]}, 'calories': 191.30177307128906}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala, Chicken Tikka', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala, Chicken Tikka', 'scoredName': 'Chicken Tikka Masala, Chicken Tikka', 'score': 0.8962264150943396, 'displayNameScore': 0.8962264150943396, 'brandName': 'Tiller & Hatch, Co.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606774236', 'resultId': '1628606774236', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 283}, 'name': 'serving', 'quantity': 1}, 'calories': 390.53997802734375}}, {'type': 'reference', 'displayName': 'Vegan Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Vegan Chicken Tikka Masala', 'scoredName': 'Vegan Chicken Tikka Masala', 'score': 0.8890139860139858, 'displayNameScore': 0.8890139860139858, 'brandName': 'VEGETARIAN PLUS', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211549315', 'resultId': '1603211549315', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28.4}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [2.5]}, 'calories': 90.16999816894531}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala Soup, Chicken Tikka', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala Soup, Chicken Tikka', 'scoredName': 'Chicken Tikka Masala Soup, Chicken Tikka', 'score': 0.8844827586206896, 'displayNameScore': 0.8844827586206896, 'brandName': 'Whole Foods Market, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606752082', 'resultId': '1628606752082', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 245}, 'name': 'serving', 'quantity': 1}, 'calories': 240.10000610351562}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala Pouches, Chicken Tikka', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala Pouches, Chicken Tikka', 'scoredName': 'Chicken Tikka Masala Pouches, Chicken Tikka', 'score': 0.8757094929470073, 'displayNameScore': 0.8757094929470073, 'brandName': 'Deep Foods Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606770699', 'resultId': '1628606770699', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 113}, 'name': 'serving', 'quantity': 1}, 'calories': 290.4100036621094}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala Kit, Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala Kit, Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala Kit, Chicken Tikka Masala', 'score': 0.8678559782608695, 'displayNameScore': 0.8678559782608695, 'brandName': 'KRAFT HEINZ SAUCES & FROZEN', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211526033', 'resultId': '1603211526033', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 28}, 'name': 'oz', 'quantity': 1, 'suggestedQuantity': [3]}, 'calories': 199.9199981689453}}, {'type': 'reference', 'displayName': 'Tikka Masala Chicken', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Tikka Masala Chicken', 'scoredName': 'Tikka Masala Chicken', 'score': 0.7827000000000001, 'displayNameScore': 0.7827000000000001, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5701410407001', 'resultId': 'openfood5701410407001', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 450}, 'name': 'package', 'quantity': 1}, 'calories': 670.5}}, {'type': 'reference', 'displayName': 'Tikka Masala Chicken', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Tikka Masala Chicken', 'scoredName': 'Tikka Masala Chicken', 'score': 0.7827000000000001, 'displayNameScore': 0.7827000000000001, 'brandName': 'Ahold Usa, Inc.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211336796', 'resultId': '1603211336796', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 350}, 'name': 'package', 'quantity': 1}, 'calories': 399}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala With Turmeric Rice, Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala With Turmeric Rice, Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala With Turmeric Rice, Chicken Tikka Masala', 'score': 0.8383104378501763, 'displayNameScore': 0.8383104378501763, 'brandName': 'Amazon Fulfillment Services, Inc. - Consumables Private Brands', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606772116', 'resultId': '1628606772116', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 340}, 'name': 'serving (container)', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 459}}, {'type': 'synonym', 'displayName': 'Chicken Salad Wawa', 'stemmedDisplayName': '', 'shortName': 'creamy chicken salad', 'longName': 'Chicken Salad Wawa', 'scoredName': 'Chicken Salad', 'score': 0.8817191066997521, 'displayNameScore': 0.7651202614379086, 'brandName': 'WAWA', 'iconId': 'PRE0075', 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c', 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece', 'recipeId': '', 'referenceId': '1603211581514', 'resultId': '1603211581514', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 108}, 'name': 'container', 'quantity': 1}, 'calories': 129.60000610351562}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala', 'score': 0.8398974358974357, 'displayNameScore': 0.8398974358974357, 'brandName': 'C. C. Creations, Ltd.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606797814', 'resultId': '1628606797814', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 350}, 'name': 'serving', 'quantity': 1}, 'calories': 371}}, {'type': 'reference', 'displayName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala', 'scoredName': 'Chicken Tikka Masala With Basmati Rice, Chicken Tikka Masala', 'score': 0.8398974358974357, 'displayNameScore': 0.8398974358974357, 'brandName': 'American Halal Company, Inc. ', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1628606772600', 'resultId': '1628606772600', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 283}, 'name': 'serving', 'quantity': 1}, 'calories': 299.97998046875}}, {'type': 'synonym', 'displayName': 'Chicken Salad, Hy-Vee', 'stemmedDisplayName': '', 'shortName': 'creamy chicken salad', 'longName': 'Chicken Salad, Hy-Vee', 'scoredName': 'Chicken Salad', 'score': 0.8817191066997521, 'displayNameScore': 0.7039868531468532, 'brandName': 'Hy-Vee, Inc.', 'iconId': 'PRE0075', 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c', 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece', 'recipeId': '', 'referenceId': '1603211581507', 'resultId': '1603211581507', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 210}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 199.49998474121094}}, {'type': 'reference', 'displayName': 'Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Tikka Masala', 'scoredName': 'Tikka Masala', 'score': 0.8765333333333333, 'displayNameScore': 0.8765333333333333, 'brandName': '', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': 'openfood5019503024203', 'resultId': 'openfood5019503024203', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 400}, 'name': 'package', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 388}}, {'type': 'reference', 'displayName': 'Tikka Masala', 'stemmedDisplayName': '', 'shortName': '', 'longName': 'Tikka Masala', 'scoredName': 'Tikka Masala', 'score': 0.8765333333333333, 'displayNameScore': 0.8765333333333333, 'brandName': 'The Kroger Co.', 'iconId': '', 'labelId': '', 'synonymId': '', 'recipeId': '', 'referenceId': '1603211333981', 'resultId': '1603211333981', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 240}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 140.40000915527344}}, {'type': 'synonym', 'displayName': 'Chicken Salad, Willow Tree Poultry Farm, Inc.', 'stemmedDisplayName': '', 'shortName': 'creamy chicken salad', 'longName': 'Chicken Salad, Willow Tree Poultry Farm, Inc.', 'scoredName': 'Chicken Salad', 'score': 0.8817191066997521, 'displayNameScore': 0.661288152173913, 'brandName': 'Willow Tree Poultry Farm, Inc.', 'iconId': 'PRE0075', 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c', 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece', 'recipeId': '', 'referenceId': '1603211581515', 'resultId': '1603211581515', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 230}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 330.04998779296875}}, {'type': 'synonym', 'displayName': ' Starkist Chicken Creations Chicken Salad', 'stemmedDisplayName': '', 'shortName': 'creamy chicken salad', 'longName': ' Starkist Chicken Creations Chicken Salad', 'scoredName': 'Chicken Salad', 'score': 0.8817191066997521, 'displayNameScore': 0.6877124982775251, 'brandName': 'StarKist Co.', 'iconId': 'PRE0075', 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c', 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece', 'recipeId': '', 'referenceId': '1603211581512', 'resultId': '1603211581512', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 74}, 'name': 'pouch', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 70.30000305175781}}, {'type': 'synonym', 'displayName': 'Chicken Or Turkey Salad, Made With Light Mayonnaise-Type Salad Dressing', 'stemmedDisplayName': '', 'shortName': 'creamy chicken salad', 'longName': 'Chicken Or Turkey Salad, Made With Light Mayonnaise-Type Salad Dressing', 'scoredName': 'Chicken Salad', 'score': 0.8817191066997521, 'displayNameScore': 0.7481664630479505, 'brandName': '', 'iconId': 'PRE0075', 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c', 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece', 'recipeId': '', 'referenceId': '1603211579942', 'resultId': '1603211579942', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 226}, 'name': 'cup', 'quantity': 0.5}, 'calories': 163.85000610351562}}, {'type': 'synonym', 'displayName': 'Heb Meal Simple, Rotisserie Chicken Salad', 'stemmedDisplayName': '', 'shortName': 'creamy chicken salad', 'longName': 'Heb Meal Simple, Rotisserie Chicken Salad', 'scoredName': 'Chicken Salad', 'score': 0.8817191066997521, 'displayNameScore': 0.6018217190829014, 'brandName': 'HEB LP', 'iconId': 'PRE0075', 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c', 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece', 'recipeId': '', 'referenceId': '1636377087138', 'resultId': '1636377087138', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 200}, 'name': 'cup', 'quantity': 0.5}, 'calories': 310}}, {'type': 'synonym', 'displayName': 'Archer Farms, Hatch Chile Chicken Salad', 'stemmedDisplayName': '', 'shortName': 'creamy chicken salad', 'longName': 'Archer Farms, Hatch Chile Chicken Salad', 'scoredName': 'Chicken Salad', 'score': 0.8817191066997521, 'displayNameScore': 0.6096256410256411, 'brandName': 'Target Stores', 'iconId': 'PRE0075', 'labelId': 'aea34d6a-9f6f-11ea-b4fc-d3aeabf2e08c', 'synonymId': '75d5d48a-7dd6-11eb-8ccb-ef37ca786ece', 'recipeId': '', 'referenceId': '1603211581513', 'resultId': '1603211581513', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 200}, 'name': 'cup', 'quantity': 1, 'suggestedQuantity': [0.5]}, 'calories': 250}}, {'type': 'synonym', 'displayName': 'Lasagna With Chicken Or Turkey', 'stemmedDisplayName': '', 'shortName': 'chicken lasagna', 'longName': 'Lasagna With Chicken Or Turkey', 'scoredName': 'Chicken Lasagna', 'score': 0.8150696099300334, 'displayNameScore': 0.6178499629103862, 'brandName': '', 'iconId': '1004611', 'labelId': 'e7265647-bf83-11ee-a741-3ea322ece7aa', 'synonymId': 'e726564a-bf83-11ee-a741-3ea322ece7aa', 'recipeId': '', 'referenceId': '1603211207674', 'resultId': '1603211207674', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 250}, 'name': 'cup', 'quantity': 1}, 'calories': 487.5}}, {'type': 'synonym', 'displayName': 'Soft Taco With Chicken And Beans', 'stemmedDisplayName': '', 'shortName': 'chicken taco', 'longName': 'Soft Taco With Chicken And Beans', 'scoredName': 'Chicken Taco', 'score': 0.8147054647507977, 'displayNameScore': 0.5807736465689797, 'brandName': '', 'iconId': 'BAK0371', 'labelId': '3ff67dce-cd55-11ea-ade5-9331bcff0e72', 'synonymId': '7a3c170a-7dd6-11eb-8ccb-7b2e436478c5', 'recipeId': '', 'referenceId': '1603211581798', 'resultId': '1603211581798', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 110}, 'name': 'cup', 'quantity': 1}, 'calories': 218.90000915527344}}, {'type': 'synonym', 'displayName': 'Fast Foods, Taco With Chicken, Lettuce And Cheese, Soft', 'stemmedDisplayName': '', 'shortName': 'chicken taco', 'longName': 'Fast Foods, Taco With Chicken, Lettuce And Cheese, Soft', 'scoredName': 'Chicken Taco', 'score': 0.8147054647507977, 'displayNameScore': 0.5269856640035998, 'brandName': '', 'iconId': 'BAK0371', 'labelId': '3ff67dce-cd55-11ea-ade5-9331bcff0e72', 'synonymId': '7a3c170a-7dd6-11eb-8ccb-7b2e436478c5', 'recipeId': '', 'referenceId': '1603211199494', 'resultId': '1603211199494', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 98}, 'name': 'each taco', 'quantity': 2}, 'calories': 370.44000244140625}}, {'type': 'recipe', 'displayName': 'Garden Salad With Chicken And Ranch Dressing', 'stemmedDisplayName': '', 'shortName': 'Garden Salad with Chicken and Ranch Dressing', 'longName': '', 'scoredName': 'Bbq Chicken Salad', 'score': 0.708320523594053, 'displayNameScore': 0.6026293600138004, 'brandName': '', 'iconId': '1001615', 'labelId': '0f7976ff-392b-11ec-a5ad-966f014fd40b', 'synonymId': '5eaefbb8-b9c5-11ee-9c96-12023e19a804', 'recipeId': 'd8a715d6-3c0d-11ec-b382-2a201cb157c2', 'referenceId': '', 'resultId': 'd8a715d6-3c0d-11ec-b382-2a201cb157c2', 'nutritionPreview': {'portion': {'weight': {'unit': 'g', 'value': 261.05}, 'name': 'serving', 'quantity': 1, 'suggestedQuantity': [1]}, 'calories': 309.3480224609375}}], 'alternateNames': ['chicken lasagna', 'chicken taco', 'chicken caesar salad', 'creamy chicken salad', 'chicken lo mein', 'chicken wrap', 'chicken chili', 'garden salad with chicken', 'roasted chicken breast', 'breaded chicken slices']}\u001b[0m\u001b[32;1m\u001b[1;3mI found nutrition information for Chicken Tikka Masala. Here are the details for a 140g serving:\n", + "\n", + "- Calories: 179.99\n", + "- Protein: 14.7g\n", + "- Fat: 10.5g\n", + "\n", + "Please note that these values are approximate and may vary based on the specific recipe or brand of Chicken Tikka Masala you consumed.\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" + ] + }, + { + "data": { + "text/plain": [ + "{'input': 'I had chicken tikka masala for dinner. how much calories, protein, and fat did I have with default quantity?',\n", + " 'output': 'I found nutrition information for Chicken Tikka Masala. Here are the details for a 140g serving:\\n\\n- Calories: 179.99\\n- Protein: 14.7g\\n- Fat: 10.5g\\n\\nPlease note that these values are approximate and may vary based on the specific recipe or brand of Chicken Tikka Masala you consumed.'}" + ] + }, + "execution_count": 25, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "agent_executor.invoke(\n", + " {\n", + " \"input\": \"I had chicken tikka masala for dinner. how much calories, protein, and fat did I have with default quantity?\"\n", + " }\n", + ")" + ] + }, + { + "cell_type": "markdown", + "id": "c029798f", + "metadata": {}, + "source": [ + "## Conclusion\n", + "\n", + "That's a wrap! In this quick start we covered how to create a simple agent that is able to incorporate food-nutrition information into its answers. Agents are a complex topic, and there's lot to learn!" + ] + }, + { + "cell_type": "markdown", + "id": "1d20cebd", + "metadata": {}, + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.13" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/libs/community/langchain_community/tools/passio_nutrition_ai/__init__.py b/libs/community/langchain_community/tools/passio_nutrition_ai/__init__.py new file mode 100644 index 0000000000..f75469d3f1 --- /dev/null +++ b/libs/community/langchain_community/tools/passio_nutrition_ai/__init__.py @@ -0,0 +1,5 @@ +"""Passio Nutrition AI API toolkit.""" + +from langchain_community.tools.passio_nutrition_ai.tool import NutritionAI + +__all__ = ["NutritionAI"] diff --git a/libs/community/langchain_community/tools/passio_nutrition_ai/tool.py b/libs/community/langchain_community/tools/passio_nutrition_ai/tool.py new file mode 100644 index 0000000000..275760d4cb --- /dev/null +++ b/libs/community/langchain_community/tools/passio_nutrition_ai/tool.py @@ -0,0 +1,38 @@ +"""Tool for the Passio Nutrition AI API.""" + +from typing import Dict, Optional, Type + +from langchain_core.callbacks import CallbackManagerForToolRun +from langchain_core.pydantic_v1 import BaseModel, Field +from langchain_core.tools import BaseTool + +from langchain_community.utilities.passio_nutrition_ai import NutritionAIAPI + + +class NutritionAIInputs(BaseModel): + """Inputs to the Passio Nutrition AI tool.""" + + query: str = Field( + description="A query to look up using Passio Nutrition AI, usually a few words." + ) + + +class NutritionAI(BaseTool): + """Tool that queries the Passio Nutrition AI API.""" + + name: str = "nutritionai_advanced_search" + description: str = ( + "A wrapper around the Passio Nutrition AI. " + "Useful to retrieve nutrition facts. " + "Input should be a search query string." + ) + api_wrapper: NutritionAIAPI + args_schema: Type[BaseModel] = NutritionAIInputs + + def _run( + self, + query: str, + run_manager: Optional[CallbackManagerForToolRun] = None, + ) -> Optional[Dict]: + """Use the tool.""" + return self.api_wrapper.run(query) diff --git a/libs/community/langchain_community/utilities/__init__.py b/libs/community/langchain_community/utilities/__init__.py index b03fa2585d..bfc37c6ab2 100644 --- a/libs/community/langchain_community/utilities/__init__.py +++ b/libs/community/langchain_community/utilities/__init__.py @@ -164,6 +164,12 @@ def _import_outline() -> Any: return OutlineAPIWrapper +def _import_passio_nutrition_ai() -> Any: + from langchain_community.utilities.passio_nutrition_ai import NutritionAIAPI + + return NutritionAIAPI + + def _import_portkey() -> Any: from langchain_community.utilities.portkey import Portkey @@ -355,6 +361,8 @@ def __getattr__(name: str) -> Any: return _import_openweathermap() elif name == "OutlineAPIWrapper": return _import_outline() + elif name == "NutritionAIAPI": + return _import_passio_nutrition_ai() elif name == "Portkey": return _import_portkey() elif name == "PowerBIDataset": @@ -425,6 +433,7 @@ __all__ = [ "NVIDIARivaTTS", "OpenWeatherMapAPIWrapper", "OutlineAPIWrapper", + "NutritionAIAPI", "Portkey", "PowerBIDataset", "PubMedAPIWrapper", diff --git a/libs/community/langchain_community/utilities/passio_nutrition_ai.py b/libs/community/langchain_community/utilities/passio_nutrition_ai.py new file mode 100644 index 0000000000..5be284d301 --- /dev/null +++ b/libs/community/langchain_community/utilities/passio_nutrition_ai.py @@ -0,0 +1,170 @@ +"""Util that invokes the Passio Nutrition AI API. +""" +from datetime import datetime, timedelta +from typing import Any, Callable, Dict, Optional, final + +import requests +from langchain_core.pydantic_v1 import BaseModel, Extra, Field, root_validator +from langchain_core.utils import get_from_dict_or_env + + +class NoDiskStorage: + @final + def __getstate__(self) -> None: + raise AttributeError("Do not store on disk.") + + @final + def __setstate__(self, state: Any) -> None: + raise AttributeError("Do not store on disk.") + + +try: + from tenacity import ( + retry, + retry_if_result, + stop_after_attempt, + wait_exponential, + wait_random, + ) +except ImportError: + # No retries if tenacity is not installed. + def retry_fallback( + f: Callable[..., Any], *args: Any, **kwargs: Any + ) -> Callable[..., Any]: + return f + + def stop_after_attempt_fallback(n: int) -> None: + return None + + def wait_random_fallback(a: float, b: float) -> None: + return None + + def wait_exponential_fallback( + multiplier: float = 1, min: float = 0, max: float = float("inf") + ) -> None: + return None + + +def is_http_retryable(rsp: requests.Response) -> bool: + return bool(rsp) and rsp.status_code in [408, 425, 429, 500, 502, 503, 504] + + +class ManagedPassioLifeAuth(NoDiskStorage): + """Manages the token for the NutritionAI API.""" + + _access_token_expiry: Optional[datetime] + + def __init__(self, subscription_key: str): + self.subscription_key = subscription_key + self._last_token = None + self._access_token_expiry = None + self._access_token = None + self._customer_id = None + + @property + def headers(self) -> dict: + if not self.is_valid_now(): + self.refresh_access_token() + return { + "Authorization": f"Bearer {self._access_token}", + "Passio-ID": self._customer_id, + } + + def is_valid_now(self) -> bool: + return ( + self._access_token is not None + and self._customer_id is not None + and self._access_token_expiry is not None + and self._access_token_expiry > datetime.now() + ) + + @retry( + retry=retry_if_result(is_http_retryable), + stop=stop_after_attempt(4), + wait=wait_random(0, 0.3) + wait_exponential(multiplier=1, min=0.1, max=2), + ) + def _http_get(self, subscription_key: str) -> requests.Response: + return requests.get( + f"https://api.passiolife.com/v2/token-cache/napi/oauth/token/{subscription_key}" + ) + + def refresh_access_token(self) -> None: + """Refresh the access token for the NutritionAI API.""" + rsp = self._http_get(self.subscription_key) + if not rsp: + raise ValueError("Could not get access token") + self._last_token = token = rsp.json() + self._customer_id = token["customer_id"] + self._access_token = token["access_token"] + self._access_token_expiry = ( + datetime.now() + + timedelta(seconds=token["expires_in"]) + - timedelta(seconds=5) + ) + # 5 seconds: approximate time for a token refresh to be processed. + + +DEFAULT_NUTRITIONAI_API_URL = ( + "https://api.passiolife.com/v2/products/napi/food/search/advanced" +) + + +class NutritionAIAPI(BaseModel): + """Wrapper for the Passio Nutrition AI API.""" + + nutritionai_subscription_key: str + nutritionai_api_url: str = Field(default=DEFAULT_NUTRITIONAI_API_URL) + more_kwargs: dict = Field(default_factory=dict) + auth_: ManagedPassioLifeAuth + + class Config: + """Configuration for this pydantic object.""" + + extra = Extra.forbid + arbitrary_types_allowed = True + + @retry( + retry=retry_if_result(is_http_retryable), + stop=stop_after_attempt(4), + wait=wait_random(0, 0.3) + wait_exponential(multiplier=1, min=0.1, max=2), + ) + def _http_get(self, params: dict) -> requests.Response: + return requests.get( + self.nutritionai_api_url, + headers=self.auth_.headers, + params=params, # type: ignore + ) + + def _api_call_results(self, search_term: str) -> dict: + """Call the NutritionAI API and return the results.""" + rsp = self._http_get({"term": search_term, **self.more_kwargs}) + if not rsp: + raise ValueError("Could not get NutritionAI API results") + rsp.raise_for_status() + return rsp.json() + + @root_validator(pre=True) + def validate_environment(cls, values: Dict) -> Dict: + """Validate that api key and endpoint exists in environment.""" + nutritionai_subscription_key = get_from_dict_or_env( + values, "nutritionai_subscription_key", "NUTRITIONAI_SUBSCRIPTION_KEY" + ) + values["nutritionai_subscription_key"] = nutritionai_subscription_key + + nutritionai_api_url = get_from_dict_or_env( + values, + "nutritionai_api_url", + "NUTRITIONAI_API_URL", + DEFAULT_NUTRITIONAI_API_URL, + ) + values["nutritionai_api_url"] = nutritionai_api_url + + values["auth_"] = ManagedPassioLifeAuth(nutritionai_subscription_key) + return values + + def run(self, query: str) -> Optional[Dict]: + """Run query through NutrtitionAI API and parse result.""" + results = self._api_call_results(query) + if results and len(results) < 1: + return None + return results diff --git a/libs/community/tests/integration_tests/utilities/test_passio_nutrition_ai.py b/libs/community/tests/integration_tests/utilities/test_passio_nutrition_ai.py new file mode 100644 index 0000000000..e78e26c297 --- /dev/null +++ b/libs/community/tests/integration_tests/utilities/test_passio_nutrition_ai.py @@ -0,0 +1,19 @@ +"""Integration test for Bing Search API Wrapper.""" + +from langchain_core.utils import get_from_env + +from langchain_community.utilities.passio_nutrition_ai import ( + ManagedPassioLifeAuth, + NutritionAIAPI, +) + + +def test_call() -> None: + """Test that call gives the correct answer.""" + api_key = get_from_env("", "NUTRITIONAI_SUBSCRIPTION_KEY") + search = NutritionAIAPI( + nutritionai_subscription_key=api_key, auth_=ManagedPassioLifeAuth(api_key) + ) + output = search.run("Chicken tikka masala") + assert output is not None + assert "Chicken tikka masala" == output["results"][0]["displayName"] diff --git a/libs/community/tests/unit_tests/utilities/test_imports.py b/libs/community/tests/unit_tests/utilities/test_imports.py index 91d1712be3..52eaaf3ce7 100644 --- a/libs/community/tests/unit_tests/utilities/test_imports.py +++ b/libs/community/tests/unit_tests/utilities/test_imports.py @@ -29,6 +29,7 @@ EXPECTED_ALL = [ "NVIDIARivaStream", "OpenWeatherMapAPIWrapper", "OutlineAPIWrapper", + "NutritionAIAPI", "Portkey", "PowerBIDataset", "PubMedAPIWrapper",