From c187cccf78a9de151fa1862bf9784a9e35a25ef8 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Wed, 13 May 2026 09:11:42 -0700 Subject: [PATCH] Rag sample ready --- .../responses/08_azure_search_rag/.dockerignore | 1 + .../responses/08_azure_search_rag/README.md | 2 ++ .../responses/08_azure_search_rag/agent.manifest.yaml | 8 ++++++++ 3 files changed, 11 insertions(+) diff --git a/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/.dockerignore b/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/.dockerignore index 31ed562a7e..2629367b12 100644 --- a/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/.dockerignore +++ b/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/.dockerignore @@ -5,3 +5,4 @@ __pycache__ *.pyd .Python .env +provision_index.py diff --git a/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/README.md b/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/README.md index f13b12485a..5aafdff38b 100644 --- a/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/README.md +++ b/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/README.md @@ -181,4 +181,6 @@ azd env set AZURE_SEARCH_ENDPOINT "https://.search.windows.net" azd env set AZURE_SEARCH_INDEX_NAME "contoso-outdoors" ``` +If these are not set, running `azd ai agent init -m ` will prompt you to enter them interactively. + The deployed agent's Managed Identity needs **Search Index Data Reader** on the Azure AI Search service. diff --git a/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/agent.manifest.yaml b/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/agent.manifest.yaml index 8fb142d791..0d8eb419a9 100644 --- a/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/agent.manifest.yaml +++ b/python/samples/04-hosting/foundry-hosted-agents/responses/08_azure_search_rag/agent.manifest.yaml @@ -24,6 +24,14 @@ template: value: "{{AZURE_SEARCH_ENDPOINT}}" - name: AZURE_SEARCH_INDEX_NAME value: "{{AZURE_SEARCH_INDEX_NAME}}" +parameters: + properties: + - name: AZURE_SEARCH_ENDPOINT + secret: false + description: The endpoint of the Azure AI Search service to use for RAG (e.g., https://my-search-service.search.windows.net) + - name: AZURE_SEARCH_INDEX_NAME + secret: false + description: The name of the Azure AI Search index to use for RAG (e.g., contoso-outdoors) resources: - kind: model id: gpt-4.1-mini