|
@@ -5,7 +5,7 @@
|
|
|
"metadata": {},
|
|
|
"source": [
|
|
|
"# Generating Knowledge Graphs with LLMs and Structured Outputs\n",
|
|
|
- "[](https://colab.research.google.com/github/meta-llama/llama-recipes/blob/main/recipes/3p_integrations/togetherai/knowledge_graphs_with_structured_outputs.ipynb)"
|
|
|
+ "[](https://colab.research.google.com/github/meta-llama/llama-cookbook/blob/main/3p-integrations/togetherai/knowledge_graphs_with_structured_outputs.ipynb)"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -30,7 +30,7 @@
|
|
|
},
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
- "execution_count": 1,
|
|
|
+ "execution_count": null,
|
|
|
"metadata": {
|
|
|
"colab": {
|
|
|
"base_uri": "https://localhost:8080/"
|
|
@@ -38,52 +38,7 @@
|
|
|
"id": "DFAjay1FZVrn",
|
|
|
"outputId": "d4b17b31-c125-4de5-ad54-6d4d08d81eaa"
|
|
|
},
|
|
|
- "outputs": [
|
|
|
- {
|
|
|
- "name": "stdout",
|
|
|
- "output_type": "stream",
|
|
|
- "text": [
|
|
|
- "Requirement already satisfied: together in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (1.3.3)\n",
|
|
|
- "Requirement already satisfied: aiohttp<4.0.0,>=3.9.3 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (3.10.10)\n",
|
|
|
- "Requirement already satisfied: click<9.0.0,>=8.1.7 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (8.1.7)\n",
|
|
|
- "Requirement already satisfied: eval-type-backport<0.3.0,>=0.1.3 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (0.2.0)\n",
|
|
|
- "Requirement already satisfied: filelock<4.0.0,>=3.13.1 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (3.16.1)\n",
|
|
|
- "Requirement already satisfied: numpy>=1.23.5 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (1.26.4)\n",
|
|
|
- "Requirement already satisfied: pillow<11.0.0,>=10.3.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (10.4.0)\n",
|
|
|
- "Requirement already satisfied: pyarrow>=10.0.1 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (18.0.0)\n",
|
|
|
- "Requirement already satisfied: pydantic<3.0.0,>=2.6.3 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (2.9.2)\n",
|
|
|
- "Requirement already satisfied: requests<3.0.0,>=2.31.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (2.32.3)\n",
|
|
|
- "Requirement already satisfied: rich<14.0.0,>=13.8.1 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (13.9.3)\n",
|
|
|
- "Requirement already satisfied: tabulate<0.10.0,>=0.9.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (0.9.0)\n",
|
|
|
- "Requirement already satisfied: tqdm<5.0.0,>=4.66.2 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (4.66.6)\n",
|
|
|
- "Requirement already satisfied: typer<0.13,>=0.9 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from together) (0.12.5)\n",
|
|
|
- "Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.9.3->together) (2.4.3)\n",
|
|
|
- "Requirement already satisfied: aiosignal>=1.1.2 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.9.3->together) (1.3.1)\n",
|
|
|
- "Requirement already satisfied: attrs>=17.3.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.9.3->together) (24.2.0)\n",
|
|
|
- "Requirement already satisfied: frozenlist>=1.1.1 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.9.3->together) (1.5.0)\n",
|
|
|
- "Requirement already satisfied: multidict<7.0,>=4.5 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.9.3->together) (6.1.0)\n",
|
|
|
- "Requirement already satisfied: yarl<2.0,>=1.12.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.9.3->together) (1.17.1)\n",
|
|
|
- "Requirement already satisfied: async-timeout<5.0,>=4.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.9.3->together) (4.0.3)\n",
|
|
|
- "Requirement already satisfied: annotated-types>=0.6.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from pydantic<3.0.0,>=2.6.3->together) (0.7.0)\n",
|
|
|
- "Requirement already satisfied: pydantic-core==2.23.4 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from pydantic<3.0.0,>=2.6.3->together) (2.23.4)\n",
|
|
|
- "Requirement already satisfied: typing-extensions>=4.6.1 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from pydantic<3.0.0,>=2.6.3->together) (4.12.2)\n",
|
|
|
- "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from requests<3.0.0,>=2.31.0->together) (3.4.0)\n",
|
|
|
- "Requirement already satisfied: idna<4,>=2.5 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from requests<3.0.0,>=2.31.0->together) (3.10)\n",
|
|
|
- "Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from requests<3.0.0,>=2.31.0->together) (2.2.3)\n",
|
|
|
- "Requirement already satisfied: certifi>=2017.4.17 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from requests<3.0.0,>=2.31.0->together) (2024.8.30)\n",
|
|
|
- "Requirement already satisfied: markdown-it-py>=2.2.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from rich<14.0.0,>=13.8.1->together) (3.0.0)\n",
|
|
|
- "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from rich<14.0.0,>=13.8.1->together) (2.18.0)\n",
|
|
|
- "Requirement already satisfied: shellingham>=1.3.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from typer<0.13,>=0.9->together) (1.5.4)\n",
|
|
|
- "Requirement already satisfied: mdurl~=0.1 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from markdown-it-py>=2.2.0->rich<14.0.0,>=13.8.1->together) (0.1.2)\n",
|
|
|
- "Requirement already satisfied: propcache>=0.2.0 in /Users/jeffxtang/anaconda3/envs/llama-recipes/lib/python3.10/site-packages (from yarl<2.0,>=1.12.0->aiohttp<4.0.0,>=3.9.3->together) (0.2.0)\n",
|
|
|
- "Collecting graphviz\n",
|
|
|
- " Using cached graphviz-0.20.3-py3-none-any.whl.metadata (12 kB)\n",
|
|
|
- "Using cached graphviz-0.20.3-py3-none-any.whl (47 kB)\n",
|
|
|
- "Installing collected packages: graphviz\n",
|
|
|
- "Successfully installed graphviz-0.20.3\n"
|
|
|
- ]
|
|
|
- }
|
|
|
- ],
|
|
|
+ "outputs": [],
|
|
|
"source": [
|
|
|
"!pip install together\n",
|
|
|
"!pip install graphviz"
|