Rag sample ready

This commit is contained in:
Tao Chen
2026-05-13 09:11:42 -07:00
Unverified
parent ecc90bcf78
commit c187cccf78
3 changed files with 11 additions and 0 deletions
@@ -5,3 +5,4 @@ __pycache__
*.pyd
.Python
.env
provision_index.py
@@ -181,4 +181,6 @@ azd env set AZURE_SEARCH_ENDPOINT "https://<your-search>.search.windows.net"
azd env set AZURE_SEARCH_INDEX_NAME "contoso-outdoors"
```
If these are not set, running `azd ai agent init -m <agent-manifest.yaml>` will prompt you to enter them interactively.
The deployed agent's Managed Identity needs **Search Index Data Reader** on the Azure AI Search service.
@@ -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