You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Whether to limit search to indexed documents only
78
+
AZURE_SEARCH_IN_SCOPE=false
79
+
80
+
# Role information for Azure Search responses
81
+
AZURE_SEARCH_ROLE_INFORMATION="You are an AI assistant."
82
+
83
+
# Azure Search strictness level (1-5)
84
+
AZURE_SEARCH_STRICTNESS=5
85
+
86
+
# Number of top documents to retrieve
87
+
AZURE_SEARCH_TOP_N_DOCUMENTS=20
48
88
```
49
89
90
+
### Azure Search / RAG Integration
91
+
92
+
The pipeline now supports **Azure Search** integration for **Retrieval-Augmented Generation (RAG)**. When configured, the pipeline will automatically include a `data_sources` field in requests to Azure AI, enabling document-based AI responses.
93
+
94
+
#### Configuration
95
+
96
+
Configure Azure Search by setting the following environment variables:
97
+
98
+
-**AZURE_SEARCH_ENDPOINT**: Your Azure Search service endpoint
99
+
-**AZURE_SEARCH_INDEX_NAME**: Name of the search index containing your documents
100
+
-**AZURE_SEARCH_AUTHENTICATION_TYPE**: Authentication method (`system_assigned_managed_identity` or `api_key`)
101
+
-**AZURE_SEARCH_KEY**: API key (if using `api_key` authentication)
102
+
103
+
#### Optional Settings
104
+
105
+
-**AZURE_SEARCH_PROJECT_RESOURCE_ID**: Project resource ID
106
+
-**AZURE_SEARCH_SEMANTIC_CONFIGURATION**: Semantic configuration name
107
+
-**AZURE_SEARCH_EMBEDDING_ENDPOINT**: Embedding service endpoint
108
+
-**AZURE_SEARCH_EMBEDDING_KEY**: Embedding service API key
109
+
-**AZURE_SEARCH_QUERY_TYPE**: Query type (`vectorSimpleHybrid`, `vector`, `semantic`)
110
+
-**AZURE_SEARCH_IN_SCOPE**: Limit to indexed documents only
111
+
-**AZURE_SEARCH_ROLE_INFORMATION**: Role information for responses
-**AZURE_SEARCH_TOP_N_DOCUMENTS**: Number of documents to retrieve
114
+
50
115
> [!TIP]
51
116
> To use **Azure OpenAI** and other **Azure AI** models **simultaneously**, you can use the following URL: `https://<your project>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview`
0 commit comments