Bläddra i källkod

added note on colab use; speller fix

Jeff Tang 7 månader sedan
förälder
incheckning
14fa1e444a

+ 2 - 1
recipes/use_cases/text2sql/StructuredLlama.ipynb

@@ -5,7 +5,7 @@
    "id": "e8cba0b6",
    "metadata": {},
    "source": [
-    "<a href=\"https://colab.research.google.com/github/meta-llama/llama-recipes/blob/main/recipes/use_cases/text2sql/StructuredLlama.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>\n",
+    "<a href=\"https://colab.research.google.com/github/meta-llama/llama-recipes/blob/main/recipes/use_cases/text2sql/StructuredLlama.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>  \n",
     "\n",
     "## Use Llama 3 to chat about structured data\n",
     "This demo shows how to use LangChain with Llama 3 to query structured data, the 2023-24 NBA roster info, stored in a SQLite DB, and how to ask Llama 3 follow up question about the DB."
@@ -90,6 +90,7 @@
    "source": [
     "from langchain_community.utilities import SQLDatabase\n",
     "\n",
+    "# Note: to run in Colab, you need to upload the nba_roster.db file in the repo to the Colab folder first.\n",
     "db = SQLDatabase.from_uri(\"sqlite:///nba_roster.db\", sample_rows_in_table_info=0)\n",
     "\n",
     "def get_schema():\n",

+ 1 - 0
scripts/spellcheck_conf/wordlist.txt

@@ -1296,3 +1296,4 @@ multiturn
 tiktoken
 eos
 ollama
+tavily