Skip to content

Commit b3024fc

Browse files
committed
renaming collections to containers in text content
1 parent 810cff5 commit b3024fc

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

07_Create_First_Cosmos_DB_Project/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ client = pymongo.MongoClient(CONNECTION_STRING)
5252

5353
### Creating a database
5454

55-
When using the pymongo client, the creation of a database is automatic when referenced. No specific api calls to create a database are required, if a database already exists, a reference to the database is returned.
55+
When using the `pymongo` client, the creation of a database is automatic when referenced. No specific api calls to create a database are required, if a database already exists, a reference to the database is returned.
5656

57-
>**Note:**: That the creation of databases and collections are lazy, meaning they will not be created until a document is inserted into a collection.
57+
>**Note:**: That the creation of databases and containers are lazy, meaning they will not be created until a document is inserted into a collection.
5858
5959
```python
6060
db = client.cosmic_works

08_Load_Data/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ When loading data, bulk operations are preferred over adding each document indiv
1212

1313
4. Simplified code logic: By using bulk operations, the lab can simplify its code logic and reduce the number of database queries. This results in cleaner, more manageable code and reduces the likelihood of errors or inconsistencies.
1414

15-
## Lab - Load data into Azure Cosmos DB for NoSQL collections
15+
## Lab - Load data into Azure Cosmos DB for NoSQL containers
1616

17-
This lab will load the Cosmic Works Customer, Product, and Sales data into Azure Cosmos DB for NoSQL collections using bulk operations. Both the Azure Cosmos DB Emulator and Azure Cosmos DB account in Azure are supported for completion of this lab.
17+
This lab will load the Cosmic Works Customer, Product, and Sales data into Azure Cosmos DB for NoSQL containers using bulk operations. Both the Azure Cosmos DB Emulator and Azure Cosmos DB account in Azure are supported for completion of this lab.
1818

1919
>**Note**: It is highly recommended to use a [virtual environment](https://python.land/virtual-environments/virtualenv) for all labs.
2020
2121
Please visit the lab repository to complete [this lab](https://github.com/AzureCosmosDB/Azure-OpenAI-Python-Developer-Guide/blob/main/Labs/lab_2_load_data.ipynb).
2222

23-
This lab demonstrates the use of bulk operations to load product, customer, and sales data into Azure Cosmos DB for NoSQL collections. As an example, the following code snippet inserts product data using the `bulk_write` method allowing for upsert functionality using the `UpdateOne` method:
23+
This lab demonstrates the use of bulk operations to load product, customer, and sales data into Azure Cosmos DB for NoSQL containers. As an example, the following code snippet inserts product data using the `bulk_write` method allowing for upsert functionality using the `UpdateOne` method:
2424

2525
```python
2626
# Add product data to database using bulkwrite and updateOne with upsert

09_Vector_Search_Cosmos_DB/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Embedding is a way of serializing the semantic meaning of data into a vector rep
88

99
Embeddings are created by sending data to an embedding model, where it is transformed into a vector, which then can be stored as a vector field within its source document in Azure Cosmos DB for NoSQL. Azure Cosmos DB for NoSQL supports the creation of vector search indexes on top of these vector fields. A vector search index is a collection of vectors in [latent space](https://idl.cs.washington.edu/papers/latent-space-cartography/) that enables a semantic similarity search across all data (vectors) contained within.
1010

11-
![A typical embedding pipeline that demonstrates how source data is transformed into vectors using an embedding model then stored in a document in an Azure Cosmos DB vCore database and exposed via a vector search index.](media/embedding_pipeline.png)
11+
![A typical embedding pipeline that demonstrates how source data is transformed into vectors using an embedding model then stored in a document in an Azure Cosmos DB container and exposed via a vector search index.](media/embedding_pipeline.png)
1212

1313
## Why vector search?
1414

@@ -38,7 +38,7 @@ On the **Settings** screen, select the **Resource** tab, then copy and record th
3838

3939
>**NOTE**: This lab can only be completed using a deployed Azure Cosmos DB for NoSQL account due to the use of vector search. The Azure Cosmos DB Emulator does not support vector search.
4040
41-
This lab also requires the data provided in the previous lab titled [Load data into Azure Cosmos DB API for NoSQL collections](../08_Load_Data/README.md#lab---load-data-into-azure-cosmos-db-api-for-mongodb-collections). Run all cells in this notebook to prepare the data for use in this lab.
41+
This lab also requires the data provided in the previous lab titled [Load data into Azure Cosmos DB API for NoSQL containers](../08_Load_Data/README.md#lab---load-data-into-azure-cosmos-db-api-for-mongodb-collections). Run all cells in this notebook to prepare the data for use in this lab.
4242

4343
>**Note**: It is highly recommended to use a [virtual environment](https://python.land/virtual-environments/virtualenv) for all labs.
4444

10_LangChain/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ When an incoming message is received, the retriever will vectorize the message a
2222

2323
In this lab uses LangChain to re-implement the RAG pattern introduced in the previous lab. Take note of the readability of the code and how easy it is to compose a reusable RAG chain using LangChain that queries the products vector index in Azure Cosmos DB for NoSQL. The lab concludes with the creation of an agent with various tools for the LLM to leverage to fulfill the incoming request.
2424

25-
This lab also requires the data provided in the previous lab titled [Load data into Azure Cosmos DB API for NoSQL collections](../08_Load_Data/README.md#lab---load-data-into-azure-cosmos-db-api-for-mongodb-collections) as well as the populated vector index created in the lab titled [Vector Search using Azure Cosmos DB for NoSQL](../09_Vector_Search_Cosmos_DB/README.md#lab---use-vector-search-on-embeddings-in-vcore-based-azure-cosmos-db-for-mongodb). Run all cells in both notebooks to prepare the data for use in this lab.
25+
This lab also requires the data provided in the previous lab titled [Load data into Azure Cosmos DB API for NoSQL containers](../08_Load_Data/README.md#lab---load-data-into-azure-cosmos-db-api-for-mongodb-collections) as well as the populated vector index created in the lab titled [Vector Search using Azure Cosmos DB for NoSQL](../09_Vector_Search_Cosmos_DB/README.md#lab---use-vector-search-on-embeddings-in-vcore-based-azure-cosmos-db-for-mongodb). Run all cells in both notebooks to prepare the data for use in this lab.
2626

2727
>**Note**: It is highly recommended to use a [virtual environment](https://python.land/virtual-environments/virtualenv) for all labs.
2828

11_Backend_API/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In the previous lab, a LangChain agent was created armed with tools to do vector
44

55
This lab implements a backend API using FastAPI that exposes the LangChain agent functionality. The provided code leverages Docker containers and includes full step-by-step instructions to run and test the API locally as well as deployed to [Azure Container Apps](https://learn.microsoft.com/azure/container-apps/overview) (leveraging the [Azure Container Registry](https://learn.microsoft.com/azure/container-registry/)).
66

7-
This lab also requires the data provided in the previous lab titled [Load data into Azure Cosmos DB API for NoSQL collections](../08_Load_Data/README.md#lab---load-data-into-azure-cosmos-db-api-for-mongodb-collections) as well as the populated vector index created in the lab titled [Vector Search using Azure Cosmos DB for NoSQL](../09_Vector_Search_Cosmos_DB/README.md#lab---use-vector-search-on-embeddings-in-vcore-based-azure-cosmos-db-for-mongodb). Run all cells in both notebooks to prepare the data for use in this lab.
7+
This lab also requires the data provided in the previous lab titled [Load data into Azure Cosmos DB API for NoSQL containers](../08_Load_Data/README.md#lab---load-data-into-azure-cosmos-db-api-for-mongodb-collections) as well as the populated vector index created in the lab titled [Vector Search using Azure Cosmos DB for NoSQL](../09_Vector_Search_Cosmos_DB/README.md#lab---use-vector-search-on-embeddings-in-vcore-based-azure-cosmos-db-for-mongodb). Run all cells in both notebooks to prepare the data for use in this lab.
88

99
>**Note**: It is highly recommended to use a [virtual environment](https://python.land/virtual-environments/virtualenv) for all labs.
1010

Labs/lab_1_first_application.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"cell_type": "markdown",
5252
"metadata": {},
5353
"source": [
54-
"## Create a collection\n",
54+
"## Create a container\n",
5555
"\n",
56-
"Creating collections behaves similarly to the database creation. If the collection does not exist, it will be created. It's important to note that databases and collections are lazily created. This means that the database and collection will not be created until the first document is inserted."
56+
"Creating containers behaves similarly to the database creation. If the collection does not exist, it will be created. It's important to note that databases and containers are lazily created. This means that the database and collection will not be created until the first document is inserted."
5757
]
5858
},
5959
{

Labs/lab_2_load_data.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"metadata": {},
5151
"outputs": [],
5252
"source": [
53-
"# empty the collections\n",
53+
"# empty the containers\n",
5454
"db.products.bulk_write([DeleteMany({})])\n",
5555
"db.customers.bulk_write([DeleteMany({})])\n",
5656
"db.sales.bulk_write([DeleteMany({})])"

Labs/lab_4_langchain.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
"source": [
230230
"### Create retrievers\n",
231231
"\n",
232-
"A separate retriever is required for each vector index. The following cell creates a VectorStoreRetriever for the products, customers, and sales collections and associated vector index."
232+
"A separate retriever is required for each vector index. The following cell creates a VectorStoreRetriever for the products, customers, and sales containers and associated vector index."
233233
]
234234
},
235235
{
@@ -272,7 +272,7 @@
272272
"metadata": {},
273273
"outputs": [],
274274
"source": [
275-
"# Create tools that will use vector search in Azure Cosmos DB for NoSQL collections\n",
275+
"# Create tools that will use vector search in Azure Cosmos DB for NoSQL containers\n",
276276
"\n",
277277
"# create a chain on the retriever to format the documents as JSON\n",
278278
"products_retriever_chain = products_retriever | format_docs\n",

0 commit comments

Comments
 (0)