Foundry IQ combines agentic retrieval with intelligent ranking. Instead of simple keyword search, agents autonomously decide which knowledge sources to query and how to rank results.
Unlike static RAG, agentic retrieval lets the agent:
| Technique | Description |
|---|---|
| Semantic Ranking | Re-rank results by semantic similarity to the query |
| Hybrid Ranking | Combine vector similarity + keyword BM25 scores |
| LLM Re-ranking | Use an LLM to judge relevance of each result |
| Reciprocal Rank Fusion | Merge ranked lists from multiple retrieval sources |
from azure.ai.projects import AIProjectClient
# Create a knowledge base connection
kb = client.knowledge_bases.create(
name="company-docs",
description="Internal company documentation",
storage_connection_string=conn_str,
search_endpoint=search_endpoint,
chunk_size=512,
overlap=64
)
# Attach to agent
agent = client.agents.create_agent(
model="gpt-4o",
name="IQAgent",
knowledge_bases=[kb.id]
)
You can create IQ agents either through the Foundry portal (no-code) or programmatically via the SDK (as shown above).