{ "cells": [ { "cell_type": "markdown", "id": "60bb467d-861d-4b07-a48d-8e5aa177c969", "metadata": { "tags": [] }, "source": [ "# Multiverse Math\n", "\n", "In this task, the agent is operating in an alternate universe which in which the basic mathematical operations like addition and multiplication are different.\n", "\n", "The agent must use tools that allow is to carry out calculations in this universe.\n", "\n", "This task can help verify that an agent is able to ignore its own knowledge of math and instead correctly use information returned by the tools.\n", "\n", "The modified mathematical operations yield different reuslts, but still retain some properties (e.g., the modified multiplication operation is still commutative).\n", "\n", "Please note that the modified operations are not guaranteed to even make sense in the real world since not all properties will be retained (e.g., distributive property).\n", "\n", "------------------" ] }, { "cell_type": "markdown", "id": "8e3b729e-b851-4ab8-a3a9-be34b329b985", "metadata": { "tags": [] }, "source": [ "For this code to work, please configure LangSmith environment variables with your credentials.\n", "\n", "```python\n", "import os\n", "\n", "os.environ[\"LANGCHAIN_API_KEY\"] = \"ls_..\" # Your LangSmith API key\n", "```" ] }, { "cell_type": "code", "execution_count": 1, "id": "b39159d0-9ea1-414f-a9d8-4a7b22b3d2cc", "metadata": { "tags": [] }, "outputs": [], "source": [ "from langchain_benchmarks import registry" ] }, { "cell_type": "code", "execution_count": 2, "id": "1aef2b32-a5df-421f-8be3-a2ef27372ece", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/html": [ "
Name | Multiverse Math |
Type | ToolUsageTask |
Dataset ID | 47ed57bc-e852-4f84-a23e-cce4793864e9 |
Description | An environment that contains a few basic math operations, but with altered results.\n", "\n", "For example, multiplication of 5*3 will be re-interpreted as 5*3*1.1. The basic operations retain some basic properties, such as commutativity, associativity, and distributivity; however, the results are different than expected.\n", "\n", "The objective of this task is to evaluate the ability to use the provided tools to solve simple math questions and ignore any innate knowledge about math.\n", "\n", "This task is associated with 20 test examples. |