Compare
Foundry IQ Knowledge Base vs File Search vs Agent Memory
30-second answer
Use a Foundry IQ knowledge base (on Azure AI Search) to ground an agent on curated company content. Use file search for documents a user brings into a conversation. Use memory for what the agent should learn about a user over time, such as preferences, across sessions.
Simulate it »Side by side
↔ Swipe the table to see every column.
| Foundry IQ knowledge base | File search | Memory | |
|---|---|---|---|
| Holds | Curated organizational content (indexes, blob, SharePoint, web) | Files uploaded for the agent or conversation | Facts and summaries learned from conversations |
| Who adds content | Content owners, through indexing | The user or the app | The agent, automatically |
| Retrieval | Agentic retrieval: planned sub-queries, hybrid and semantic search, citations | Vector search over a vector store | Search over memory items (user profile, chat summary) |
| Lifetime | As long as the index | As long as the vector store | Until a retention TTL or a forget request |
| Scope | Shared by many agents | One agent or one conversation | Per user (scope key) |
| Example | 40,000 HR policy pages | A contract pasted in today | “I’m vegetarian” |
Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.
Which one should I pick?
Foundry IQ knowledge base
Pick it when many users ask about the same company content
File search
Pick it when each user brings their own documents
Memory
Pick it when the agent should personalise across sessions
Simulate it
🖱️ Drag to rotate · scroll or pinch to zoom
Where an agent gets its facts
Curated company content lives in a Foundry IQ knowledge base on Azure AI Search. Files a user drops into the chat go to file search. What the agent learns about the user across sessions goes to memory (user profile, chat summary).
🤔 What happens if…
Read this tour as text
- Pick the right model or tool. A router in your app sends each job to the cheapest thing that does it well: a reasoning model for multistep problems, a small language model for high-volume labelling, a multimodal model for photos, and a Foundry Tool such as Content Understanding for invoices.
- Where an agent gets its facts. Curated company content lives in a Foundry IQ knowledge base on Azure AI Search. Files a user drops into the chat go to file search. What the agent learns about the user across sessions goes to memory (user profile, chat summary).
- Resource, projects and deployment types. One Foundry resource holds deployments, networking and keys. Projects inside it isolate teams. Global deployments may process anywhere, Data Zone stays in the EU or US zone, Standard stays in one region. The standard agent setup keeps threads, files and vectors in your own Cosmos DB, Storage and AI Search.
- Configure deployments and agent versions. A deployment pins a model, a model version, a deployment type, capacity (TPM) and a guardrail. An agent gets a new version every time you change it; the endpoint serves the version you choose, so you can roll back.
- CI/CD with an evaluation gate. The agent definition, prompts and Bicep live in Git. The pipeline signs in with workload identity federation (no secret), runs an evaluation on a test set, and only then promotes from dev to test to prod projects.
- Quotas, 429s, spillover and budgets. Quota is tokens per minute per model, per region, per deployment type. Each deployment gets a slice; RPM comes with it. Go over and you get HTTP 429 with a retry-after header. Provisioned throughput can spill over to a standard deployment, and a cost control can stop a project at its token budget.
- Monitor models, agents and search. Azure Monitor metrics show requests, tokens, latency and errors. Application Insights holds traces, and continuous evaluation scores a sample of live answers for groundedness and safety. For Azure AI Search, watch indexer runs, document counts, search latency and throttled queries.
- Keyless and private. The app uses a managed identity and Microsoft Entra ID tokens, with the Foundry User role on the resource. Local (key) auth is turned off. Public network access is disabled and a private endpoint in your VNet is the only way in.
- Guardrails at four intervention points. A guardrail is a set of controls: a risk (hate, violence, prompt attacks, indirect attacks, protected material, PII), the intervention point (user input, tool call, tool response, output) and the action (annotate, or annotate and block).
- Evaluate, red team and trace. Evaluators score answers: groundedness, relevance, coherence, safety, and agent ones like tool call accuracy and task adherence. The AI red teaming agent attacks before launch. Traces in Application Insights record every model call, tool call and approval for audit.
- Govern what the agent may do. Give the agent only the tools it needs (allowed tools), make risky tools require approval from a human, let the tool call guardrail check what it sends, and limit where a hosted agent can connect with network egress controls.
Questions people ask
Is memory the same as conversation history?
No. The conversation holds short-term context for one session. Memory extracts durable facts and summaries so the agent can use them in later sessions.
Can an agent use all three?
Yes. A support agent often grounds on a knowledge base, reads files the customer uploads, and remembers the customer’s preferences.
Learn each one properly
More comparisons
- Foundry Deployment Types: Global, Data Zone, Standard, Provisioned, Batch
- Multi-Agent Orchestration Patterns: Sequential, Concurrent, Handoff, Group Chat, Magentic
- Prompt Engineering vs RAG vs Fine-Tuning
- Generate, Edit or Understand? Vision Features in Foundry
- Image Harm Controls vs Prompt Shields vs a Custom Visual Policy
- Azure Translator vs LLM Translation in Foundry
- Sentiment Analysis vs Model Tone Labels vs Content Safety
- Keyword vs Vector vs Hybrid vs Semantic Search in Azure AI Search
- Azure AI Search vs Content Understanding: Which Do You Need?