
Skill
foundry-knowledge
retrieve knowledge via Foundry RAG
Description
Knowledge retrieval (RAG) via Foundry file_search and azure_ai_search tools. Agentic retrieval with citations — uses Responses API.
SKILL.md
Foundry Knowledge — File Search & Azure AI Search (Responses API)
You have access to knowledge retrieval via Foundry's built-in search tools:
- file_search: Searches uploaded files in vector stores (PDFs, docs, text)
- azure_ai_search: Searches Azure AI Search indexes (enterprise RAG)
Both return results with citations. No hosted agent needed — uses direct Responses API.
Endpoint
All requests: http://localhost:8443 with ?api-version=2025-11-15-preview. Auth is automatic.
Operations
Search uploaded files (file_search)
Requires vector store IDs from previously uploaded files:
curl -s -X POST 'http://localhost:8443/openai/responses?api-version=2025-11-15-preview' \
-H 'Content-Type: application/json' \
-d '{"model":"gpt-4.1","input":"What does the Q3 report say about revenue?","tools":[{"type":"file_search","vector_store_ids":["vs_abc123"]}],"store":false}'
Search Azure AI Search index
Requires an AI Search index configured as a connection in the Foundry project:
curl -s -X POST 'http://localhost:8443/openai/responses?api-version=2025-11-15-preview' \
-H 'Content-Type: application/json' \
-d '{"model":"gpt-4.1","input":"Find documents about security best practices","tools":[{"type":"azure_ai_search","azure_ai_search":{"indexes":[{"index_name":"my-index","project_connection_id":"/connections/my-search"}]}}],"store":false}'
List available indexes
curl -s 'http://localhost:8443/indexes?api-version=2025-11-15-preview'
When to use
- User asks "what does the report say about X" — RAG over enterprise docs
- Need to ground answers in specific documents with citations
- User says "search my documents", "find in the knowledge base"
- Questions requiring multiple document sources
When NOT to use
- For real-time web information (use foundry-web-search)
- For code execution or calculations (use foundry-code)
- For simple text files in /sandbox/ (just read them directly)
- For remembering user preferences (use foundry-memory)
Note on setup
File search requires uploading files to Foundry vector stores first. Azure AI Search requires an index and connection configured in the project. If neither is set up, the tools will return empty results — the agent should fall back to its training data.
More skills from the kars repository
View all 11 skillsagt-governance
enforce behavioral governance for agents
Jul 12AgentsAuditAzureGovernance +1foundry-agents
inspect and invoke Foundry prompt agents
Jul 12AgentsAPI DevelopmentAzurefoundry-code
execute Python code in Azure Foundry
Jul 12AzureChartsData AnalysisData Visualization +2foundry-conversations
manage persistent conversations via Foundry
Jul 12AgentsAzureMemoryfoundry-deployments
query Foundry model deployments and infrastructure
Jul 12AzureInfrastructureLLMfoundry-evaluations
evaluate agent quality with Foundry Evals
Jul 12AzureEvalsLLMOpenAI
More from Azure (Microsoft)
View publisherazure-arg-external-evaluation-policy-author
author and test Azure Resource Graph policies
azure-policy
Jul 12AzureComplianceGovernancePolicyazure-blueprints-migration
migrate Azure Blueprints to Template Specs
azure-blueprints
Jul 12AzureDeploymentInfrastructure as CodeMigrationapiview-feedback-resolution
resolve APIView feedback on Azure SDKs
azure-sdk-tools
Jul 12API DevelopmentAzureCode ReviewDocumentationazsdk-common-live-and-recorded-tests
deploy resources and run Azure SDK tests
azure-sdk-tools
Jul 12AzureDeploymentSDKTestingazsdk-common-prepare-release-plan
manage Azure SDK release plan work items
azure-sdk-tools
Jul 12AzureGitHubProject ManagementSDKazsdk-common-sdk-release
release Azure SDK packages
azure-sdk-tools
Jul 12AzureCI/CDDeploymentSDK