mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-14 03:27:29 +00:00
current python.langchain.com is building from branch `v0.1`. Iterate on v0.2 docs here. --------- Signed-off-by: Weichen Xu <weichen.xu@databricks.com> Signed-off-by: Rahul Tripathi <rauhl.psit.ec@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com> Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Leonid Ganeline <leo.gan.57@gmail.com> Co-authored-by: Leonid Kuligin <lkuligin@yandex.ru> Co-authored-by: Averi Kitsch <akitsch@google.com> Co-authored-by: Nuno Campos <nuno@langchain.dev> Co-authored-by: Nuno Campos <nuno@boringbits.io> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com> Co-authored-by: Martín Gotelli Ferenaz <martingotelliferenaz@gmail.com> Co-authored-by: Fayfox <admin@fayfox.com> Co-authored-by: Eugene Yurtsev <eugene@langchain.dev> Co-authored-by: Dawson Bauer <105886620+djbauer2@users.noreply.github.com> Co-authored-by: Ravindu Somawansa <ravindu.somawansa@gmail.com> Co-authored-by: Dhruv Chawla <43818888+Dominastorm@users.noreply.github.com> Co-authored-by: ccurme <chester.curme@gmail.com> Co-authored-by: Bagatur <baskaryan@gmail.com> Co-authored-by: WeichenXu <weichen.xu@databricks.com> Co-authored-by: Benito Geordie <89472452+benitoThree@users.noreply.github.com> Co-authored-by: kartikTAI <129414343+kartikTAI@users.noreply.github.com> Co-authored-by: Kartik Sarangmath <kartik@thirdai.com> Co-authored-by: Sevin F. Varoglu <sfvaroglu@octoml.ai> Co-authored-by: MacanPN <martin.triska@gmail.com> Co-authored-by: Prashanth Rao <35005448+prrao87@users.noreply.github.com> Co-authored-by: Hyeongchan Kim <kozistr@gmail.com> Co-authored-by: sdan <git@sdan.io> Co-authored-by: Guangdong Liu <liugddx@gmail.com> Co-authored-by: Rahul Triptahi <rahul.psit.ec@gmail.com> Co-authored-by: Rahul Tripathi <rauhl.psit.ec@gmail.com> Co-authored-by: pjb157 <84070455+pjb157@users.noreply.github.com> Co-authored-by: Eun Hye Kim <ehkim1440@gmail.com> Co-authored-by: kaijietti <43436010+kaijietti@users.noreply.github.com> Co-authored-by: Pengcheng Liu <pcliu.fd@gmail.com> Co-authored-by: Tomer Cagan <tomer@tomercagan.com> Co-authored-by: Christophe Bornet <cbornet@hotmail.com>
561 lines
16 KiB
Plaintext
561 lines
16 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "f22eab3f84cbeb37",
|
|
"metadata": {
|
|
"id": "f22eab3f84cbeb37"
|
|
},
|
|
"source": [
|
|
"# Google SQL for SQL Server\n",
|
|
"\n",
|
|
"> [Google Cloud SQL](https://cloud.google.com/sql) is a fully managed relational database service that offers high performance, seamless integration, and impressive scalability. It offers `MySQL`, `PostgreSQL`, and `SQL Server` database engines. Extend your database application to build AI-powered experiences leveraging Cloud SQL's Langchain integrations.\n",
|
|
"\n",
|
|
"This notebook goes over how to use `Google Cloud SQL for SQL Server` to store chat message history with the `MSSQLChatMessageHistory` class.\n",
|
|
"\n",
|
|
"Learn more about the package on [GitHub](https://github.com/googleapis/langchain-google-cloud-sql-mssql-python/).\n",
|
|
"\n",
|
|
"[](https://colab.research.google.com/github/googleapis/langchain-google-cloud-sql-mssql-python/blob/main/docs/chat_message_history.ipynb)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "da400c79-a360-43e2-be60-401fd02b2819",
|
|
"metadata": {
|
|
"id": "da400c79-a360-43e2-be60-401fd02b2819"
|
|
},
|
|
"source": [
|
|
"## Before You Begin\n",
|
|
"\n",
|
|
"To run this notebook, you will need to do the following:\n",
|
|
"\n",
|
|
" * [Create a Google Cloud Project](https://developers.google.com/workspace/guides/create-project)\n",
|
|
" * [Enable the Cloud SQL Admin API.](https://console.cloud.google.com/marketplace/product/google/sqladmin.googleapis.com)\n",
|
|
" * [Create a Cloud SQL for SQL Server instance](https://cloud.google.com/sql/docs/sqlserver/create-instance)\n",
|
|
" * [Create a Cloud SQL database](https://cloud.google.com/sql/docs/sqlserver/create-manage-databases)\n",
|
|
" * [Create a database user](https://cloud.google.com/sql/docs/sqlserver/create-manage-users) (Optional if you choose to use the `sqlserver` user)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "Mm7-fG_LltD7",
|
|
"metadata": {
|
|
"id": "Mm7-fG_LltD7"
|
|
},
|
|
"source": [
|
|
"### 🦜🔗 Library Installation\n",
|
|
"The integration lives in its own `langchain-google-cloud-sql-mssql` package, so we need to install it."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "1VELXvcj8AId",
|
|
"metadata": {
|
|
"id": "1VELXvcj8AId"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"%pip install --upgrade --quiet langchain-google-cloud-sql-mssql langchain-google-vertexai"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "98TVoM3MNDHu",
|
|
"metadata": {
|
|
"id": "98TVoM3MNDHu"
|
|
},
|
|
"source": [
|
|
"**Colab only:** Uncomment the following cell to restart the kernel or use the button to restart the kernel. For Vertex AI Workbench you can restart the terminal using the button on top."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "v6jBDnYnNM08",
|
|
"metadata": {
|
|
"id": "v6jBDnYnNM08"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"# # Automatically restart kernel after installs so that your environment can access the new packages\n",
|
|
"# import IPython\n",
|
|
"\n",
|
|
"# app = IPython.Application.instance()\n",
|
|
"# app.kernel.do_shutdown(True)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "yygMe6rPWxHS",
|
|
"metadata": {
|
|
"id": "yygMe6rPWxHS"
|
|
},
|
|
"source": [
|
|
"### 🔐 Authentication\n",
|
|
"Authenticate to Google Cloud as the IAM user logged into this notebook in order to access your Google Cloud Project.\n",
|
|
"\n",
|
|
"* If you are using Colab to run this notebook, use the cell below and continue.\n",
|
|
"* If you are using Vertex AI Workbench, check out the setup instructions [here](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/setup-env)."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"id": "PTXN1_DSXj2b",
|
|
"metadata": {
|
|
"id": "PTXN1_DSXj2b"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"from google.colab import auth\n",
|
|
"\n",
|
|
"auth.authenticate_user()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "NEvB9BoLEulY",
|
|
"metadata": {
|
|
"id": "NEvB9BoLEulY"
|
|
},
|
|
"source": [
|
|
"### ☁ Set Your Google Cloud Project\n",
|
|
"Set your Google Cloud project so that you can leverage Google Cloud resources within this notebook.\n",
|
|
"\n",
|
|
"If you don't know your project ID, try the following:\n",
|
|
"\n",
|
|
"* Run `gcloud config list`.\n",
|
|
"* Run `gcloud projects list`.\n",
|
|
"* See the support page: [Locate the project ID](https://support.google.com/googleapi/answer/7014113)."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "gfkS3yVRE4_W",
|
|
"metadata": {
|
|
"cellView": "form",
|
|
"id": "gfkS3yVRE4_W"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"# @markdown Please fill in the value below with your Google Cloud project ID and then run the cell.\n",
|
|
"\n",
|
|
"PROJECT_ID = \"my-project-id\" # @param {type:\"string\"}\n",
|
|
"\n",
|
|
"# Set the project id\n",
|
|
"!gcloud config set project {PROJECT_ID}"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "rEWWNoNnKOgq",
|
|
"metadata": {
|
|
"id": "rEWWNoNnKOgq"
|
|
},
|
|
"source": [
|
|
"### 💡 API Enablement\n",
|
|
"The `langchain-google-cloud-sql-mssql` package requires that you [enable the Cloud SQL Admin API](https://console.cloud.google.com/flows/enableapi?apiid=sqladmin.googleapis.com) in your Google Cloud Project."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 3,
|
|
"id": "5utKIdq7KYi5",
|
|
"metadata": {
|
|
"id": "5utKIdq7KYi5"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"# enable Cloud SQL Admin API\n",
|
|
"!gcloud services enable sqladmin.googleapis.com"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "f8f2830ee9ca1e01",
|
|
"metadata": {
|
|
"id": "f8f2830ee9ca1e01"
|
|
},
|
|
"source": [
|
|
"## Basic Usage"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "OMvzMWRrR6n7",
|
|
"metadata": {
|
|
"id": "OMvzMWRrR6n7"
|
|
},
|
|
"source": [
|
|
"### Set Cloud SQL database values\n",
|
|
"Find your database values, in the [Cloud SQL Instances page](https://console.cloud.google.com/sql?_ga=2.223735448.2062268965.1707700487-2088871159.1707257687)."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 4,
|
|
"id": "irl7eMFnSPZr",
|
|
"metadata": {
|
|
"id": "irl7eMFnSPZr"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"# @title Set Your Values Here { display-mode: \"form\" }\n",
|
|
"REGION = \"us-central1\" # @param {type: \"string\"}\n",
|
|
"INSTANCE = \"my-mssql-instance\" # @param {type: \"string\"}\n",
|
|
"DATABASE = \"my-database\" # @param {type: \"string\"}\n",
|
|
"DB_USER = \"my-username\" # @param {type: \"string\"}\n",
|
|
"DB_PASS = \"my-password\" # @param {type: \"string\"}\n",
|
|
"TABLE_NAME = \"message_store\" # @param {type: \"string\"}"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "QuQigs4UoFQ2",
|
|
"metadata": {
|
|
"id": "QuQigs4UoFQ2"
|
|
},
|
|
"source": [
|
|
"### MSSQLEngine Connection Pool\n",
|
|
"\n",
|
|
"One of the requirements and arguments to establish Cloud SQL as a ChatMessageHistory memory store is a `MSSQLEngine` object. The `MSSQLEngine` configures a connection pool to your Cloud SQL database, enabling successful connections from your application and following industry best practices.\n",
|
|
"\n",
|
|
"To create a `MSSQLEngine` using `MSSQLEngine.from_instance()` you need to provide only 6 things:\n",
|
|
"\n",
|
|
"1. `project_id` : Project ID of the Google Cloud Project where the Cloud SQL instance is located.\n",
|
|
"1. `region` : Region where the Cloud SQL instance is located.\n",
|
|
"1. `instance` : The name of the Cloud SQL instance.\n",
|
|
"1. `database` : The name of the database to connect to on the Cloud SQL instance.\n",
|
|
"1. `user` : Database user to use for built-in database authentication and login.\n",
|
|
"1. `password` : Database password to use for built-in database authentication and login.\n",
|
|
"\n",
|
|
"By default, [built-in database authentication](https://cloud.google.com/sql/docs/sqlserver/users) using a username and password to access the Cloud SQL database is used for database authentication.\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 5,
|
|
"id": "4576e914a866fb40",
|
|
"metadata": {
|
|
"ExecuteTime": {
|
|
"end_time": "2023-08-28T10:04:38.077748Z",
|
|
"start_time": "2023-08-28T10:04:36.105894Z"
|
|
},
|
|
"collapsed": false,
|
|
"id": "4576e914a866fb40",
|
|
"jupyter": {
|
|
"outputs_hidden": false
|
|
}
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"from langchain_google_cloud_sql_mssql import MSSQLEngine\n",
|
|
"\n",
|
|
"engine = MSSQLEngine.from_instance(\n",
|
|
" project_id=PROJECT_ID,\n",
|
|
" region=REGION,\n",
|
|
" instance=INSTANCE,\n",
|
|
" database=DATABASE,\n",
|
|
" user=DB_USER,\n",
|
|
" password=DB_PASS,\n",
|
|
")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "qPV8WfWr7O54",
|
|
"metadata": {
|
|
"id": "qPV8WfWr7O54"
|
|
},
|
|
"source": [
|
|
"### Initialize a table\n",
|
|
"The `MSSQLChatMessageHistory` class requires a database table with a specific schema in order to store the chat message history.\n",
|
|
"\n",
|
|
"The `MSSQLEngine` engine has a helper method `init_chat_history_table()` that can be used to create a table with the proper schema for you."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "TEu4VHArRttE",
|
|
"metadata": {
|
|
"id": "TEu4VHArRttE"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"engine.init_chat_history_table(table_name=TABLE_NAME)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "zSYQTYf3UfOi",
|
|
"metadata": {
|
|
"id": "zSYQTYf3UfOi"
|
|
},
|
|
"source": [
|
|
"### MSSQLChatMessageHistory\n",
|
|
"\n",
|
|
"To initialize the `MSSQLChatMessageHistory` class you need to provide only 3 things:\n",
|
|
"\n",
|
|
"1. `engine` - An instance of a `MSSQLEngine` engine.\n",
|
|
"1. `session_id` - A unique identifier string that specifies an id for the session.\n",
|
|
"1. `table_name` : The name of the table within the Cloud SQL database to store the chat message history."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 7,
|
|
"id": "Kq7RLtfOq0wi",
|
|
"metadata": {
|
|
"id": "Kq7RLtfOq0wi"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"from langchain_google_cloud_sql_mssql import MSSQLChatMessageHistory\n",
|
|
"\n",
|
|
"history = MSSQLChatMessageHistory(\n",
|
|
" engine, session_id=\"test_session\", table_name=TABLE_NAME\n",
|
|
")\n",
|
|
"history.add_user_message(\"hi!\")\n",
|
|
"history.add_ai_message(\"whats up?\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 8,
|
|
"id": "b476688cbb32ba90",
|
|
"metadata": {
|
|
"ExecuteTime": {
|
|
"end_time": "2023-08-28T10:04:38.929396Z",
|
|
"start_time": "2023-08-28T10:04:38.915727Z"
|
|
},
|
|
"colab": {
|
|
"base_uri": "https://localhost:8080/"
|
|
},
|
|
"collapsed": false,
|
|
"id": "b476688cbb32ba90",
|
|
"jupyter": {
|
|
"outputs_hidden": false
|
|
},
|
|
"outputId": "f8c170e8-ea9d-4905-a9f4-bc83f9726ac5"
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"[HumanMessage(content='hi!'), AIMessage(content='whats up?')]"
|
|
]
|
|
},
|
|
"execution_count": 8,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"history.messages"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "ss6CbqcTTedr",
|
|
"metadata": {
|
|
"id": "ss6CbqcTTedr"
|
|
},
|
|
"source": [
|
|
"#### Cleaning up\n",
|
|
"When the history of a specific session is obsolete and can be deleted, it can be done the following way.\n",
|
|
"\n",
|
|
"**Note:** Once deleted, the data is no longer stored in Cloud SQL and is gone forever."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 9,
|
|
"id": "3khxzFxYO7x6",
|
|
"metadata": {
|
|
"id": "3khxzFxYO7x6"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"history.clear()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "2e5337719d5614fd",
|
|
"metadata": {
|
|
"id": "2e5337719d5614fd"
|
|
},
|
|
"source": [
|
|
"## 🔗 Chaining\n",
|
|
"\n",
|
|
"We can easily combine this message history class with [LCEL Runnables](/docs/how_to/message_history)\n",
|
|
"\n",
|
|
"To do this we will use one of [Google's Vertex AI chat models](/docs/integrations/chat/google_vertex_ai_palm) which requires that you [enable the Vertex AI API](https://console.cloud.google.com/flows/enableapi?apiid=aiplatform.googleapis.com) in your Google Cloud Project.\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "hYtHM3-TOMCe",
|
|
"metadata": {
|
|
"id": "hYtHM3-TOMCe"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"# enable Vertex AI API\n",
|
|
"!gcloud services enable aiplatform.googleapis.com"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 10,
|
|
"id": "6558418b-0ece-4d01-9661-56d562d78f7a",
|
|
"metadata": {
|
|
"id": "6558418b-0ece-4d01-9661-56d562d78f7a"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder\n",
|
|
"from langchain_core.runnables.history import RunnableWithMessageHistory\n",
|
|
"from langchain_google_vertexai import ChatVertexAI"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 11,
|
|
"id": "82149122-61d3-490d-9bdb-bb98606e8ba1",
|
|
"metadata": {
|
|
"id": "82149122-61d3-490d-9bdb-bb98606e8ba1"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"prompt = ChatPromptTemplate.from_messages(\n",
|
|
" [\n",
|
|
" (\"system\", \"You are a helpful assistant.\"),\n",
|
|
" MessagesPlaceholder(variable_name=\"history\"),\n",
|
|
" (\"human\", \"{question}\"),\n",
|
|
" ]\n",
|
|
")\n",
|
|
"\n",
|
|
"chain = prompt | ChatVertexAI(project=PROJECT_ID)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 12,
|
|
"id": "2df90853-b67c-490f-b7f8-b69d69270b9c",
|
|
"metadata": {
|
|
"id": "2df90853-b67c-490f-b7f8-b69d69270b9c"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"chain_with_history = RunnableWithMessageHistory(\n",
|
|
" chain,\n",
|
|
" lambda session_id: MSSQLChatMessageHistory(\n",
|
|
" engine,\n",
|
|
" session_id=session_id,\n",
|
|
" table_name=TABLE_NAME,\n",
|
|
" ),\n",
|
|
" input_messages_key=\"question\",\n",
|
|
" history_messages_key=\"history\",\n",
|
|
")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 13,
|
|
"id": "0ce596b8-3b78-48fd-9f92-46dccbbfd58b",
|
|
"metadata": {
|
|
"id": "0ce596b8-3b78-48fd-9f92-46dccbbfd58b"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"# This is where we configure the session id\n",
|
|
"config = {\"configurable\": {\"session_id\": \"test_session\"}}"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 14,
|
|
"id": "38e1423b-ba86-4496-9151-25932fab1a8b",
|
|
"metadata": {
|
|
"colab": {
|
|
"base_uri": "https://localhost:8080/"
|
|
},
|
|
"id": "38e1423b-ba86-4496-9151-25932fab1a8b",
|
|
"outputId": "750fcff4-6374-4978-defd-e30ee9bce05f"
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"AIMessage(content=' Hello Bob, how can I help you today?')"
|
|
]
|
|
},
|
|
"execution_count": 14,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"chain_with_history.invoke({\"question\": \"Hi! I'm bob\"}, config=config)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 15,
|
|
"id": "2ee4ee62-a216-4fb1-bf33-57476a84cf16",
|
|
"metadata": {
|
|
"colab": {
|
|
"base_uri": "https://localhost:8080/"
|
|
},
|
|
"id": "2ee4ee62-a216-4fb1-bf33-57476a84cf16",
|
|
"outputId": "01fdc638-81f3-4350-edb4-7609c586d3a7"
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"AIMessage(content=' Your name is Bob.')"
|
|
]
|
|
},
|
|
"execution_count": 15,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"chain_with_history.invoke({\"question\": \"Whats my name\"}, config=config)"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"colab": {
|
|
"provenance": [],
|
|
"toc_visible": true
|
|
},
|
|
"kernelspec": {
|
|
"display_name": "Python 3 (ipykernel)",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.10.12"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 5
|
|
}
|