Skip to content

Commit e519335

Browse files
committed
Rename Azure Cosmos DB database to 'cosmic_works_pv'
1 parent 11e317f commit e519335

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

Backend/chat_session_state/cosmosdb_chat_session_state_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Initialize Cosmos DB client and container globally within the module
1414
CONNECTION_STRING = os.environ.get("COSMOS_DB_CONNECTION_STRING")
1515
client = CosmosClient.from_connection_string(CONNECTION_STRING)
16-
db = client.get_database_client("cosmic_works")
16+
db = client.get_database_client("cosmic_works_pv")
1717

1818
# Initialize the chat session container, create if not exists
1919
db.create_container_if_not_exists(id="chat_session", partition_key=PartitionKey(path="/id"))

Backend/cosmic_works/cosmic_works_ai_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
# Initialize the Azure Cosmos DB client, database and product (with vector) container
3636
client = CosmosClient.from_connection_string(CONNECTION_STRING)
37-
db = client.get_database_client("cosmic_works")
37+
db = client.get_database_client("cosmic_works_pv")
3838
product_v_container = db.get_container_client("product_v")
3939
sales_order_container = db.get_container_client("salesOrder")
4040

Labs/lab_1_first_application.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"# Initialize the Azure Cosmos DB client\n",
5050
"client = CosmosClient.from_connection_string(CONNECTION_STRING)\n",
5151
"\n",
52-
"# Create or load the cosmic_works database\n",
53-
"database_name = \"cosmic_works\"\n",
52+
"# Create or load the cosmic_works_pv database\n",
53+
"database_name = \"cosmic_works_pv\"\n",
5454
"db = client.create_database_if_not_exists(id=database_name)"
5555
]
5656
},
@@ -274,13 +274,13 @@
274274
"outputs": [],
275275
"source": [
276276
"# db.delete_container(\"products\")\n",
277-
"client.delete_database(\"cosmic_works\")"
277+
"client.delete_database(\"cosmic_works_pv\")"
278278
]
279279
}
280280
],
281281
"metadata": {
282282
"kernelspec": {
283-
"display_name": ".venv",
283+
"display_name": "Python 3",
284284
"language": "python",
285285
"name": "python3"
286286
},
@@ -294,7 +294,7 @@
294294
"name": "python",
295295
"nbconvert_exporter": "python",
296296
"pygments_lexer": "ipython3",
297-
"version": "3.11.5"
297+
"version": "3.11.10"
298298
}
299299
},
300300
"nbformat": 4,

Labs/lab_2_load_data.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"# Initialize the Azure Cosmos DB client\n",
4343
"client = CosmosClient.from_connection_string(CONNECTION_STRING)\n",
4444
"\n",
45-
"# Create or load the cosmic_works database\n",
46-
"database_name = \"cosmic_works\"\n",
45+
"# Create or load the cosmic_works_pv database\n",
46+
"database_name = \"cosmic_works_pv\"\n",
4747
"db = client.create_database_if_not_exists(id=database_name)"
4848
]
4949
},
@@ -170,7 +170,7 @@
170170
],
171171
"metadata": {
172172
"kernelspec": {
173-
"display_name": ".venv",
173+
"display_name": "Python 3",
174174
"language": "python",
175175
"name": "python3"
176176
},
@@ -184,7 +184,7 @@
184184
"name": "python",
185185
"nbconvert_exporter": "python",
186186
"pygments_lexer": "ipython3",
187-
"version": "3.11.5"
187+
"version": "3.11.10"
188188
}
189189
},
190190
"nbformat": 4,

Labs/lab_3_cosmosdb_vector_search.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"# Initialize the Azure Cosmos DB client\n",
7777
"client = CosmosClient.from_connection_string(CONNECTION_STRING)\n",
7878
"\n",
79-
"# Create or load the cosmic_works database\n",
80-
"database_name = \"cosmic_works\"\n",
79+
"# Create or load the cosmic_works_pv database\n",
80+
"database_name = \"cosmic_works_pv\"\n",
8181
"db = client.create_database_if_not_exists(id=database_name)"
8282
]
8383
},

Labs/lab_4_langchain.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"\n",
8686
"# Initialize the Azure Cosmos DB client, database and product (with vector) container\n",
8787
"client = CosmosClient.from_connection_string(CONNECTION_STRING)\n",
88-
"db = client.get_database_client(\"cosmic_works\")\n",
88+
"db = client.get_database_client(\"cosmic_works_pv\")\n",
8989
"product_v_container = db.get_container_client(\"product_v\")\n",
9090
"sales_order_container = db.get_container_client(\"salesOrder\")"
9191
]

0 commit comments

Comments
 (0)