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
[Prompt flow > Quick start](https://microsoft.github.io/promptflow/how-to-guides/quick-start.html) provides a quick start guide to Prompt flow.
37
37
Some of the examples are extracted from [github.com/microsoft/promptflow/examples](https://github.com/microsoft/promptflow/tree/main/examples) to guide you through the basic usage of Prompt flow.
A chat flow defined using function with minimal code. It demonstrates the minimal code to have a chat flow.
71
+
72
+
Tracing feature is available in Prompt flow, which allows you to trace the flow of the conversation. You can see its implementation in this example.
73
+
Details are available in [Tracing](https://microsoft.github.io/promptflow/how-to-guides/tracing/index.html)
74
+
41
75
**Run as normal Python script**
42
76
43
77
```shell
@@ -67,6 +101,8 @@ $ pf run create \
67
101
--stream
68
102
```
69
103
104
+
`--column-mapping` is used to map the data in the JSONL file to the flow. For more details, refer to [Use column mapping](https://microsoft.github.io/promptflow/how-to-guides/run-and-evaluate-a-flow/use-column-mapping.html).
105
+
70
106
### playground_chat
71
107
72
108
```shell
@@ -79,30 +115,6 @@ $ pf flow init \
79
115
80
116
$ cd playground_chat
81
117
82
-
# Set parameters
83
-
$ CONNECTION_NAME=open_ai_connection
84
-
$ AZURE_OPENAI_KEY=<your_api_key>
85
-
$ AZURE_OPENAI_ENDPOINT=<your_api_endpoint>
86
-
87
-
# List connections
88
-
$ pf connection list
89
-
90
-
91
-
# Delete connection (if needed)
92
-
$ pf connection delete \
93
-
--name $CONNECTION_NAME
94
-
95
-
# Create connection
96
-
$ pf connection create \
97
-
--file azure_openai.yaml \
98
-
--set api_key=$AZURE_OPENAI_KEY \
99
-
--set api_base=$AZURE_OPENAI_ENDPOINT \
100
-
--name $CONNECTION_NAME
101
-
102
-
# Show connection
103
-
$ pf connection show \
104
-
--name $CONNECTION_NAME
105
-
106
118
# Interact with chat flow
107
119
$ pf flow test \
108
120
--flow . \
@@ -230,14 +242,38 @@ $ pf run create \
230
242
$ pf run show-details --name $RUN_NAME
231
243
```
232
244
245
+
[Tutorial: How prompt flow helps on quality improvement](https://github.com/microsoft/promptflow/blob/main/examples/tutorials/flow-fine-tuning-evaluation/promptflow-quality-improvement.md) provides a detailed guide on how to use Prompt flow to improve the quality of your LLM applications.
This example shows how to evaluate the answer of math questions, which can compare the output results with the standard answers numerically.
236
250
Details are available in the [eval-chat-math/README.md](./eval-chat-math/README.md).
237
251
To understand how to operate the flow in VS Code, you can refer to the [Build your high quality LLM apps with Prompt flow](https://www.youtube.com/watch?v=gcIe6nk2gA4).
238
252
This video shows how to evaluate the answer of math questions and guide you to tune the prompts using variants.
239
253
240
-
<!-- TODO: rag, tracing, deployments -->
254
+
### flex_flow_langchain
255
+
256
+
To guide you through working with LangChain, we provide an example flex flow that
0 commit comments