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
"content": "How is Azure machine learning different than Azure OpenAI?",
130
+
},
131
+
],
132
+
extra_body={
133
+
"dataSources": [
127
134
{
128
-
"role": "user",
129
-
"content": "How is Azure machine learning different than Azure OpenAI?",
130
-
},
131
-
],
132
-
extra_body={
133
-
"dataSources": [
134
-
{
135
-
"type": "AzureCognitiveSearch",
136
-
"parameters": {
137
-
"endpoint": os.environ["SearchEndpoint"],
138
-
"key": os.environ["SearchKey"],
139
-
"indexName": os.environ["SearchIndex"]
140
-
}
135
+
"type": "AzureCognitiveSearch",
136
+
"parameters": {
137
+
"endpoint": os.environ["SearchEndpoint"],
138
+
"key": os.environ["SearchKey"],
139
+
"indexName": os.environ["SearchIndex"]
141
140
}
142
-
]
143
-
}
144
-
)
145
-
146
-
print(completion.model_dump_json(indent=2))
147
-
```
148
-
149
-
---
141
+
}
142
+
]
143
+
}
144
+
)
145
+
146
+
print(completion.model_dump_json(indent=2))
147
+
```
150
148
151
-
> [!IMPORTANT]
152
-
> For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../key-vault/general/overview.md). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
149
+
---
150
+
151
+
> [!IMPORTANT]
152
+
> For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../key-vault/general/overview.md). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
153
153
154
154
2. Execute the following command:
155
155
156
-
```cmd
157
-
python main.py
158
-
```
156
+
```cmd
157
+
python main.py
158
+
```
159
159
160
-
The application prints the response in a JSON format suitable for use in many scenarios. It includes both answers to your query and citations from your uploaded files.
160
+
The application prints the response in a JSON format suitable for use in many scenarios. It includes both answers to your query and citations from your uploaded files.
161
161
162
162
> [!div class="nextstepaction"]
163
163
> [I ran into an issue when running the code samples.](https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=dotnet&Pillar=AOAI&Product=ownData&Page=quickstart&Section=Create-dotnet-application)
0 commit comments