Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions 2025-11-Multi-Agent-GenAI-System/00-init-requirements.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 0,
"metadata": {
"application/vnd.databricks.v1+cell": {
"cellMetadata": {
"byteLimit": 2048000,
"rowLimit": 10000
},
"inputWidgets": {},
"nuid": "e4045340-601b-4d4a-9797-5b61a9159ced",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"output_type": "stream",
"text": [
"Catalog created smriti_sridhar\nSchema created smriti_sridhar.workday_demos\nVolume created /Volumes/smriti_sridhar/workday_demos/workday_unstructure_data\n"
]
}
],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"from datetime import datetime, timedelta\n",
"import random\n",
"from databricks.sdk import WorkspaceClient \n",
"import time\n",
"\n",
"w = WorkspaceClient()\n",
"current_user = w.current_user.me()\n",
"user_name = current_user.user_name.replace('@databricks.com', '').replace('.', '_')\n",
"token = w.tokens.create(comment=f\"sdk-{time.time_ns()}\").token_value\n",
"\n",
"## Catalog \n",
"catalog_name = user_name\n",
"spark.sql(f\"CREATE CATALOG IF NOT EXISTS {catalog_name}\")\n",
"\n",
"## Schema\n",
"schema_name = 'workday_demos'\n",
"spark.sql(f\"CREATE SCHEMA IF NOT EXISTS {catalog_name}.{schema_name}\")\n",
"\n",
"## Volume \n",
"volume_path = f\"/Volumes/{catalog_name}/{schema_name}/workday_unstructure_data\"\n",
"spark.sql(f\"CREATE VOLUME IF NOT EXISTS {catalog_name}.{schema_name}.workday_unstructure_data\")\n",
"\n",
"\n",
"print(f\"Catalog created {catalog_name}\")\n",
"print(f\"Schema created {catalog_name}.workday_demos\")\n",
"print(f\"Volume created /Volumes/{catalog_name}/{schema_name}/workday_unstructure_data\")"
]
}
],
"metadata": {
"application/vnd.databricks.v1+notebook": {
"computePreferences": null,
"dashboards": [],
"environmentMetadata": {
"base_environment": "",
"environment_version": "4"
},
"inputWidgetPreferences": null,
"language": "python",
"notebookMetadata": {
"pythonIndentUnit": 2
},
"notebookName": "00-init-requirements",
"widgets": {}
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Loading