diff --git a/cookbook/anthropic_structured_outputs.ipynb b/cookbook/anthropic_structured_outputs.ipynb index e952e8afcfa..83781c762e9 100644 --- a/cookbook/anthropic_structured_outputs.ipynb +++ b/cookbook/anthropic_structured_outputs.ipynb @@ -31,8 +31,8 @@ "source": [ "# Optional\n", "import os\n", - "# os.environ['LANGCHAIN_TRACING_V2'] = 'true' # enables tracing\n", - "# os.environ['LANGCHAIN_API_KEY'] = " + "# os.environ['LANGSMITH_TRACING'] = 'true' # enables tracing\n", + "# os.environ['LANGSMITH_API_KEY'] = " ] }, { diff --git a/cookbook/local_rag_agents_intel_cpu.ipynb b/cookbook/local_rag_agents_intel_cpu.ipynb index 58bdeb2f633..5a70cb8fa8b 100644 --- a/cookbook/local_rag_agents_intel_cpu.ipynb +++ b/cookbook/local_rag_agents_intel_cpu.ipynb @@ -86,15 +86,15 @@ "\n", "Environment Variables:\n", "- USER_AGENT: Specifies the user agent string to be used.\n", - "- LANGCHAIN_TRACING_V2: Enables or disables tracing for LangChain.\n", - "- LANGCHAIN_API_KEY: API key for accessing LangChain services.\n", + "- LANGSMITH_TRACING: Enables or disables tracing for LangChain.\n", + "- LANGSMITH_API_KEY: API key for accessing LangChain services.\n", "- TAVILY_API_KEY: API key for accessing Tavily services.\n", "\"\"\"\n", "import os\n", "\n", "os.environ[\"USER_AGENT\"] = \"myagent\"\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = \"xxxx\"\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = \"xxxx\"\n", "os.environ[\"TAVILY_API_KEY\"] = \"tvly-xxxx\"" ] }, diff --git a/cookbook/mongodb-langchain-cache-memory.ipynb b/cookbook/mongodb-langchain-cache-memory.ipynb index b0cab4ebfe6..0a1da72e14f 100644 --- a/cookbook/mongodb-langchain-cache-memory.ipynb +++ b/cookbook/mongodb-langchain-cache-memory.ipynb @@ -124,8 +124,8 @@ "# Optional-- If you want to enable Langsmith -- good for debugging\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/cookbook/nomic_embedding_rag.ipynb b/cookbook/nomic_embedding_rag.ipynb index 473a2737d75..54c00cdf753 100644 --- a/cookbook/nomic_embedding_rag.ipynb +++ b/cookbook/nomic_embedding_rag.ipynb @@ -71,9 +71,9 @@ "# Optional: LangSmith API keys\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_ENDPOINT\"] = \"https://api.smith.langchain.com\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = \"api_key\"" + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_ENDPOINT\"] = \"https://api.smith.langchain.com\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = \"api_key\"" ] }, { diff --git a/cookbook/optimization.ipynb b/cookbook/optimization.ipynb index 2a039cf4eb7..f60c6fa71bf 100644 --- a/cookbook/optimization.ipynb +++ b/cookbook/optimization.ipynb @@ -29,7 +29,7 @@ "source": [ "import os\n", "\n", - "os.environ[\"LANGCHAIN_PROJECT\"] = \"movie-qa\"" + "os.environ[\"LANGSMITH_PROJECT\"] = \"movie-qa\"" ] }, { diff --git a/cookbook/wikibase_agent.ipynb b/cookbook/wikibase_agent.ipynb index d48b0eaa7ba..0a4d8960879 100644 --- a/cookbook/wikibase_agent.ipynb +++ b/cookbook/wikibase_agent.ipynb @@ -144,8 +144,8 @@ "outputs": [], "source": [ "# import os\n", - "# os.environ[\"LANGCHAIN_HANDLER\"] = \"langchain\"\n", - "# os.environ[\"LANGCHAIN_SESSION\"] = \"default\" # Make sure this session actually exists." + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_PROJECT\"] = \"default\" # Make sure this session actually exists." ] }, { diff --git a/docs/docs/how_to/agent_executor.ipynb b/docs/docs/how_to/agent_executor.ipynb index 3c9ab38bcdf..65aa36898b2 100644 --- a/docs/docs/how_to/agent_executor.ipynb +++ b/docs/docs/how_to/agent_executor.ipynb @@ -75,8 +75,8 @@ "After you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```shell\n", - "export LANGCHAIN_TRACING_V2=\"true\"\n", - "export LANGCHAIN_API_KEY=\"...\"\n", + "export LANGSMITH_TRACING=\"true\"\n", + "export LANGSMITH_API_KEY=\"...\"\n", "```\n", "\n", "Or, if in a notebook, you can set them with:\n", @@ -85,8 +85,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```\n" ] }, diff --git a/docs/docs/how_to/debugging.ipynb b/docs/docs/how_to/debugging.ipynb index a594ebf1591..a93a8348c3c 100644 --- a/docs/docs/how_to/debugging.ipynb +++ b/docs/docs/how_to/debugging.ipynb @@ -33,8 +33,8 @@ "After you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```shell\n", - "export LANGCHAIN_TRACING_V2=\"true\"\n", - "export LANGCHAIN_API_KEY=\"...\"\n", + "export LANGSMITH_TRACING=\"true\"\n", + "export LANGSMITH_API_KEY=\"...\"\n", "```\n", "\n", "Or, if in a notebook, you can set them with:\n", @@ -43,8 +43,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```\n", "\n", "Let's suppose we have an agent, and want to visualize the actions it takes and tool outputs it receives. Without any debugging, here's what we see:\n", diff --git a/docs/docs/how_to/graph_constructing.ipynb b/docs/docs/how_to/graph_constructing.ipynb index d036720b674..44df5e99d70 100644 --- a/docs/docs/how_to/graph_constructing.ipynb +++ b/docs/docs/how_to/graph_constructing.ipynb @@ -82,8 +82,8 @@ "os.environ[\"OPENAI_API_KEY\"] = getpass.getpass()\n", "\n", "# Uncomment the below to use LangSmith. Not required.\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"" + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"" ] }, { diff --git a/docs/docs/how_to/graph_semantic.ipynb b/docs/docs/how_to/graph_semantic.ipynb index f2832853e1c..a3d9d2418fd 100644 --- a/docs/docs/how_to/graph_semantic.ipynb +++ b/docs/docs/how_to/graph_semantic.ipynb @@ -68,8 +68,8 @@ "os.environ[\"OPENAI_API_KEY\"] = getpass.getpass()\n", "\n", "# Uncomment the below to use LangSmith. Not required.\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"" + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"" ] }, { diff --git a/docs/docs/how_to/qa_chat_history_how_to.ipynb b/docs/docs/how_to/qa_chat_history_how_to.ipynb index c1874135bb3..05dd70ebaf1 100644 --- a/docs/docs/how_to/qa_chat_history_how_to.ipynb +++ b/docs/docs/how_to/qa_chat_history_how_to.ipynb @@ -71,9 +71,9 @@ "Note that LangSmith is not needed, but it is helpful. If you do want to use LangSmith, after you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```python\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "if not os.environ.get(\"LANGCHAIN_API_KEY\"):\n", - " os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "if not os.environ.get(\"LANGSMITH_API_KEY\"):\n", + " os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```\n", "\n", "### Components\n", diff --git a/docs/docs/how_to/qa_sources.ipynb b/docs/docs/how_to/qa_sources.ipynb index e7833ce6001..44234c944bd 100644 --- a/docs/docs/how_to/qa_sources.ipynb +++ b/docs/docs/how_to/qa_sources.ipynb @@ -53,8 +53,8 @@ "Note that LangSmith is not needed, but it is helpful. If you do want to use LangSmith, after you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```python\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```" ] }, diff --git a/docs/docs/how_to/qa_streaming.ipynb b/docs/docs/how_to/qa_streaming.ipynb index 4c1fd3a9e1b..0ffb7685837 100644 --- a/docs/docs/how_to/qa_streaming.ipynb +++ b/docs/docs/how_to/qa_streaming.ipynb @@ -46,8 +46,8 @@ "Note that LangSmith is not needed, but it is helpful. If you do want to use LangSmith, after you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```python\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```" ] }, diff --git a/docs/docs/how_to/query_few_shot.ipynb b/docs/docs/how_to/query_few_shot.ipynb index ac66dc89ee4..fdc818ccdac 100644 --- a/docs/docs/how_to/query_few_shot.ipynb +++ b/docs/docs/how_to/query_few_shot.ipynb @@ -79,8 +79,8 @@ " os.environ[\"OPENAI_API_KEY\"] = getpass.getpass()\n", "\n", "# Optional, uncomment to trace runs with LangSmith. Sign up here: https://smith.langchain.com.\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/how_to/query_high_cardinality.ipynb b/docs/docs/how_to/query_high_cardinality.ipynb index 63c6677659b..2f76167aa69 100644 --- a/docs/docs/how_to/query_high_cardinality.ipynb +++ b/docs/docs/how_to/query_high_cardinality.ipynb @@ -80,8 +80,8 @@ " os.environ[\"OPENAI_API_KEY\"] = getpass.getpass()\n", "\n", "# Optional, uncomment to trace runs with LangSmith. Sign up here: https://smith.langchain.com.\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/how_to/query_multiple_queries.ipynb b/docs/docs/how_to/query_multiple_queries.ipynb index 79bf9be63a2..b8f06ca6889 100644 --- a/docs/docs/how_to/query_multiple_queries.ipynb +++ b/docs/docs/how_to/query_multiple_queries.ipynb @@ -85,8 +85,8 @@ " os.environ[\"OPENAI_API_KEY\"] = getpass.getpass()\n", "\n", "# Optional, uncomment to trace runs with LangSmith. Sign up here: https://smith.langchain.com.\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/how_to/query_multiple_retrievers.ipynb b/docs/docs/how_to/query_multiple_retrievers.ipynb index 6cde2876b4d..543699d525e 100644 --- a/docs/docs/how_to/query_multiple_retrievers.ipynb +++ b/docs/docs/how_to/query_multiple_retrievers.ipynb @@ -85,8 +85,8 @@ " os.environ[\"OPENAI_API_KEY\"] = getpass.getpass()\n", "\n", "# Optional, uncomment to trace runs with LangSmith. Sign up here: https://smith.langchain.com.\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/how_to/query_no_queries.ipynb b/docs/docs/how_to/query_no_queries.ipynb index 0024e5e608f..9d725df20c3 100644 --- a/docs/docs/how_to/query_no_queries.ipynb +++ b/docs/docs/how_to/query_no_queries.ipynb @@ -87,8 +87,8 @@ " os.environ[\"OPENAI_API_KEY\"] = getpass.getpass()\n", "\n", "# Optional, uncomment to trace runs with LangSmith. Sign up here: https://smith.langchain.com.\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/how_to/sql_csv.ipynb b/docs/docs/how_to/sql_csv.ipynb index f8111e682f2..9f9cf6a990e 100644 --- a/docs/docs/how_to/sql_csv.ipynb +++ b/docs/docs/how_to/sql_csv.ipynb @@ -55,8 +55,8 @@ "source": [ "# Using LangSmith is recommended but not required. Uncomment below lines to use.\n", "# import os\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/how_to/sql_large_db.ipynb b/docs/docs/how_to/sql_large_db.ipynb index 154bda4dc9b..8772ca05275 100644 --- a/docs/docs/how_to/sql_large_db.ipynb +++ b/docs/docs/how_to/sql_large_db.ipynb @@ -39,8 +39,8 @@ "source": [ "# Uncomment the below to use LangSmith. Not required.\n", "# import os\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"" + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"" ] }, { diff --git a/docs/docs/how_to/sql_prompting.ipynb b/docs/docs/how_to/sql_prompting.ipynb index 5908ccd14dd..348d608fb61 100644 --- a/docs/docs/how_to/sql_prompting.ipynb +++ b/docs/docs/how_to/sql_prompting.ipynb @@ -36,8 +36,8 @@ "source": [ "# Uncomment the below to use LangSmith. Not required.\n", "# import os\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"" + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"" ] }, { diff --git a/docs/docs/how_to/sql_query_checking.ipynb b/docs/docs/how_to/sql_query_checking.ipynb index ab1a875fdf6..955aa70fb26 100644 --- a/docs/docs/how_to/sql_query_checking.ipynb +++ b/docs/docs/how_to/sql_query_checking.ipynb @@ -38,8 +38,8 @@ "source": [ "# Uncomment the below to use LangSmith. Not required.\n", "# import os\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"" + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"" ] }, { diff --git a/docs/docs/how_to/tools_chain.ipynb b/docs/docs/how_to/tools_chain.ipynb index 4497659789c..4cfe0162b54 100644 --- a/docs/docs/how_to/tools_chain.ipynb +++ b/docs/docs/how_to/tools_chain.ipynb @@ -58,8 +58,8 @@ "import getpass\n", "import os\n", "\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/how_to/tools_error.ipynb b/docs/docs/how_to/tools_error.ipynb index 885c288e2af..3c70ba49b84 100644 --- a/docs/docs/how_to/tools_error.ipynb +++ b/docs/docs/how_to/tools_error.ipynb @@ -66,8 +66,8 @@ "import getpass\n", "import os\n", "\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/how_to/tools_human.ipynb b/docs/docs/how_to/tools_human.ipynb index 73b24d97445..59412bb950d 100644 --- a/docs/docs/how_to/tools_human.ipynb +++ b/docs/docs/how_to/tools_human.ipynb @@ -58,8 +58,8 @@ "import os\n", "\n", "# If you'd like to use LangSmith, uncomment the below:\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/how_to/tools_prompting.ipynb b/docs/docs/how_to/tools_prompting.ipynb index 29f82a914f0..e570077db57 100644 --- a/docs/docs/how_to/tools_prompting.ipynb +++ b/docs/docs/how_to/tools_prompting.ipynb @@ -78,8 +78,8 @@ "source": [ "import getpass\n", "import os\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/chat/ai21.ipynb b/docs/docs/integrations/chat/ai21.ipynb index e16a62260cf..1818fef0ab7 100644 --- a/docs/docs/integrations/chat/ai21.ipynb +++ b/docs/docs/integrations/chat/ai21.ipynb @@ -79,8 +79,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/chat/cloudflare_workersai.ipynb b/docs/docs/integrations/chat/cloudflare_workersai.ipynb index 571cf32282f..f840bb137a3 100644 --- a/docs/docs/integrations/chat/cloudflare_workersai.ipynb +++ b/docs/docs/integrations/chat/cloudflare_workersai.ipynb @@ -58,8 +58,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/chat/cohere.ipynb b/docs/docs/integrations/chat/cohere.ipynb index 841d378f886..733e4035ae5 100644 --- a/docs/docs/integrations/chat/cohere.ipynb +++ b/docs/docs/integrations/chat/cohere.ipynb @@ -66,8 +66,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/chat/naver.ipynb b/docs/docs/integrations/chat/naver.ipynb index 651eab58721..1af03aa4b06 100644 --- a/docs/docs/integrations/chat/naver.ipynb +++ b/docs/docs/integrations/chat/naver.ipynb @@ -92,8 +92,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/chat/nvidia_ai_endpoints.ipynb b/docs/docs/integrations/chat/nvidia_ai_endpoints.ipynb index 4127fb25fae..d150be9ba5f 100644 --- a/docs/docs/integrations/chat/nvidia_ai_endpoints.ipynb +++ b/docs/docs/integrations/chat/nvidia_ai_endpoints.ipynb @@ -93,8 +93,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/chat/reka.ipynb b/docs/docs/integrations/chat/reka.ipynb index 1ebedb66979..b906d32e9b8 100644 --- a/docs/docs/integrations/chat/reka.ipynb +++ b/docs/docs/integrations/chat/reka.ipynb @@ -104,8 +104,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your Langsmith API key: \")" + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your Langsmith API key: \")" ] }, { diff --git a/docs/docs/integrations/chat/sambanova.ipynb b/docs/docs/integrations/chat/sambanova.ipynb index ecfab9b25b4..aa8b9154acc 100644 --- a/docs/docs/integrations/chat/sambanova.ipynb +++ b/docs/docs/integrations/chat/sambanova.ipynb @@ -82,8 +82,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/chat/sambastudio.ipynb b/docs/docs/integrations/chat/sambastudio.ipynb index 5527baa6417..d75734890e9 100644 --- a/docs/docs/integrations/chat/sambastudio.ipynb +++ b/docs/docs/integrations/chat/sambastudio.ipynb @@ -85,8 +85,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/chat/vllm.ipynb b/docs/docs/integrations/chat/vllm.ipynb index 9fc97a650df..d43c443c6c6 100644 --- a/docs/docs/integrations/chat/vllm.ipynb +++ b/docs/docs/integrations/chat/vllm.ipynb @@ -57,8 +57,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/chat_loaders/langsmith_dataset.ipynb b/docs/docs/integrations/chat_loaders/langsmith_dataset.ipynb index 162747309e1..7be04ee8a03 100644 --- a/docs/docs/integrations/chat_loaders/langsmith_dataset.ipynb +++ b/docs/docs/integrations/chat_loaders/langsmith_dataset.ipynb @@ -44,8 +44,8 @@ "import uuid\n", "\n", "uid = uuid.uuid4().hex[:6]\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = \"YOUR API KEY\"" + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = \"YOUR API KEY\"" ] }, { diff --git a/docs/docs/integrations/chat_loaders/langsmith_llm_runs.ipynb b/docs/docs/integrations/chat_loaders/langsmith_llm_runs.ipynb index ca0dadd3a2c..ce66a8bcb08 100644 --- a/docs/docs/integrations/chat_loaders/langsmith_llm_runs.ipynb +++ b/docs/docs/integrations/chat_loaders/langsmith_llm_runs.ipynb @@ -45,9 +45,9 @@ "\n", "uid = uuid.uuid4().hex[:6]\n", "project_name = f\"Run Fine-tuning Walkthrough {uid}\"\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = \"YOUR API KEY\"\n", - "os.environ[\"LANGCHAIN_PROJECT\"] = project_name" + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = \"YOUR API KEY\"\n", + "os.environ[\"LANGSMITH_PROJECT\"] = project_name" ] }, { diff --git a/docs/docs/integrations/llms/cohere.ipynb b/docs/docs/integrations/llms/cohere.ipynb index ebf432a98a6..6710b6d9770 100644 --- a/docs/docs/integrations/llms/cohere.ipynb +++ b/docs/docs/integrations/llms/cohere.ipynb @@ -90,8 +90,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/memory/aws_dynamodb.ipynb b/docs/docs/integrations/memory/aws_dynamodb.ipynb index 78b44ffb587..f2a707fb9f5 100644 --- a/docs/docs/integrations/memory/aws_dynamodb.ipynb +++ b/docs/docs/integrations/memory/aws_dynamodb.ipynb @@ -41,8 +41,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/memory/mongodb_chat_message_history.ipynb b/docs/docs/integrations/memory/mongodb_chat_message_history.ipynb index b2ffaef7e3d..ba662e3dfb8 100644 --- a/docs/docs/integrations/memory/mongodb_chat_message_history.ipynb +++ b/docs/docs/integrations/memory/mongodb_chat_message_history.ipynb @@ -43,8 +43,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/memory/sql_chat_message_history.ipynb b/docs/docs/integrations/memory/sql_chat_message_history.ipynb index cd14b2ed423..5a86751c408 100644 --- a/docs/docs/integrations/memory/sql_chat_message_history.ipynb +++ b/docs/docs/integrations/memory/sql_chat_message_history.ipynb @@ -45,8 +45,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/memory/sqlite.ipynb b/docs/docs/integrations/memory/sqlite.ipynb index a5f51b52f2d..437c5e98919 100644 --- a/docs/docs/integrations/memory/sqlite.ipynb +++ b/docs/docs/integrations/memory/sqlite.ipynb @@ -21,8 +21,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/retrievers/asknews.ipynb b/docs/docs/integrations/retrievers/asknews.ipynb index b9edb52e7e0..0ab337f519f 100644 --- a/docs/docs/integrations/retrievers/asknews.ipynb +++ b/docs/docs/integrations/retrievers/asknews.ipynb @@ -46,8 +46,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/retrievers/you-retriever.ipynb b/docs/docs/integrations/retrievers/you-retriever.ipynb index d0f41b4fdf3..f4853f11fd2 100644 --- a/docs/docs/integrations/retrievers/you-retriever.ipynb +++ b/docs/docs/integrations/retrievers/you-retriever.ipynb @@ -74,9 +74,9 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", - "# os.environ[\"LANGCHAIN_PROJECT\"] = 'Experimentz'" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", + "# os.environ[\"LANGSMITH_PROJECT\"] = 'Experimentz'" ] }, { diff --git a/docs/docs/integrations/text_embedding/ai21.ipynb b/docs/docs/integrations/text_embedding/ai21.ipynb index d77ba9bbf6e..813e8ccf6b8 100644 --- a/docs/docs/integrations/text_embedding/ai21.ipynb +++ b/docs/docs/integrations/text_embedding/ai21.ipynb @@ -66,8 +66,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/azureopenai.ipynb b/docs/docs/integrations/text_embedding/azureopenai.ipynb index a7a52227be0..d94846038aa 100644 --- a/docs/docs/integrations/text_embedding/azureopenai.ipynb +++ b/docs/docs/integrations/text_embedding/azureopenai.ipynb @@ -74,8 +74,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/cohere.ipynb b/docs/docs/integrations/text_embedding/cohere.ipynb index f231b67b633..b1334f0ec40 100644 --- a/docs/docs/integrations/text_embedding/cohere.ipynb +++ b/docs/docs/integrations/text_embedding/cohere.ipynb @@ -65,8 +65,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/fireworks.ipynb b/docs/docs/integrations/text_embedding/fireworks.ipynb index cbdf48e5e9e..5a593ebac52 100644 --- a/docs/docs/integrations/text_embedding/fireworks.ipynb +++ b/docs/docs/integrations/text_embedding/fireworks.ipynb @@ -65,8 +65,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/google_vertex_ai_palm.ipynb b/docs/docs/integrations/text_embedding/google_vertex_ai_palm.ipynb index e29f5b42e31..6cabee7a1d3 100644 --- a/docs/docs/integrations/text_embedding/google_vertex_ai_palm.ipynb +++ b/docs/docs/integrations/text_embedding/google_vertex_ai_palm.ipynb @@ -114,8 +114,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/mistralai.ipynb b/docs/docs/integrations/text_embedding/mistralai.ipynb index b9e8d0bda9a..af008b75d14 100644 --- a/docs/docs/integrations/text_embedding/mistralai.ipynb +++ b/docs/docs/integrations/text_embedding/mistralai.ipynb @@ -64,8 +64,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/nomic.ipynb b/docs/docs/integrations/text_embedding/nomic.ipynb index 820e3c2a326..c06a8d7d428 100644 --- a/docs/docs/integrations/text_embedding/nomic.ipynb +++ b/docs/docs/integrations/text_embedding/nomic.ipynb @@ -64,8 +64,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/ollama.ipynb b/docs/docs/integrations/text_embedding/ollama.ipynb index b95d82d226d..ddf5c154636 100644 --- a/docs/docs/integrations/text_embedding/ollama.ipynb +++ b/docs/docs/integrations/text_embedding/ollama.ipynb @@ -66,8 +66,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/openai.ipynb b/docs/docs/integrations/text_embedding/openai.ipynb index 83eeab2293e..b61440cd344 100644 --- a/docs/docs/integrations/text_embedding/openai.ipynb +++ b/docs/docs/integrations/text_embedding/openai.ipynb @@ -66,8 +66,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/together.ipynb b/docs/docs/integrations/text_embedding/together.ipynb index 26721fb183f..5cb07b6f852 100644 --- a/docs/docs/integrations/text_embedding/together.ipynb +++ b/docs/docs/integrations/text_embedding/together.ipynb @@ -64,8 +64,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/text_embedding/zhipuai.ipynb b/docs/docs/integrations/text_embedding/zhipuai.ipynb index d33ac41c93e..5c4d9235bb3 100644 --- a/docs/docs/integrations/text_embedding/zhipuai.ipynb +++ b/docs/docs/integrations/text_embedding/zhipuai.ipynb @@ -65,8 +65,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/tools/gmail.ipynb b/docs/docs/integrations/tools/gmail.ipynb index 2f91852c055..0e3816c8bbd 100644 --- a/docs/docs/integrations/tools/gmail.ipynb +++ b/docs/docs/integrations/tools/gmail.ipynb @@ -44,8 +44,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/docs/docs/integrations/tools/jina_search.ipynb b/docs/docs/integrations/tools/jina_search.ipynb index 9003064566a..03af86055f0 100644 --- a/docs/docs/integrations/tools/jina_search.ipynb +++ b/docs/docs/integrations/tools/jina_search.ipynb @@ -82,8 +82,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/tools/linkup_search.ipynb b/docs/docs/integrations/tools/linkup_search.ipynb index 83126f0e3cb..70be6d78759 100644 --- a/docs/docs/integrations/tools/linkup_search.ipynb +++ b/docs/docs/integrations/tools/linkup_search.ipynb @@ -91,8 +91,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/tools/polygon.ipynb b/docs/docs/integrations/tools/polygon.ipynb index cac533d91ee..e446dccc9af 100644 --- a/docs/docs/integrations/tools/polygon.ipynb +++ b/docs/docs/integrations/tools/polygon.ipynb @@ -71,8 +71,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/tools/robocorp.ipynb b/docs/docs/integrations/tools/robocorp.ipynb index 4bae80e081c..acef9526022 100644 --- a/docs/docs/integrations/tools/robocorp.ipynb +++ b/docs/docs/integrations/tools/robocorp.ipynb @@ -86,7 +86,7 @@ "\n", "Optionally you can set the following environment variables:\n", "\n", - "- `LANGCHAIN_TRACING_V2=true`: To enable LangSmith log run tracing that can also be bind to respective Action Server action run logs. See [LangSmith documentation](https://docs.smith.langchain.com/tracing#log-runs) for more.\n", + "- `LANGSMITH_TRACING=true`: To enable LangSmith log run tracing that can also be bind to respective Action Server action run logs. See [LangSmith documentation](https://docs.smith.langchain.com/tracing#log-runs) for more.\n", "\n", "## Usage\n", "\n", diff --git a/docs/docs/integrations/tools/scrapegraph.ipynb b/docs/docs/integrations/tools/scrapegraph.ipynb index ed9b37d97bd..e8c0f53e706 100644 --- a/docs/docs/integrations/tools/scrapegraph.ipynb +++ b/docs/docs/integrations/tools/scrapegraph.ipynb @@ -106,8 +106,8 @@ "metadata": {}, "outputs": [], "source": [ - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/tools/stripe.ipynb b/docs/docs/integrations/tools/stripe.ipynb index 0edc4cdd6d6..3ae6029e2de 100644 --- a/docs/docs/integrations/tools/stripe.ipynb +++ b/docs/docs/integrations/tools/stripe.ipynb @@ -97,8 +97,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/tools/tavily_search.ipynb b/docs/docs/integrations/tools/tavily_search.ipynb index be4975745f4..07559a06eea 100644 --- a/docs/docs/integrations/tools/tavily_search.ipynb +++ b/docs/docs/integrations/tools/tavily_search.ipynb @@ -82,8 +82,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/tools/you.ipynb b/docs/docs/integrations/tools/you.ipynb index 1b74161c3cb..76265e590be 100644 --- a/docs/docs/integrations/tools/you.ipynb +++ b/docs/docs/integrations/tools/you.ipynb @@ -74,8 +74,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/vectorstores/couchbase.ipynb b/docs/docs/integrations/vectorstores/couchbase.ipynb index af5f1af4f51..efc6b8a4c75 100644 --- a/docs/docs/integrations/vectorstores/couchbase.ipynb +++ b/docs/docs/integrations/vectorstores/couchbase.ipynb @@ -74,8 +74,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/integrations/vectorstores/faiss.ipynb b/docs/docs/integrations/vectorstores/faiss.ipynb index 26520baa6ac..f49315c83b2 100644 --- a/docs/docs/integrations/vectorstores/faiss.ipynb +++ b/docs/docs/integrations/vectorstores/faiss.ipynb @@ -55,8 +55,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/docs/docs/tutorials/agents.ipynb b/docs/docs/tutorials/agents.ipynb index 9998cc72370..5b9e677459f 100644 --- a/docs/docs/tutorials/agents.ipynb +++ b/docs/docs/tutorials/agents.ipynb @@ -130,8 +130,8 @@ "After you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```shell\n", - "export LANGCHAIN_TRACING_V2=\"true\"\n", - "export LANGCHAIN_API_KEY=\"...\"\n", + "export LANGSMITH_TRACING=\"true\"\n", + "export LANGSMITH_API_KEY=\"...\"\n", "```\n", "\n", "Or, if in a notebook, you can set them with:\n", @@ -140,8 +140,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```\n", "\n", "### Tavily\n", diff --git a/docs/docs/tutorials/chatbot.ipynb b/docs/docs/tutorials/chatbot.ipynb index 59c5220200c..bddd9d08b13 100644 --- a/docs/docs/tutorials/chatbot.ipynb +++ b/docs/docs/tutorials/chatbot.ipynb @@ -88,8 +88,8 @@ "After you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```shell\n", - "export LANGCHAIN_TRACING_V2=\"true\"\n", - "export LANGCHAIN_API_KEY=\"...\"\n", + "export LANGSMITH_TRACING=\"true\"\n", + "export LANGSMITH_API_KEY=\"...\"\n", "```\n", "\n", "Or, if in a notebook, you can set them with:\n", @@ -98,8 +98,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```\n", "\n", "## Quickstart\n", diff --git a/docs/docs/tutorials/extraction.ipynb b/docs/docs/tutorials/extraction.ipynb index 981aa42eeb8..18d444723b2 100644 --- a/docs/docs/tutorials/extraction.ipynb +++ b/docs/docs/tutorials/extraction.ipynb @@ -65,8 +65,8 @@ "After you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```shell\n", - "export LANGCHAIN_TRACING_V2=\"true\"\n", - "export LANGCHAIN_API_KEY=\"...\"\n", + "export LANGSMITH_TRACING=\"true\"\n", + "export LANGSMITH_API_KEY=\"...\"\n", "```\n", "\n", "Or, if in a notebook, you can set them with:\n", @@ -75,8 +75,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```" ] }, diff --git a/docs/docs/tutorials/graph.ipynb b/docs/docs/tutorials/graph.ipynb index 1bd434c89cd..c6c9d2b148d 100644 --- a/docs/docs/tutorials/graph.ipynb +++ b/docs/docs/tutorials/graph.ipynb @@ -76,8 +76,8 @@ " os.environ[\"OPENAI_API_KEY\"] = getpass.getpass(\"Enter your OpenAI API key: \")\n", "\n", "# Uncomment the below to use LangSmith. Not required.\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"" + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"" ] }, { diff --git a/docs/docs/tutorials/llm_chain.ipynb b/docs/docs/tutorials/llm_chain.ipynb index be3d06736c4..c1b47f06071 100644 --- a/docs/docs/tutorials/llm_chain.ipynb +++ b/docs/docs/tutorials/llm_chain.ipynb @@ -65,8 +65,8 @@ "After you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```shell\n", - "export LANGCHAIN_TRACING_V2=\"true\"\n", - "export LANGCHAIN_API_KEY=\"...\"\n", + "export LANGSMITH_TRACING=\"true\"\n", + "export LANGSMITH_API_KEY=\"...\"\n", "```\n", "\n", "Or, if in a notebook, you can set them with:\n", @@ -75,8 +75,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```" ] }, diff --git a/docs/docs/tutorials/qa_chat_history.ipynb b/docs/docs/tutorials/qa_chat_history.ipynb index 3acb3368a7b..c389bd2cbdc 100644 --- a/docs/docs/tutorials/qa_chat_history.ipynb +++ b/docs/docs/tutorials/qa_chat_history.ipynb @@ -155,9 +155,9 @@ "Note that LangSmith is not needed, but it is helpful. If you do want to use LangSmith, after you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```python\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "if not os.environ.get(\"LANGCHAIN_API_KEY\"):\n", - " os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "if not os.environ.get(\"LANGSMITH_API_KEY\"):\n", + " os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```" ] }, diff --git a/docs/docs/tutorials/rag.ipynb b/docs/docs/tutorials/rag.ipynb index 2bae2aecd4e..511378e3ff9 100644 --- a/docs/docs/tutorials/rag.ipynb +++ b/docs/docs/tutorials/rag.ipynb @@ -104,8 +104,8 @@ "After you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```shell\n", - "export LANGCHAIN_TRACING_V2=\"true\"\n", - "export LANGCHAIN_API_KEY=\"...\"\n", + "export LANGSMITH_TRACING=\"true\"\n", + "export LANGSMITH_API_KEY=\"...\"\n", "```\n", "\n", "Or, if in a notebook, you can set them with:\n", @@ -114,8 +114,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```\n", "\n", "## Components\n", diff --git a/docs/docs/tutorials/retrievers.ipynb b/docs/docs/tutorials/retrievers.ipynb index 2b3ee8f5a10..5cf0f483dcd 100644 --- a/docs/docs/tutorials/retrievers.ipynb +++ b/docs/docs/tutorials/retrievers.ipynb @@ -55,8 +55,8 @@ "After you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```shell\n", - "export LANGCHAIN_TRACING_V2=\"true\"\n", - "export LANGCHAIN_API_KEY=\"...\"\n", + "export LANGSMITH_TRACING=\"true\"\n", + "export LANGSMITH_API_KEY=\"...\"\n", "```\n", "\n", "Or, if in a notebook, you can set them with:\n", @@ -65,8 +65,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```\n", "\n", "\n", diff --git a/docs/docs/tutorials/sql_qa.ipynb b/docs/docs/tutorials/sql_qa.ipynb index 4f67b1624ae..65d66f04007 100644 --- a/docs/docs/tutorials/sql_qa.ipynb +++ b/docs/docs/tutorials/sql_qa.ipynb @@ -57,9 +57,9 @@ "source": [ "```python\n", "# Comment out the below to opt-out of using LangSmith in this notebook. Not required.\n", - "if not os.environ.get(\"LANGCHAIN_API_KEY\"):\n", - " os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", - " os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", + "if not os.environ.get(\"LANGSMITH_API_KEY\"):\n", + " os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", + " os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", "```" ] }, diff --git a/docs/docs/tutorials/summarization.ipynb b/docs/docs/tutorials/summarization.ipynb index f4800405007..dc8e3d1b0dc 100644 --- a/docs/docs/tutorials/summarization.ipynb +++ b/docs/docs/tutorials/summarization.ipynb @@ -100,8 +100,8 @@ "After you sign up at the link above, make sure to set your environment variables to start logging traces:\n", "\n", "```shell\n", - "export LANGCHAIN_TRACING_V2=\"true\"\n", - "export LANGCHAIN_API_KEY=\"...\"\n", + "export LANGSMITH_TRACING=\"true\"\n", + "export LANGSMITH_API_KEY=\"...\"\n", "```\n", "\n", "Or, if in a notebook, you can set them with:\n", @@ -110,8 +110,8 @@ "import getpass\n", "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()\n", + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()\n", "```" ] }, @@ -173,7 +173,7 @@ "source": [ "import os\n", "\n", - "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"" + "os.environ[\"LANGSMITH_TRACING\"] = \"true\"" ] }, { diff --git a/libs/cli/langchain_cli/integration_template/docs/chat.ipynb b/libs/cli/langchain_cli/integration_template/docs/chat.ipynb index 4410789a8e9..95ac5d9c5d3 100644 --- a/libs/cli/langchain_cli/integration_template/docs/chat.ipynb +++ b/libs/cli/langchain_cli/integration_template/docs/chat.ipynb @@ -81,8 +81,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/libs/cli/langchain_cli/integration_template/docs/llms.ipynb b/libs/cli/langchain_cli/integration_template/docs/llms.ipynb index 6af4fb79416..3a2bedfd3ca 100644 --- a/libs/cli/langchain_cli/integration_template/docs/llms.ipynb +++ b/libs/cli/langchain_cli/integration_template/docs/llms.ipynb @@ -74,8 +74,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/libs/cli/langchain_cli/integration_template/docs/text_embedding.ipynb b/libs/cli/langchain_cli/integration_template/docs/text_embedding.ipynb index 79ff38ba763..81369c29ca3 100644 --- a/libs/cli/langchain_cli/integration_template/docs/text_embedding.ipynb +++ b/libs/cli/langchain_cli/integration_template/docs/text_embedding.ipynb @@ -70,8 +70,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass(\"Enter your LangSmith API key: \")" ] }, { diff --git a/libs/cli/langchain_cli/integration_template/docs/tools.ipynb b/libs/cli/langchain_cli/integration_template/docs/tools.ipynb index 65929d292ff..f1e02ca844f 100644 --- a/libs/cli/langchain_cli/integration_template/docs/tools.ipynb +++ b/libs/cli/langchain_cli/integration_template/docs/tools.ipynb @@ -94,8 +94,8 @@ "metadata": {}, "outputs": [], "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" + "# os.environ[\"LANGSMITH_TRACING\"] = \"true\"\n", + "# os.environ[\"LANGSMITH_API_KEY\"] = getpass.getpass()" ] }, { diff --git a/libs/cli/langchain_cli/package_template/README.md b/libs/cli/langchain_cli/package_template/README.md index 1b3e8226890..38d5efe839b 100644 --- a/libs/cli/langchain_cli/package_template/README.md +++ b/libs/cli/langchain_cli/package_template/README.md @@ -38,9 +38,9 @@ If you don't have access, you can skip this section ```shell -export LANGCHAIN_TRACING_V2=true -export LANGCHAIN_API_KEY= -export LANGCHAIN_PROJECT= # if not specified, defaults to "default" +export LANGSMITH_TRACING=true +export LANGSMITH_API_KEY= +export LANGSMITH_PROJECT= # if not specified, defaults to "default" ``` If you are inside this directory, then you can spin up a LangServe instance directly by: diff --git a/libs/cli/langchain_cli/project_template/README.md b/libs/cli/langchain_cli/project_template/README.md index ae2a2dc9840..73a49981452 100644 --- a/libs/cli/langchain_cli/project_template/README.md +++ b/libs/cli/langchain_cli/project_template/README.md @@ -37,9 +37,9 @@ If you don't have access, you can skip this section ```shell -export LANGCHAIN_TRACING_V2=true -export LANGCHAIN_API_KEY= -export LANGCHAIN_PROJECT= # if not specified, defaults to "default" +export LANGSMITH_TRACING=true +export LANGSMITH_API_KEY= +export LANGSMITH_PROJECT= # if not specified, defaults to "default" ``` ## Launch LangServe