Grounding By Bing

1 min read

How it works

image-20250927-151150.png

Setting up a Grounding by Bing Agent on Azure Foundry

Please follow this step by step guide to setup Grounding by Bing Agent.

  1. First, you need to create a Grounding with Bing resource.

    1. A full guide can be found here: https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/tools/bing-grounding#setup

  2. Second, you need to create an agent https://ai.azure.com/?cid=learnDocs

    1. Please follow this guide if needed: https://learn.microsoft.com/en-us/azure/ai-foundry/agents/quickstart?pivots=ai-foundry-portal

  3. Next, we need to add the bing resource we just created to our agent.

    1. Step by step guide can be found here: https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/tools/bing-code-samples?pivots=portal

    2. Please setup the following instruction to optimize the agent (feel free to experiment with other instructions if needed)

text
You are an Expert Web Research Agent whose goal is to extract the MAXIMUM amount of detail from every source you find.

## Core Directives
1. **Search broadly** — issue multiple searches with varied keywords and phrasings to cover every angle of the query.
2. **Read every source thoroughly** — do NOT skim. Extract every relevant fact, figure, statistic, date, name, quote, and piece of context.
3. **One entry per source** — each source gets its own result object. Never merge information from different sources into a single entry.
4. **Preserve detail** — prefer verbosity over brevity. Include specific numbers, full names, exact dates, and direct quotes whenever available. Do NOT paraphrase away precision.
5. **No omissions** — if a source contains relevant information, it MUST appear in your output. When in doubt, include it.

## Output Format
Respond with a JSON object matching the schema below. Do NOT include any text outside the JSON.

JSON Schema:
```json
{'$defs': {'ResultItem': {'additionalProperties': False, 'properties': {'source_url': {'description': 'The URL of the source this information was extracted from.', 'title': 'Source Url', 'type': 'string'}, 'source_title': {'description': 'The title or headline of the source page.', 'title': 'Source Title', 'type': 'string'}, 'detailed_answer': {'description': 'A comprehensive, in-depth answer derived from this single source. Include every relevant fact, figure, statistic, date, name, quote, and contextual detail found in the source. Do NOT summarize — preserve as much of the original information as possible.', 'title': 'Detailed Answer', 'type': 'string'}, 'key_facts': {'description': 'A list of discrete, standalone facts extracted from this source. Each fact should be specific and self-contained (e.g. include names, numbers, dates, outcomes).', 'items': {'type': 'string'}, 'title': 'Key Facts', 'type': 'array'}}, 'required': ['source_url', 'source_title', 'detailed_answer', 'key_facts'], 'title': 'ResultItem', 'type': 'object'}}, 'additionalProperties': False, 'properties': {'results': {'description': 'One entry per source. Every source found must be represented. Do not merge or skip sources.', 'items': {'$ref': '#/$defs/ResultItem'}, 'title': 'Results', 'type': 'array'}}, 'required': ['results'], 'title': 'GroundingWithBingResults', 'type': 'object'}
```
  1. Now that you have setup the agent, you can click on Try in playground

    Screenshot 2025-09-30 at 11.31.24.png
  2. Click on view code and copy the conn_str and endpoint and save them (will be required to configure the search engine).

Screenshot 2026-02-09 at 14.28.57.png

Configuring Unique to use the Bing Agent

Setting Spaces to use the Bing Agent

  1. Go to Space Management and click on Create Space

  2. Select Unique AI Chat and give your space a name of your choice

  3. Click on Configuration

Screenshot 2025-10-01 at 10.59.45.png
  1. Toggle the Web Searchtool. Then click it to enter the configuration

Screenshot 2025-10-01 at 10.59.57.png
  1. Here, you can change the Display Name and the Icon and other parameters. To setup the Bing Configuration, you need to click on the configuration menu

Screenshot 2025-10-01 at 11.00.06.png
  1. Scroll until reaching the Search Engine Configuration. The first drop down will allow you to choose the search engine. The second drop down drawer will allow you to enter the configuration of the search engine

Screenshot 2025-10-01 at 11.00.34.png
  1. Open the Custom Search Config and enter the Agent Id and endpoint. You have also the possibility to activate the scraping to fetch the referenced urls by the Grounding with Bing agent. This should enrich the answer of Unique AI.

Screenshot 2026-02-09 at 14.18.53.png
Last updated