▸case-01 Write Python code to authenticate and initialize a document search client for an Azure AI Search instance at `https://myservice.search.windows.net` for the index `products`. Avoid hardcoding API keys or using secret credentials; use modern identity-based access suitable for enterprise production. | pass→pass | 9,508 | 22,961 | +141% | 1 | 1 | 0% | 1,386 | 4,748 | +243% | 0 | 0 | — |
▸case-02 I need Python code to delete an existing search index and create a new one on Azure AI Search. Should I use `SearchClient` or a different client class from the Azure Search Python SDK for managing indexes? Show the client initialization and method call. | fail→fail | 10,410 | 7,936 | -24% | 1 | 1 | 0% | 2,105 | 5,380 | +156% | 0 | 0 | — |
▸case-03 Write Python code to create an automated data ingestion pipeline using an indexer and skillset on Azure AI Search. Which client class from the Azure Search Python SDK manages indexers, skillsets, and data source connections? | pass→pass | 13,833 | 13,341 | -4% | 1 | 1 | 0% | 3,059 | 6,782 | +122% | 0 | 0 | — |
▸case-04 I need to upload 50,000 document dictionaries to an Azure AI Search index in Python. Doing sequential `upload_documents` calls on a standard search client causes socket exhaustion and batch size threshold errors. What specialized helper class from the Azure Search Python SDK handles automated client-side batching, queueing, and retries for large indexing jobs? | pass→pass | 8,634 | 7,941 | -8% | 1 | 1 | 0% | 1,696 | 5,357 | +216% | 0 | 0 | — |
▸case-05 Write a Python code snippet using Azure AI Search to push a list of 100 customer records. Some records are brand new while others already exist in the index and need their updated fields merged. Which search client method handles both insertion of new documents and updates to existing documents in a single call? | pass→pass | 8,365 | 7,071 | -15% | 1 | 1 | 0% | 1,630 | 5,203 | +219% | 0 | 0 | — |
▸case-06 Write Python code defining a search index field for storing 1536-dimensional embedding vectors in Azure AI Search. Using the Python SDK index models, how should the vector field data type and vector dimensions be configured on `SearchField`? | pass→pass | 10,838 | 6,087 | -44% | 1 | 1 | 0% | 1,783 | 5,013 | +181% | 0 | 0 | — |
▸case-07 Provide a Python code snippet defining the `VectorSearch` configuration for an Azure AI Search index schema using Hierarchical Navigable Small World algorithm. Show how the algorithm configuration and vector search profile are linked. | pass→pass | 9,477 | 9,227 | -3% | 1 | 1 | 0% | 1,881 | 5,666 | +201% | 0 | 0 | — |
▸case-08 Write Python code configuring an Azure AI Search index with integrated server-side vectorization so that raw text queries are automatically converted into embeddings via Azure OpenAI. Which vectorizer model class should be configured inside `VectorSearch`? | pass→pass | 11,453 | 11,401 | -0% | 1 | 1 | 0% | 2,368 | 6,220 | +163% | 0 | 0 | — |
▸case-09 Suppose you have a pre-computed vector `[0.12, -0.05, 0.88, ...]` generated locally. Write Python code using `SearchClient.search` to perform a vector search targeting the `content_vector` field for 10 nearest neighbors. How is the query vector structured? | pass→pass | 8,698 | 7,030 | -19% | 1 | 1 | 0% | 1,694 | 5,273 | +211% | 0 | 0 | — |
▸case-10 Write Python code using the Azure AI Search client to execute a hybrid search that combines the text string 'machine learning' with a vector query `vec_query` targeting `embedding_field`. How are text and vector queries passed together in a single API call? | pass→pass | 10,961 | 6,996 | -36% | 1 | 1 | 0% | 2,179 | 5,209 | +139% | 0 | 0 | — |
▸case-11 Write Python code to query an Azure AI Search index using semantic ranking for the query 'how do I reset my password'. Which query type and semantic configuration parameters must be supplied to `SearchClient.search`? | pass→pass | 10,015 | 7,763 | -22% | 1 | 1 | 0% | 1,963 | 5,361 | +173% | 0 | 0 | — |
▸case-12 After running a semantic search query on Azure AI Search using the Python SDK, you loop through `results`. Write the Python expression to safely extract the semantic caption text generated for a result item. | pass→pass | 10,853 | 6,730 | -38% | 1 | 1 | 0% | 1,627 | 5,030 | +209% | 0 | 0 | — |
▸case-13 Write Python code using `SearchClient.search` to query an Azure AI Search index for documents where `status` equals 'active' and `inventory` is greater than 10, sorting the output by `created_at` descending. | pass→pass | 5,689 | 5,033 | -12% | 1 | 1 | 0% | 1,149 | 4,777 | +316% | 0 | 0 | — |
▸case-14 Write Python code to query Azure AI Search to fetch facet aggregations for `category` and `brand` without returning any matching document hit payloads. Show how the search request parameters are set and how facet results are retrieved from the response object. | pass→pass | 9,840 | 8,584 | -13% | 1 | 1 | 0% | 1,758 | 5,450 | +210% | 0 | 0 | — |
▸case-15 A developer has an active Azure AI Search index with 100,000 documents and wants to add a `SearchSuggester` to enable auto-complete on title fields using `create_or_update_index`. What is the rule regarding when suggesters can be added to an index schema in Azure AI Search? | pass→pass | 7,655 | 6,871 | -10% | 1 | 1 | 0% | 1,315 | 4,981 | +279% | 0 | 0 | — |
▸case-16 Write Python code to auto-complete partial search input 'micro' against a suggester named 'sg-title' using Azure AI Search `SearchClient`. Which specific client method should be called? | pass→pass | 10,975 | 4,970 | -55% | 1 | 1 | 0% | 1,646 | 4,780 | +190% | 0 | 0 | — |
▸case-17 Write an asynchronous Python function using `asyncio` that queries Azure AI Search for 'cloud architecture'. Which subpackage path must `SearchClient` be imported from, and how are async search results consumed? | pass→pass | 8,296 | 6,816 | -18% | 1 | 1 | 0% | 1,518 | 5,041 | +232% | 0 | 0 | — |
▸case-18 Write Python code defining an Azure AI Search skillset using `EntityRecognitionSkill` to extract organization names from `/document/content` into `/document/organizations`. What SDK model classes represent skill inputs and outputs? | pass→pass | 8,922 | 5,639 | -37% | 1 | 1 | 0% | 1,688 | 4,931 | +192% | 0 | 0 | — |
▸case-19 Write a Python `try...except` block fetching a document by key using `SearchClient.get_document`. Show how to catch missing document errors specifically versus general HTTP transmission errors using Azure Core SDK exceptions. | pass→pass | 8,481 | 5,509 | -35% | 1 | 1 | 0% | 1,670 | 4,818 | +189% | 0 | 0 | — |
▸case-20 Write Python code defining the `semantic_search` parameter inside a `SearchIndex` object using Azure AI Search Python SDK models, specifying a configuration named 'my-semantic-config' with 'content' as a prioritized content field. | pass→pass | 5,339 | 4,787 | -10% | 1 | 1 | 0% | 1,108 | 4,777 | +331% | 0 | 0 | — |
▸case-21 When implementing agentic retrieval with LLM-powered Q&A and synthesized answers on top of Azure AI Search knowledge sources, which client class from the Python SDK is used for retrieval and answer synthesis? | fail→pass | 10,225 | 2,608 | -74% | 1 | 1 | 0% | 1,763 | 4,263 | +142% | 0 | 0 | — |
▸case-22 Write Python code using the standard `requests` library to query an Azure AI Search index over direct HTTP REST API without importing the `azure-search-documents` SDK. Send a POST request to search for 'analytics'. | pass→pass | 7,175 | 7,976 | +11% | 1 | 1 | 0% | 1,489 | 5,453 | +266% | 0 | 0 | — |
▸case-23 Write a raw Python dictionary representing the JSON REST API payload to create an Azure AI Search index directly via HTTP API (without using Azure SDK classes). Include a key field `id` and a searchable text field `description`. | pass→pass | 6,148 | 4,962 | -19% | 1 | 1 | 0% | 1,274 | 4,864 | +282% | 0 | 0 | — |
▸case-24 Before sending vectors to a search index, write Python code using the official `openai` or `azure-openai` Python client to generate a 1536-dimension embedding for the input string 'search query' using the `text-embedding-3-small` model. | pass→pass | 4,758 | 7,346 | +54% | 1 | 1 | 0% | 877 | 5,315 | +506% | 0 | 0 | — |