From 9ab158a568bbcfea68c0a99a5b696d7f75fec29e Mon Sep 17 00:00:00 2001 From: leo-gan Date: Tue, 12 Nov 2024 10:22:31 -0800 Subject: [PATCH 1/8] update --- docs/docs/integrations/providers/wandb.mdx | 42 +++++++++++++ .../providers/wandb_tracing.ipynb | 2 +- .../providers/wandb_tracking.ipynb | 60 +++++++++++++++++-- 3 files changed, 99 insertions(+), 5 deletions(-) create mode 100644 docs/docs/integrations/providers/wandb.mdx diff --git a/docs/docs/integrations/providers/wandb.mdx b/docs/docs/integrations/providers/wandb.mdx new file mode 100644 index 0000000000000..0347650665244 --- /dev/null +++ b/docs/docs/integrations/providers/wandb.mdx @@ -0,0 +1,42 @@ +# # Weights & Biases + +>[Weights & Biases](https://wandb.ai/) is provider of the AI developer platform to train and +> fine-tune AI models and develop AI applications. + +`Weights & Biase` products can be used to log metrics and artifacts during training, +and to trace the execution of your code. + +There are several main ways to use `Weights & Biases` products within LangChain: +- with `wandb_tracing_enabled` +- with `Weave` lightweight toolkit +- with `WandbCallbackHandler` (deprecated) + + +## wandb_tracing_enabled + +See a [usage example](/docs/integrations/providers/wandb_tracing). + +See in the [W&B documentation](https://docs.wandb.ai/guides/integrations/langchain). + +```python +from langchain_community.callbacks import wandb_tracing_enabled +``` + +## Weave + +See in the [W&B documentation](https://weave-docs.wandb.ai/guides/integrations/langchain). + + +## WandbCallbackHandler + +**Note:** the `WandbCallbackHandler` is being deprecated in favour of the `wandb_tracing_enabled`. + +See a [usage example](/docs/integrations/providers/wandb_tracking). + +See in the [W&B documentation](https://docs.wandb.ai/guides/integrations/langchain). + +```python +from langchain_community.callbacks import WandbCallbackHandler +``` + + diff --git a/docs/docs/integrations/providers/wandb_tracing.ipynb b/docs/docs/integrations/providers/wandb_tracing.ipynb index 89b0dd8d3b727..666016cf20f6e 100644 --- a/docs/docs/integrations/providers/wandb_tracing.ipynb +++ b/docs/docs/integrations/providers/wandb_tracing.ipynb @@ -165,7 +165,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.3" + "version": "3.10.12" } }, "nbformat": 4, diff --git a/docs/docs/integrations/providers/wandb_tracking.ipynb b/docs/docs/integrations/providers/wandb_tracking.ipynb index 5f034619867a1..e6c1c3d8eabf6 100644 --- a/docs/docs/integrations/providers/wandb_tracking.ipynb +++ b/docs/docs/integrations/providers/wandb_tracking.ipynb @@ -14,11 +14,15 @@ "\"Open\n", "\n", "\n", - "[View Report](https://wandb.ai/a-sh0ts/langchain_callback_demo/reports/Prompt-Engineering-LLMs-with-LangChain-and-W-B--VmlldzozNjk1NTUw#👋-how-to-build-a-callback-in-langchain-for-better-prompt-engineering\n", - ") \n", + "View a detailed description and examples in the [W&B article](https://wandb.ai/a-sh0ts/langchain_callback_demo/reports/Prompt-Engineering-LLMs-with-LangChain-and-W-B--VmlldzozNjk1NTUw#👋-how-to-build-a-callback-in-langchain-for-better-prompt-engineering\n", + "). \n", "\n", "\n", - "**Note**: _the `WandbCallbackHandler` is being deprecated in favour of the `WandbTracer`_ . In future please use the `WandbTracer` as it is more flexible and allows for more granular logging. To know more about the `WandbTracer` refer to the [agent_with_wandb_tracing](/docs/integrations/providers/wandb_tracing) notebook or use the following [colab notebook](http://wandb.me/prompts-quickstart). To know more about Weights & Biases Prompts refer to the following [prompts documentation](https://docs.wandb.ai/guides/prompts)." + "**Note**: _the `WandbCallbackHandler` is being deprecated in favour of the `WandbTracer`_ . In future please use the `WandbTracer` as it is more flexible and allows for more granular logging. \n", + "\n", + "To know more about the `WandbTracer` refer to the [agent_with_wandb_tracing](/docs/integrations/providers/wandb_tracing) notebook or use the following [colab notebook](http://wandb.me/prompts-quickstart). \n", + "\n", + "To know more about Weights & Biases Prompts refer to the following [prompts documentation](https://docs.wandb.ai/guides/prompts)." ] }, { @@ -248,6 +252,38 @@ "The `flush_tracker` function is used to log LangChain sessions to Weights & Biases. It takes in the LangChain module or agent, and logs at minimum the prompts and generations alongside the serialized form of the LangChain module to the specified Weights & Biases project. By default we reset the session as opposed to concluding the session outright." ] }, + { + "cell_type": "markdown", + "id": "483eefd4-633e-4686-8730-944705fe8a80", + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-12T18:20:31.003316Z", + "iopub.status.busy": "2024-11-12T18:20:31.003152Z", + "iopub.status.idle": "2024-11-12T18:20:31.006033Z", + "shell.execute_reply": "2024-11-12T18:20:31.005546Z", + "shell.execute_reply.started": "2024-11-12T18:20:31.003303Z" + } + }, + "source": [ + "## Usage Scenarios" + ] + }, + { + "cell_type": "markdown", + "id": "066adc04-8180-4936-8d75-5c3660b61de7", + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-12T18:20:45.826326Z", + "iopub.status.busy": "2024-11-12T18:20:45.825714Z", + "iopub.status.idle": "2024-11-12T18:20:45.830483Z", + "shell.execute_reply": "2024-11-12T18:20:45.830037Z", + "shell.execute_reply.started": "2024-11-12T18:20:45.826279Z" + } + }, + "source": [ + "### With LLM" + ] + }, { "cell_type": "code", "execution_count": 4, @@ -373,6 +409,14 @@ "wandb_callback.flush_tracker(llm, name=\"simple_sequential\")" ] }, + { + "cell_type": "markdown", + "id": "7dcfc24b-f0b0-48ec-89ce-beeb2fb763d5", + "metadata": {}, + "source": [ + "### Within Chains" + ] + }, { "cell_type": "code", "execution_count": 5, @@ -524,6 +568,14 @@ "wandb_callback.flush_tracker(synopsis_chain, name=\"agent\")" ] }, + { + "cell_type": "markdown", + "id": "533cd4c9-56e2-4ad9-a83e-4653bfcf322f", + "metadata": {}, + "source": [ + "### With Agents" + ] + }, { "cell_type": "code", "execution_count": 7, @@ -646,7 +698,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.1" + "version": "3.10.12" } }, "nbformat": 4, From 36cdc0008e9078217b78b789464553cf1cc4507a Mon Sep 17 00:00:00 2001 From: leo-gan Date: Tue, 12 Nov 2024 10:54:21 -0800 Subject: [PATCH 2/8] update --- docs/docs/integrations/providers/wandb.mdx | 2 +- docs/docs/integrations/providers/wandb_tracing.ipynb | 2 +- docs/docs/integrations/providers/wandb_tracking.ipynb | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/docs/integrations/providers/wandb.mdx b/docs/docs/integrations/providers/wandb.mdx index 0347650665244..8eb85116ff02f 100644 --- a/docs/docs/integrations/providers/wandb.mdx +++ b/docs/docs/integrations/providers/wandb.mdx @@ -1,4 +1,4 @@ -# # Weights & Biases +# Weights & Biases >[Weights & Biases](https://wandb.ai/) is provider of the AI developer platform to train and > fine-tune AI models and develop AI applications. diff --git a/docs/docs/integrations/providers/wandb_tracing.ipynb b/docs/docs/integrations/providers/wandb_tracing.ipynb index 666016cf20f6e..ce6480d1a0d06 100644 --- a/docs/docs/integrations/providers/wandb_tracing.ipynb +++ b/docs/docs/integrations/providers/wandb_tracing.ipynb @@ -5,7 +5,7 @@ "id": "5371a9bb", "metadata": {}, "source": [ - "# WandB Tracing\n", + "# Weights & Biases tracing\n", "\n", "There are two recommended ways to trace your LangChains:\n", "\n", diff --git a/docs/docs/integrations/providers/wandb_tracking.ipynb b/docs/docs/integrations/providers/wandb_tracking.ipynb index e6c1c3d8eabf6..ea49435e24efd 100644 --- a/docs/docs/integrations/providers/wandb_tracking.ipynb +++ b/docs/docs/integrations/providers/wandb_tracking.ipynb @@ -6,10 +6,11 @@ "id": "e43f4ea0", "metadata": {}, "source": [ - "# Weights & Biases\n", + "# Weights & Biases tracking\n", "\n", - "This notebook goes over how to track your LangChain experiments into one centralized Weights and Biases dashboard. To learn more about prompt engineering and the callback please refer to this Report which explains both alongside the resultant dashboards you can expect to see.\n", + "This notebook goes over how to track your LangChain experiments into one centralized `Weights and Biases` dashboard. \n", "\n", + "To learn more about prompt engineering and the callback please refer to this notebook which explains both alongside the resultant dashboards you can expect to see:\n", "\n", "\"Open\n", "\n", From 5917af7284dd85d00cd47aa333ed91011515b35b Mon Sep 17 00:00:00 2001 From: leo-gan Date: Tue, 12 Nov 2024 10:22:31 -0800 Subject: [PATCH 3/8] update --- docs/docs/integrations/providers/wandb.mdx | 42 +++++++++++++ .../providers/wandb_tracing.ipynb | 2 +- .../providers/wandb_tracking.ipynb | 60 +++++++++++++++++-- 3 files changed, 99 insertions(+), 5 deletions(-) create mode 100644 docs/docs/integrations/providers/wandb.mdx diff --git a/docs/docs/integrations/providers/wandb.mdx b/docs/docs/integrations/providers/wandb.mdx new file mode 100644 index 0000000000000..0347650665244 --- /dev/null +++ b/docs/docs/integrations/providers/wandb.mdx @@ -0,0 +1,42 @@ +# # Weights & Biases + +>[Weights & Biases](https://wandb.ai/) is provider of the AI developer platform to train and +> fine-tune AI models and develop AI applications. + +`Weights & Biase` products can be used to log metrics and artifacts during training, +and to trace the execution of your code. + +There are several main ways to use `Weights & Biases` products within LangChain: +- with `wandb_tracing_enabled` +- with `Weave` lightweight toolkit +- with `WandbCallbackHandler` (deprecated) + + +## wandb_tracing_enabled + +See a [usage example](/docs/integrations/providers/wandb_tracing). + +See in the [W&B documentation](https://docs.wandb.ai/guides/integrations/langchain). + +```python +from langchain_community.callbacks import wandb_tracing_enabled +``` + +## Weave + +See in the [W&B documentation](https://weave-docs.wandb.ai/guides/integrations/langchain). + + +## WandbCallbackHandler + +**Note:** the `WandbCallbackHandler` is being deprecated in favour of the `wandb_tracing_enabled`. + +See a [usage example](/docs/integrations/providers/wandb_tracking). + +See in the [W&B documentation](https://docs.wandb.ai/guides/integrations/langchain). + +```python +from langchain_community.callbacks import WandbCallbackHandler +``` + + diff --git a/docs/docs/integrations/providers/wandb_tracing.ipynb b/docs/docs/integrations/providers/wandb_tracing.ipynb index 89b0dd8d3b727..666016cf20f6e 100644 --- a/docs/docs/integrations/providers/wandb_tracing.ipynb +++ b/docs/docs/integrations/providers/wandb_tracing.ipynb @@ -165,7 +165,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.3" + "version": "3.10.12" } }, "nbformat": 4, diff --git a/docs/docs/integrations/providers/wandb_tracking.ipynb b/docs/docs/integrations/providers/wandb_tracking.ipynb index 5f034619867a1..e6c1c3d8eabf6 100644 --- a/docs/docs/integrations/providers/wandb_tracking.ipynb +++ b/docs/docs/integrations/providers/wandb_tracking.ipynb @@ -14,11 +14,15 @@ "\"Open\n", "\n", "\n", - "[View Report](https://wandb.ai/a-sh0ts/langchain_callback_demo/reports/Prompt-Engineering-LLMs-with-LangChain-and-W-B--VmlldzozNjk1NTUw#👋-how-to-build-a-callback-in-langchain-for-better-prompt-engineering\n", - ") \n", + "View a detailed description and examples in the [W&B article](https://wandb.ai/a-sh0ts/langchain_callback_demo/reports/Prompt-Engineering-LLMs-with-LangChain-and-W-B--VmlldzozNjk1NTUw#👋-how-to-build-a-callback-in-langchain-for-better-prompt-engineering\n", + "). \n", "\n", "\n", - "**Note**: _the `WandbCallbackHandler` is being deprecated in favour of the `WandbTracer`_ . In future please use the `WandbTracer` as it is more flexible and allows for more granular logging. To know more about the `WandbTracer` refer to the [agent_with_wandb_tracing](/docs/integrations/providers/wandb_tracing) notebook or use the following [colab notebook](http://wandb.me/prompts-quickstart). To know more about Weights & Biases Prompts refer to the following [prompts documentation](https://docs.wandb.ai/guides/prompts)." + "**Note**: _the `WandbCallbackHandler` is being deprecated in favour of the `WandbTracer`_ . In future please use the `WandbTracer` as it is more flexible and allows for more granular logging. \n", + "\n", + "To know more about the `WandbTracer` refer to the [agent_with_wandb_tracing](/docs/integrations/providers/wandb_tracing) notebook or use the following [colab notebook](http://wandb.me/prompts-quickstart). \n", + "\n", + "To know more about Weights & Biases Prompts refer to the following [prompts documentation](https://docs.wandb.ai/guides/prompts)." ] }, { @@ -248,6 +252,38 @@ "The `flush_tracker` function is used to log LangChain sessions to Weights & Biases. It takes in the LangChain module or agent, and logs at minimum the prompts and generations alongside the serialized form of the LangChain module to the specified Weights & Biases project. By default we reset the session as opposed to concluding the session outright." ] }, + { + "cell_type": "markdown", + "id": "483eefd4-633e-4686-8730-944705fe8a80", + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-12T18:20:31.003316Z", + "iopub.status.busy": "2024-11-12T18:20:31.003152Z", + "iopub.status.idle": "2024-11-12T18:20:31.006033Z", + "shell.execute_reply": "2024-11-12T18:20:31.005546Z", + "shell.execute_reply.started": "2024-11-12T18:20:31.003303Z" + } + }, + "source": [ + "## Usage Scenarios" + ] + }, + { + "cell_type": "markdown", + "id": "066adc04-8180-4936-8d75-5c3660b61de7", + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-12T18:20:45.826326Z", + "iopub.status.busy": "2024-11-12T18:20:45.825714Z", + "iopub.status.idle": "2024-11-12T18:20:45.830483Z", + "shell.execute_reply": "2024-11-12T18:20:45.830037Z", + "shell.execute_reply.started": "2024-11-12T18:20:45.826279Z" + } + }, + "source": [ + "### With LLM" + ] + }, { "cell_type": "code", "execution_count": 4, @@ -373,6 +409,14 @@ "wandb_callback.flush_tracker(llm, name=\"simple_sequential\")" ] }, + { + "cell_type": "markdown", + "id": "7dcfc24b-f0b0-48ec-89ce-beeb2fb763d5", + "metadata": {}, + "source": [ + "### Within Chains" + ] + }, { "cell_type": "code", "execution_count": 5, @@ -524,6 +568,14 @@ "wandb_callback.flush_tracker(synopsis_chain, name=\"agent\")" ] }, + { + "cell_type": "markdown", + "id": "533cd4c9-56e2-4ad9-a83e-4653bfcf322f", + "metadata": {}, + "source": [ + "### With Agents" + ] + }, { "cell_type": "code", "execution_count": 7, @@ -646,7 +698,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.1" + "version": "3.10.12" } }, "nbformat": 4, From 3b7cf0b8192b38f944b3eb1fe2938df64e3b88b8 Mon Sep 17 00:00:00 2001 From: leo-gan Date: Tue, 12 Nov 2024 10:54:21 -0800 Subject: [PATCH 4/8] update --- docs/docs/integrations/providers/wandb.mdx | 2 +- docs/docs/integrations/providers/wandb_tracing.ipynb | 2 +- docs/docs/integrations/providers/wandb_tracking.ipynb | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/docs/integrations/providers/wandb.mdx b/docs/docs/integrations/providers/wandb.mdx index 0347650665244..8eb85116ff02f 100644 --- a/docs/docs/integrations/providers/wandb.mdx +++ b/docs/docs/integrations/providers/wandb.mdx @@ -1,4 +1,4 @@ -# # Weights & Biases +# Weights & Biases >[Weights & Biases](https://wandb.ai/) is provider of the AI developer platform to train and > fine-tune AI models and develop AI applications. diff --git a/docs/docs/integrations/providers/wandb_tracing.ipynb b/docs/docs/integrations/providers/wandb_tracing.ipynb index 666016cf20f6e..ce6480d1a0d06 100644 --- a/docs/docs/integrations/providers/wandb_tracing.ipynb +++ b/docs/docs/integrations/providers/wandb_tracing.ipynb @@ -5,7 +5,7 @@ "id": "5371a9bb", "metadata": {}, "source": [ - "# WandB Tracing\n", + "# Weights & Biases tracing\n", "\n", "There are two recommended ways to trace your LangChains:\n", "\n", diff --git a/docs/docs/integrations/providers/wandb_tracking.ipynb b/docs/docs/integrations/providers/wandb_tracking.ipynb index e6c1c3d8eabf6..ea49435e24efd 100644 --- a/docs/docs/integrations/providers/wandb_tracking.ipynb +++ b/docs/docs/integrations/providers/wandb_tracking.ipynb @@ -6,10 +6,11 @@ "id": "e43f4ea0", "metadata": {}, "source": [ - "# Weights & Biases\n", + "# Weights & Biases tracking\n", "\n", - "This notebook goes over how to track your LangChain experiments into one centralized Weights and Biases dashboard. To learn more about prompt engineering and the callback please refer to this Report which explains both alongside the resultant dashboards you can expect to see.\n", + "This notebook goes over how to track your LangChain experiments into one centralized `Weights and Biases` dashboard. \n", "\n", + "To learn more about prompt engineering and the callback please refer to this notebook which explains both alongside the resultant dashboards you can expect to see:\n", "\n", "\"Open\n", "\n", From 089642f19caa1c6d21cb6801fe922df3eaab59d3 Mon Sep 17 00:00:00 2001 From: leo-gan Date: Tue, 12 Nov 2024 10:22:31 -0800 Subject: [PATCH 5/8] update --- docs/docs/integrations/providers/wandb.mdx | 42 +++++++++++++ .../providers/wandb_tracing.ipynb | 2 +- .../providers/wandb_tracking.ipynb | 60 +++++++++++++++++-- 3 files changed, 99 insertions(+), 5 deletions(-) create mode 100644 docs/docs/integrations/providers/wandb.mdx diff --git a/docs/docs/integrations/providers/wandb.mdx b/docs/docs/integrations/providers/wandb.mdx new file mode 100644 index 0000000000000..0347650665244 --- /dev/null +++ b/docs/docs/integrations/providers/wandb.mdx @@ -0,0 +1,42 @@ +# # Weights & Biases + +>[Weights & Biases](https://wandb.ai/) is provider of the AI developer platform to train and +> fine-tune AI models and develop AI applications. + +`Weights & Biase` products can be used to log metrics and artifacts during training, +and to trace the execution of your code. + +There are several main ways to use `Weights & Biases` products within LangChain: +- with `wandb_tracing_enabled` +- with `Weave` lightweight toolkit +- with `WandbCallbackHandler` (deprecated) + + +## wandb_tracing_enabled + +See a [usage example](/docs/integrations/providers/wandb_tracing). + +See in the [W&B documentation](https://docs.wandb.ai/guides/integrations/langchain). + +```python +from langchain_community.callbacks import wandb_tracing_enabled +``` + +## Weave + +See in the [W&B documentation](https://weave-docs.wandb.ai/guides/integrations/langchain). + + +## WandbCallbackHandler + +**Note:** the `WandbCallbackHandler` is being deprecated in favour of the `wandb_tracing_enabled`. + +See a [usage example](/docs/integrations/providers/wandb_tracking). + +See in the [W&B documentation](https://docs.wandb.ai/guides/integrations/langchain). + +```python +from langchain_community.callbacks import WandbCallbackHandler +``` + + diff --git a/docs/docs/integrations/providers/wandb_tracing.ipynb b/docs/docs/integrations/providers/wandb_tracing.ipynb index 89b0dd8d3b727..666016cf20f6e 100644 --- a/docs/docs/integrations/providers/wandb_tracing.ipynb +++ b/docs/docs/integrations/providers/wandb_tracing.ipynb @@ -165,7 +165,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.3" + "version": "3.10.12" } }, "nbformat": 4, diff --git a/docs/docs/integrations/providers/wandb_tracking.ipynb b/docs/docs/integrations/providers/wandb_tracking.ipynb index 5f034619867a1..e6c1c3d8eabf6 100644 --- a/docs/docs/integrations/providers/wandb_tracking.ipynb +++ b/docs/docs/integrations/providers/wandb_tracking.ipynb @@ -14,11 +14,15 @@ "\"Open\n", "\n", "\n", - "[View Report](https://wandb.ai/a-sh0ts/langchain_callback_demo/reports/Prompt-Engineering-LLMs-with-LangChain-and-W-B--VmlldzozNjk1NTUw#👋-how-to-build-a-callback-in-langchain-for-better-prompt-engineering\n", - ") \n", + "View a detailed description and examples in the [W&B article](https://wandb.ai/a-sh0ts/langchain_callback_demo/reports/Prompt-Engineering-LLMs-with-LangChain-and-W-B--VmlldzozNjk1NTUw#👋-how-to-build-a-callback-in-langchain-for-better-prompt-engineering\n", + "). \n", "\n", "\n", - "**Note**: _the `WandbCallbackHandler` is being deprecated in favour of the `WandbTracer`_ . In future please use the `WandbTracer` as it is more flexible and allows for more granular logging. To know more about the `WandbTracer` refer to the [agent_with_wandb_tracing](/docs/integrations/providers/wandb_tracing) notebook or use the following [colab notebook](http://wandb.me/prompts-quickstart). To know more about Weights & Biases Prompts refer to the following [prompts documentation](https://docs.wandb.ai/guides/prompts)." + "**Note**: _the `WandbCallbackHandler` is being deprecated in favour of the `WandbTracer`_ . In future please use the `WandbTracer` as it is more flexible and allows for more granular logging. \n", + "\n", + "To know more about the `WandbTracer` refer to the [agent_with_wandb_tracing](/docs/integrations/providers/wandb_tracing) notebook or use the following [colab notebook](http://wandb.me/prompts-quickstart). \n", + "\n", + "To know more about Weights & Biases Prompts refer to the following [prompts documentation](https://docs.wandb.ai/guides/prompts)." ] }, { @@ -248,6 +252,38 @@ "The `flush_tracker` function is used to log LangChain sessions to Weights & Biases. It takes in the LangChain module or agent, and logs at minimum the prompts and generations alongside the serialized form of the LangChain module to the specified Weights & Biases project. By default we reset the session as opposed to concluding the session outright." ] }, + { + "cell_type": "markdown", + "id": "483eefd4-633e-4686-8730-944705fe8a80", + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-12T18:20:31.003316Z", + "iopub.status.busy": "2024-11-12T18:20:31.003152Z", + "iopub.status.idle": "2024-11-12T18:20:31.006033Z", + "shell.execute_reply": "2024-11-12T18:20:31.005546Z", + "shell.execute_reply.started": "2024-11-12T18:20:31.003303Z" + } + }, + "source": [ + "## Usage Scenarios" + ] + }, + { + "cell_type": "markdown", + "id": "066adc04-8180-4936-8d75-5c3660b61de7", + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-12T18:20:45.826326Z", + "iopub.status.busy": "2024-11-12T18:20:45.825714Z", + "iopub.status.idle": "2024-11-12T18:20:45.830483Z", + "shell.execute_reply": "2024-11-12T18:20:45.830037Z", + "shell.execute_reply.started": "2024-11-12T18:20:45.826279Z" + } + }, + "source": [ + "### With LLM" + ] + }, { "cell_type": "code", "execution_count": 4, @@ -373,6 +409,14 @@ "wandb_callback.flush_tracker(llm, name=\"simple_sequential\")" ] }, + { + "cell_type": "markdown", + "id": "7dcfc24b-f0b0-48ec-89ce-beeb2fb763d5", + "metadata": {}, + "source": [ + "### Within Chains" + ] + }, { "cell_type": "code", "execution_count": 5, @@ -524,6 +568,14 @@ "wandb_callback.flush_tracker(synopsis_chain, name=\"agent\")" ] }, + { + "cell_type": "markdown", + "id": "533cd4c9-56e2-4ad9-a83e-4653bfcf322f", + "metadata": {}, + "source": [ + "### With Agents" + ] + }, { "cell_type": "code", "execution_count": 7, @@ -646,7 +698,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.1" + "version": "3.10.12" } }, "nbformat": 4, From b7e3f0c68f35778ffa7fabc54885e1dd5c5d93b0 Mon Sep 17 00:00:00 2001 From: leo-gan Date: Tue, 12 Nov 2024 10:54:21 -0800 Subject: [PATCH 6/8] update --- docs/docs/integrations/providers/wandb.mdx | 2 +- docs/docs/integrations/providers/wandb_tracing.ipynb | 2 +- docs/docs/integrations/providers/wandb_tracking.ipynb | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/docs/integrations/providers/wandb.mdx b/docs/docs/integrations/providers/wandb.mdx index 0347650665244..8eb85116ff02f 100644 --- a/docs/docs/integrations/providers/wandb.mdx +++ b/docs/docs/integrations/providers/wandb.mdx @@ -1,4 +1,4 @@ -# # Weights & Biases +# Weights & Biases >[Weights & Biases](https://wandb.ai/) is provider of the AI developer platform to train and > fine-tune AI models and develop AI applications. diff --git a/docs/docs/integrations/providers/wandb_tracing.ipynb b/docs/docs/integrations/providers/wandb_tracing.ipynb index 666016cf20f6e..ce6480d1a0d06 100644 --- a/docs/docs/integrations/providers/wandb_tracing.ipynb +++ b/docs/docs/integrations/providers/wandb_tracing.ipynb @@ -5,7 +5,7 @@ "id": "5371a9bb", "metadata": {}, "source": [ - "# WandB Tracing\n", + "# Weights & Biases tracing\n", "\n", "There are two recommended ways to trace your LangChains:\n", "\n", diff --git a/docs/docs/integrations/providers/wandb_tracking.ipynb b/docs/docs/integrations/providers/wandb_tracking.ipynb index e6c1c3d8eabf6..ea49435e24efd 100644 --- a/docs/docs/integrations/providers/wandb_tracking.ipynb +++ b/docs/docs/integrations/providers/wandb_tracking.ipynb @@ -6,10 +6,11 @@ "id": "e43f4ea0", "metadata": {}, "source": [ - "# Weights & Biases\n", + "# Weights & Biases tracking\n", "\n", - "This notebook goes over how to track your LangChain experiments into one centralized Weights and Biases dashboard. To learn more about prompt engineering and the callback please refer to this Report which explains both alongside the resultant dashboards you can expect to see.\n", + "This notebook goes over how to track your LangChain experiments into one centralized `Weights and Biases` dashboard. \n", "\n", + "To learn more about prompt engineering and the callback please refer to this notebook which explains both alongside the resultant dashboards you can expect to see:\n", "\n", "\"Open\n", "\n", From 3447b34fb12b369766daf44112e6f45c580998ee Mon Sep 17 00:00:00 2001 From: leo-gan Date: Wed, 18 Dec 2024 16:55:10 -0800 Subject: [PATCH 7/8] update --- docs/scripts/partner_pkg_table.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/scripts/partner_pkg_table.py b/docs/scripts/partner_pkg_table.py index 37a8a2f1fdd10..fc2352e93fde3 100644 --- a/docs/scripts/partner_pkg_table.py +++ b/docs/scripts/partner_pkg_table.py @@ -124,7 +124,10 @@ def doc() -> str: ::: -LangChain integrates with many providers. +LangChain integrates with many providers. +To search a specific provider, click `Search` field on the top-right corner of the screen. +It is the best way to find the provider you are looking for. + ## Integration Packages From dea8ba39c21c8a602dbd6a51c6e5f7f1d56f8201 Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Wed, 18 Dec 2024 21:19:14 -0500 Subject: [PATCH 8/8] nit --- docs/scripts/partner_pkg_table.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/scripts/partner_pkg_table.py b/docs/scripts/partner_pkg_table.py index fc2352e93fde3..6dfdcecbbf2bb 100644 --- a/docs/scripts/partner_pkg_table.py +++ b/docs/scripts/partner_pkg_table.py @@ -124,10 +124,7 @@ def doc() -> str: ::: -LangChain integrates with many providers. -To search a specific provider, click `Search` field on the top-right corner of the screen. -It is the best way to find the provider you are looking for. - +LangChain integrates with many providers. ## Integration Packages @@ -137,7 +134,8 @@ def doc() -> str: ## All Providers -Click [here](/docs/integrations/providers/all) to see all providers. +Click [here](/docs/integrations/providers/all) to see all providers. Or search for a +provider using the Search field in the top-right corner of the screen. """