From ffd5900024742647971c34e802bff3284dfe15c8 Mon Sep 17 00:00:00 2001 From: Serkan Haytac Date: Sat, 10 Feb 2024 11:48:48 -0500 Subject: [PATCH] add missing os import add required openai api key env var --- rag_from_scratch_1_to_4.ipynb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rag_from_scratch_1_to_4.ipynb b/rag_from_scratch_1_to_4.ipynb index de094b3..0418d09 100644 --- a/rag_from_scratch_1_to_4.ipynb +++ b/rag_from_scratch_1_to_4.ipynb @@ -39,9 +39,11 @@ "metadata": {}, "outputs": [], "source": [ + "import os\n", "os.environ['LANGCHAIN_TRACING_V2'] = 'true'\n", "os.environ['LANGCHAIN_ENDPOINT'] = 'https://api.smith.langchain.com'\n", - "os.environ['LANGCHAIN_API_KEY'] = " + "os.environ['LANGCHAIN_API_KEY'] = \n", + "os.environ['OPENAI_API_KEY'] = " ] }, {