You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -187,7 +188,7 @@ These policies are defined in the Bicep templates for the [distance metrics](#di
187
188
188
189
## Create code files for vector search
189
190
190
-
Create two Java source files in the `src/main/java/com/azure/cosmos/vectorsearch` directory:
191
+
Create two Java source files in the `src/main/java/com/example/cosmos/vectorsearch` directory:
191
192
192
193
### [Linux/macOS](#tab/tab-touch-linux)
193
194
@@ -237,7 +238,7 @@ This Azure OpenAI SDK call converts text like "quintessential lodging near runni
237
238
238
239
## Understand the code: Store vectors in Azure Cosmos DB
239
240
240
-
All documents with vector arrays are inserted at scale using the [`executeBulkOperations`](/java/api/com.azure.cosmos.cosmoscontainer) method in `Utils.insertData()`. Each document is mapped to a bulk create operation with a `PartitionKeyBuilder` for hierarchical partition keys. The utility tracks inserted, skipped, and failed counts along with total RU consumption.
241
+
All documents with vector arrays are inserted at scale using the [`executeBulkOperations`](/java/api/com.azure.cosmos.cosmoscontainer) method in `Utils.insertData()`. Each document is mapped to a bulk create operation using the `PartitionKeyBuilder` with each document's partition key value. The utility tracks inserted, skipped, and failed counts along with total RU consumption.
241
242
242
243
This inserts hotel documents including their pre-generated `DescriptionVector` arrays into the container. You can safely pass in all the document data, and the client library handles the batch processing and retries for you.
0 commit comments