Grounding By Bing
1 min read
How it works

Setting up a Grounding by Bing Agent on Azure Foundry
Please follow this step by step guide to setup Grounding by Bing Agent.
First, you need to create a Grounding with Bing resource.
A full guide can be found here: https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/tools/bing-grounding#setup
Second, you need to create an agent https://ai.azure.com/?cid=learnDocs
Please follow this guide if needed: https://learn.microsoft.com/en-us/azure/ai-foundry/agents/quickstart?pivots=ai-foundry-portal
Next, we need to add the bing resource we just created to our agent.
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
Please setup the following instruction to optimize the agent (feel free to experiment with other instructions if needed)
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'}
```Now that you have setup the agent, you can click on
Try in playground
Click on view code and copy the
conn_strandendpointand save them (will be required to configure the search engine).

Configuring Unique to use the Bing Agent
Setting Spaces to use the Bing Agent
Go to
Space Managementand click onCreate SpaceSelect
Unique AI Chatand give your space a name of your choiceClick on
Configuration

Toggle the
Web Searchtool. Then click it to enter the configuration

Here, you can change the
Display Nameand theIconand other parameters. To setup the Bing Configuration, you need to click on theconfigurationmenu

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

Open the
Custom Search Configand enter theAgent Idandendpoint. 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.
