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
Container app updates, fast api updates, fixes, infra updates (#157)
* inital aca work
* container config updates
* Fixing container startup issues (#129)
* Fixing container startup issues
* Fixing import
---------
Co-authored-by: Andre Dewes <andredewes@microsoft.com>
* update arch diagram
* fix get response
* path fixes
* fix chat request
* fix env vars
* fix path for ai search
* update to fastapi, prompty updates, start eval work,
* some deployment fixes
* fix api deployment, fix endpoint name
* update eval py to load model config
* evalution notebook
* move evals
* update infra to ai studio
* update model version to deploy to east us2
* update evaluate
* remove unsued deployment files
* update text
* fix models for infra
* fix aca name
---------
Co-authored-by: Andre Dewes <31827221+andredewes@users.noreply.github.com>
Co-authored-by: Andre Dewes <andredewes@microsoft.com>
Copy file name to clipboardexpand all lines: README.md
+5-33
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
name: Contoso Chat Retail with Azure AI Studio and Promptflow
2
+
name: Contoso Chat Retail with Azure AI Studio and Prompty
3
3
description: A retail copilot that answers customer queries with responses grounded in retailer's product and customer data.
4
4
languages:
5
5
- python
@@ -15,7 +15,7 @@ page_type: sample
15
15
urlFragment: contoso-chat
16
16
---
17
17
18
-
# Contoso Chat Retail with Azure AI Studio and Promptflow
18
+
# Contoso Chat Retail with Azure AI Studio and Prompty
19
19
20
20
This sample creates a customer support chat agent for an online retailer called Contoso Outdoors. The solution uses a _retrieval-augmented generation pattern_ to ground responses in the company's product and customer data. Customers can ask questions about the retailer's product catalog, and also get recommendations based on their prior purchases.
21
21
@@ -32,8 +32,8 @@ The sample uses [Azure AI Search](https://learn.microsoft.com/azure/search/) to
32
32
33
33
By exploring and deploying this sample, you will learn to:
34
34
- Build a retail copilot application using the [_RAG pattern_](https://learn.microsoft.com/azure/ai-studio/concepts/retrieval-augmented-generation).
35
-
- Define and engineer prompts using the [_Prompty_ asset](https://microsoft.github.io/promptflow/tutorials/prompty-quickstart.html?highlight=prompty#).
36
-
- Design, run & evaluate a copilot using the [_Promptflow_ framework](https://microsoft.github.io/promptflow/tutorials/flex-flow-quickstart.html).
35
+
- Define and engineer prompts using the Prompty
36
+
- Design, run & evaluate a copilot
37
37
- Provision and deploy the solution to Azure using the [_Azure Developer CLI_](https://learn.microsoft.com/azure/developer/azure-developer-cli/).
38
38
- Understand and apply Responsible AI practices like [_evaluation and content safety_](https://learn.microsoft.com/en-us/azure/ai-services/responsible-use-of-ai-overview?context=%2Fazure%2Fai-studio%2Fcontext%2Fcontext).
39
39
@@ -103,7 +103,6 @@ This has been the signature sample used to showcase end-to-end development of a
103
103
*[Visual Studio Code](https://code.visualstudio.com) - recommended IDE for local development.
104
104
*[Azure Developer CLI (azd)](https://aka.ms/install-azd) - to manage Azure deployment.
105
105
*[Python 3.10+](https://www.python.org/downloads/) - to run, test & evaluate application.
106
-
*[Promptflow 1.10+](https://microsoft.github.io/promptflow/) - to build, evaluate, and deploy application flows.
107
106
108
107
You will also need:
109
108
*[Azure Subscription](https://azure.microsoft.com/free/) - sign up for a free account.
@@ -222,26 +221,7 @@ The [contoso_chat](./contoso_chat) sample contains an example [chat.prompty](./c
222
221
- `question` section to embed user query
223
222
- `Instructions` section to reference related product recommendations
224
223
225
-
This specific prompty takes 3 inputs: a `customer` object, a `documentation` object (that could be chat history) and a `question` string that represents the user query. You can now _load_, _execute_, and _trace_ individual prompty assets for a more granular prompt engineering solution.
226
-
227
-
* See the [prompty specification](https://microsoft.github.io/promptflow/how-to-guides/develop-a-prompty/index.html#prompty-specification) for more details on the format.
228
-
* Read the [prompty examples](https://github.com/microsoft/promptflow/tree/main/examples/prompty) for usage guidance from SDK or CLI.
229
-
230
-
### Testing the Application Flow
231
-
232
-
This sample uses a [flex-flow](https://microsoft.github.io/promptflow/how-to-guides/develop-a-flex-flow/index.html) feature that lets you "create LLM apps using a Python class or function as the entry point" - making it easier to test and run them using a code-first experience.
233
-
- This sample implements a _Function based flow_
234
-
- The entry point is the _get_response_ functionin `chat_request.py`
235
-
236
-
You can now [test the flow](https://microsoft.github.io/promptflow/how-to-guides/develop-a-flex-flow/function-based-flow.html#flow-test) in different ways:
237
-
- Run it directly, like any Python script
238
-
- Convert it to a flow, then use `pf flow test --flow ...`
239
-
- Start a UI to chat with the flow using `pf flow test --flow ... --ui`
240
-
241
-
🌟 | Watch this space for more testing guidance.
242
-
243
-
244
-
## Guidance
224
+
This specific prompty takes 3 inputs: a `customer` object, a `documentation` object (that could be chat history) and a `question` string that represents the user query. You can now _load_, _execute_, and _trace_ individual prompty assets for a more granular prompt
245
225
246
226
### Region Availability
247
227
@@ -270,14 +250,6 @@ This template uses [Managed Identity](https://learn.microsoft.com/entra/identity
270
250
271
251
Additionally, we have added a [GitHub Action tool](https://github.com/microsoft/security-devops-action) that scans the infrastructure-as-code files and generates a report containing any detected issues. To ensure best practices we recommend anyone creating solutions based on our templates ensure that the [Github secret scanning](https://docs.github.com/code-security/secret-scanning/about-secret-scanning) setting is enabled in your repo.
272
252
273
-
274
-
## Resources
275
-
276
-
* [Azure AI Studio Documentation](https://learn.microsoft.com/azure/ai-studio/)
* [Develop Python apps that use Azure AI services](https://learn.microsoft.com/azure/developer/python/azure-ai-for-python-developers)
279
-
* Related Sample: [Process Automation: Speech to Text and Summarization with ACA](https://github.com/Azure-Samples/summarization-openai-python-promptflow/blob/main/README.md)
280
-
281
253
## Troubleshooting
282
254
283
255
Have questions or issues to report? Please [open a new issue](https://github.com/Azure-Samples/contoso-chat/issues) after first verifying that the same question or issue has not already been reported. In the latter case, please add any additional comments you may have, to the existing issue.
0 commit comments