You are implementing a Retrieval-Augmented Generation (RAG) system by using the native vector search
capabilities of Azure Cosmos DB for NoSQL API.
You have a container named Documents that stores technical articles. Each article includes a property named embedding.
You must ensure that the system can perform efficient similarity searches between user queries and the stored articles.
You need to configure the database resources to support semantic retrieval.
Which configurations should you use? To answer, move the appropriate configurations to the correct requirements. You may use each configuration once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

You have a container named Documents that stores technical articles. Each article includes a property named embedding.
You must ensure that the system can perform efficient similarity searches between user queries and the stored articles.
You need to configure the database resources to support semantic retrieval.
Which configurations should you use? To answer, move the appropriate configurations to the correct requirements. You may use each configuration once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

Show answerHide answer
Explanation

Explanation
Configure a vector index: To perform efficient similarity searches (mathematical distance calculations like cosine or Euclidean distance) between a user's query vector and the stored article embeddings, you must define a vector policy and configure a vector index in your Cosmos DB container. This tells the database engine to use specialized algorithms (like flat, quantizedFlat, or DiskANN) to index and query the high-dimensional data efficiently.
Store data as a numeric array: In Azure Cosmos DB for NoSQL, vector embeddings must be stored in the JSON document as an array of numbers (e.g., `[0.1, 0.5, -0.2]`). When defining the container's vector policy, you specify that the `embedding` property path uses this numeric array format so the database can correctly interpret and index the vector data.
Why the Other Options Are Incorrect
Configure a composite index: Composite indexes are used to optimize queries that sort or filter on multiple scalar properties (e.g., `ORDER BY c.category, c.price`). They do not support high-dimensional vector fields.
Store data as a Base64 encoded string: Azure Cosmos DB for NoSQL vector search requires embeddings to be stored as native JSON numeric arrays. It does not natively parse Base64 strings for vector distance calculations.
References
Microsoft Learn: Vector search in Azure Cosmos DB for NoSQL (Details the required vector policy, including the numeric array data type and vector index configuration).












