{ "cells": [ { "cell_type": "markdown", "id": "984169ca", "metadata": {}, "source": [ "# SQL Question Answering Benchmarking: Chinook\n", "\n", "Here we go over how to benchmark performance on a question answering task over a SQL database.\n", "\n", "It is highly reccomended that you do any evaluation/benchmarking with tracing enabled. See [here](https://langchain.readthedocs.io/en/latest/tracing.html) for an explanation of what tracing is and how to set it up." ] }, { "cell_type": "code", "execution_count": 28, "id": "44874486", "metadata": {}, "outputs": [], "source": [ "# Comment this out if you are NOT using tracing\n", "import os\n", "os.environ[\"LANGCHAIN_HANDLER\"] = \"langchain\"" ] }, { "cell_type": "markdown", "id": "0f66405e", "metadata": {}, "source": [ "## Loading the data\n", "\n", "First, let's load the data." ] }, { "cell_type": "code", "execution_count": 7, "id": "0df1393f", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "b220d07ee5d14909bc842b4545cdc0de", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Downloading readme: 0%| | 0.00/21.0 [00:00