foundry-iq-py
Build agentic retrieval solutions with Azure AI Search knowledge bases and Foundry Agent Service using the Python SDK. Use when creating knowledge sources/bases, connecting agents via MCP for RAG, implementing hybrid search with semantic reranking, or building conversational apps with citation support. Covers SearchIndexClient, KnowledgeBaseRetrievalClient, and AIProjectClient.
npx skills add majiayu000/claude-skill-registry --skill foundry-iq-py --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Foundry IQ Python SDK Build agentic retrieval pipelines using Azure AI Search knowledge bases with the Python SDK. ## Installation ```bash pip install azure-ai-projects==2.0.0b1 azure-search-documents==11.7.0b2 azure-identity ``` ## Environment Variables ```bash AZURE_SEARCH_ENDPOINT=https://<search-service>.search.windows.net AZURE_OPENAI_ENDPOINT=https://<openai-resource>.openai.azure.com AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-3-large AZURE_AI_PROJECT_ENDPOINT=https://<resource>.services.ai.azure.com/api/projects/<project> ``` ## Authentication ```python from azure.identity import DefaultAzureCredential from azure.search.documents.indexes import SearchIndexClient credential = DefaultAzureCredential() index_client = SearchIndexClient(endpoint=search_endpoint, credential=credential) ``` ## Architecture ``` User Query → Foundry Agent → MCP Tool → Knowledge Base → Knowledge Sources ↓ Query Planning + Hybrid Search + Reranking ↓ Extractive Data with Citations ``` ## Core Workflow ### 1. Create Search Index (Semantic Config Required) ```python from azure.search.documents.indexes import SearchIndexClient from azure.search.documents.indexes.models import ( SearchIndex, Search
- Installation
- Environment Variables
- Authentication
- Architecture
- Core Workflow
- 1. Create Search Index (Semantic Config Required)
- 2. Create Knowledge Source
- 3. Create Knowledge Base
- 4. Create Project Connection
- 5. Create Agent with MCP Tool
- 6. Invoke Agent
- Query Knowledge Base Directly
- SharePoint with User Token
- Retrieval Reasoning Effort
pip install azure-ai-projects==2.0.0b1 azure-search-documents==11.7.0b2 azure-identity
What does the foundry-iq-py skill do?
Build agentic retrieval solutions with Azure AI Search knowledge bases and Foundry Agent Service using the Python SDK. Use when creating knowledge sources/bases, connecting agents via MCP for RAG, implementing hybrid search with semantic reranking, or building conversational apps with citation support. Covers SearchIndexClient, KnowledgeBaseRetrievalClient, and AIProjectClient.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill foundry-iq-py --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
