-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/microsoft/promptflow into n…
…irovins/add_chat_evaluation
- Loading branch information
Showing
102 changed files
with
1,365 additions
and
781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Chat with a flow | ||
|
||
:::{admonition} Experimental feature | ||
This is an experimental feature, and may change at any time. Learn [more](../faq.md#stable-vs-experimental). | ||
::: | ||
|
||
Prompt flow provides the chat window feature to facilitate an interactive chat experience within a local environment. | ||
You can engage in conversation with the flow and view its responses directly within the chat window. | ||
|
||
## Initiating a chat window | ||
There are two methods to open a chat window: executing the prompt flow CLI command or clicking the | ||
`Open test chat page` button when viewing a flow YAML file in the Prompt flow VS Code extension. | ||
|
||
::::{tab-set} | ||
:::{tab-item} CLI | ||
:sync: CLI | ||
|
||
The following CLI command allows you to trigger a chat window. | ||
```shell | ||
pf flow test --flow . --ui | ||
``` | ||
Running the above command will yield the following example output: | ||
``` | ||
Starting prompt flow service... | ||
... | ||
You can begin chat flow on http://127.0.0.1:**/v1.0/ui/chat?flow=*** | ||
``` | ||
The browser page corresponding to the chat URL will automatically open and direct the user to a chat page | ||
corresponding to the passed flow: | ||
![chat-basic-dag-flow](../../media/how-to-guides/chat-with-a-flow/chat-basic-dag-flow.png) | ||
::: | ||
|
||
:::{tab-item} VS Code Extension | ||
:sync: VSC | ||
|
||
Click the `Open test chat page` button while viewing a flow YAML file in the Prompt flow VS Code extension, and you | ||
will be directed to the chat page. | ||
![start-chat-window-in-vsc](../../media/how-to-guides/chat-with-a-flow/start-chat-window-in-vsc.png) | ||
::: | ||
:::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72.9 KB
docs/media/how-to-guides/chat-with-a-flow/start-chat-window-in-vsc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,13 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Getting started with flex flow in Azure\n", | ||
"\n", | ||
"# Getting started with flex flow in Azure" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", | ||
"\n", | ||
"- Write LLM application using notebook and visualize the trace of your application.\n", | ||
|
@@ -239,8 +244,13 @@ | |
], | ||
"metadata": { | ||
"build_doc": { | ||
"author": [ | ||
"[email protected]", | ||
"[email protected]" | ||
], | ||
"category": "azure", | ||
"section": "Flow" | ||
"section": "Flow", | ||
"weight": 10 | ||
}, | ||
"description": "A quickstart tutorial to run a flex flow and evaluate it in azure.", | ||
"kernelspec": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,13 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Getting started with flex flow\n", | ||
"# Getting started with flex flow" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"\n", | ||
"**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", | ||
"\n", | ||
|
@@ -310,8 +316,13 @@ | |
], | ||
"metadata": { | ||
"build_doc": { | ||
"author": [ | ||
"[email protected]", | ||
"[email protected]" | ||
], | ||
"category": "local", | ||
"section": "Flow" | ||
"section": "Flow", | ||
"weight": 10 | ||
}, | ||
"description": "A quickstart tutorial to run a flex flow and evaluate it.", | ||
"kernelspec": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,13 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Chat with PDF in Azure\n", | ||
"# Chat with PDF in Azure" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"\n", | ||
"This is a simple flow that allow you to ask questions about the content of a PDF file and get answers.\n", | ||
"You can run the flow with a URL to a PDF file and question as argument.\n", | ||
|
@@ -290,8 +296,13 @@ | |
], | ||
"metadata": { | ||
"build_doc": { | ||
"author": [ | ||
"[email protected]", | ||
"[email protected]" | ||
], | ||
"category": "azure", | ||
"section": "Flow" | ||
"section": "Flow", | ||
"weight": 30 | ||
}, | ||
"description": "A tutorial of chat-with-pdf flow that executes in Azure AI", | ||
"kernelspec": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Chat with PDF - test, evaluation and experimentation" | ||
] | ||
}, | ||
{ | ||
"attachments": {}, | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Chat with PDF - test, evaluation and experimentation\n", | ||
"\n", | ||
"We will walk you through how to use prompt flow Python SDK to test, evaluate and experiment with the \"Chat with PDF\" flow.\n", | ||
"\n", | ||
|
@@ -303,8 +309,13 @@ | |
], | ||
"metadata": { | ||
"build_doc": { | ||
"author": [ | ||
"[email protected]", | ||
"[email protected]" | ||
], | ||
"category": "local", | ||
"section": "Flow" | ||
"section": "Flow", | ||
"weight": 30 | ||
}, | ||
"description": "A tutorial of chat-with-pdf flow that allows user ask questions about the content of a PDF file and get answers", | ||
"kernelspec": { | ||
|
@@ -322,7 +333,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.17" | ||
"version": "3.9.19" | ||
} | ||
}, | ||
"nbformat": 4, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,13 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Getting started with prompty\n", | ||
"# Getting started with prompty" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"\n", | ||
"**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", | ||
"\n", | ||
|
@@ -275,8 +281,13 @@ | |
], | ||
"metadata": { | ||
"build_doc": { | ||
"author": [ | ||
"[email protected]", | ||
"[email protected]" | ||
], | ||
"category": "local", | ||
"section": "Prompty" | ||
"section": "Prompty", | ||
"weight": 10 | ||
}, | ||
"description": "A quickstart tutorial to run a prompty and evaluate it.", | ||
"kernelspec": { | ||
|
Oops, something went wrong.