![license: MIT](https://camo.githubusercontent.com/40025a6d2b8d4fd3e4afeecd25c375a1019c364426472dad69ffe1fee9890bfe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d707572706c652e737667)
Install dependencies
- Bootstrap your python environment.
- e.g: create a new conda environment.
conda create -n pf-examples python=3.9
.
- install required packages in python environment :
pip install -r requirements.txt
- show installed sdk:
pip show promptflow
Quick start
path |
status |
description |
chat-with-pdf |
![samples_tutorials_e2e_development_chat_with_pdf](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml/badge.svg?branch=main) |
Retrieval Augmented Generation (or RAG) has become a prevalent pattern to build intelligent application with Large Language Models (or LLMs) since it can infuse external knowledge into the model, which is not trained with those up-to-date or proprietary information |
azure-app-service |
![samples_tutorials_flow_deploy_azure_app_service](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_flow_deploy_azure_app_service.yml/badge.svg?branch=main) |
This example demos how to deploy a flow using Azure App Service |
docker |
![samples_tutorials_flow_deploy_docker](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_flow_deploy_docker.yml/badge.svg?branch=main) |
This example demos how to deploy flow as a docker app |
kubernetes |
![samples_tutorials_flow_deploy_kubernetes](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_flow_deploy_kubernetes.yml/badge.svg?branch=main) |
This example demos how to deploy flow as a Kubernetes app |
path |
status |
description |
autonomous-agent |
![samples_flows_standard_autonomous_agent](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_autonomous_agent.yml/badge.svg?branch=main) |
This is a flow showcasing how to construct a AutoGPT agent with promptflow to autonomously figures out how to apply the given functions to solve the goal, which is film trivia that provides accurate and up-to-date information about movies, directors, actors, and more in this sample |
basic |
![samples_flows_standard_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_basic.yml/badge.svg?branch=main) |
A basic standard flow using custom python tool that calls Azure OpenAI with connection info stored in environment variables |
basic-with-builtin-llm |
![samples_flows_standard_basic_with_builtin_llm](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_basic_with_builtin_llm.yml/badge.svg?branch=main) |
A basic standard flow that calls Azure OpenAI with builtin llm tool |
basic-with-connection |
![samples_flows_standard_basic_with_connection](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_basic_with_connection.yml/badge.svg?branch=main) |
A basic standard flow that using custom python tool calls Azure OpenAI with connection info stored in custom connection |
conditional-flow-for-if-else |
![samples_flows_standard_conditional_flow_for_if_else](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_conditional_flow_for_if_else.yml/badge.svg?branch=main) |
This example is a conditional flow for if-else scenario |
conditional-flow-for-switch |
![samples_flows_standard_conditional_flow_for_switch](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_conditional_flow_for_switch.yml/badge.svg?branch=main) |
This example is a conditional flow for switch scenario |
customer-intent-extraction |
![samples_flows_standard_customer_intent_extraction](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_customer_intent_extraction.yml/badge.svg?branch=main) |
This sample is using OpenAI chat model(ChatGPT/GPT4) to identify customer intent from customer's question |
flow-with-additional-includes |
![samples_flows_standard_flow_with_additional_includes](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_flow_with_additional_includes.yml/badge.svg?branch=main) |
User sometimes need to reference some common files or folders, this sample demos how to solve the problem using additional_includes |
flow-with-symlinks |
![samples_flows_standard_flow_with_symlinks](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_flow_with_symlinks.yml/badge.svg?branch=main) |
User sometimes need to reference some common files or folders, this sample demos how to solve the problem using symlinks |
gen-docstring |
![samples_flows_standard_gen_docstring](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_gen_docstring.yml/badge.svg?branch=main) |
This example can help you automatically generate Python code's docstring and return the modified code |
maths-to-code |
![samples_flows_standard_maths_to_code](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_maths_to_code.yml/badge.svg?branch=main) |
Math to Code is a project that utilizes the power of the chatGPT model to generate code that models math questions and then executes the generated code to obtain the final numerical answer |
named-entity-recognition |
![samples_flows_standard_named_entity_recognition](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_named_entity_recognition.yml/badge.svg?branch=main) |
A flow that perform named entity recognition task |
web-classification |
![samples_flows_standard_web_classification](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_standard_web_classification.yml/badge.svg?branch=main) |
This is a flow demonstrating multi-class classification with LLM |
path |
status |
description |
basic-chat |
![samples_flows_chat_basic_chat](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_chat_basic_chat.yml/badge.svg?branch=main) |
This example shows how to create a basic chat flow |
chat-with-pdf |
![samples_flows_chat_chat_with_pdf](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_chat_chat_with_pdf.yml/badge.svg?branch=main) |
This is a simple flow that allow you to ask questions about the content of a PDF file and get answers |
chat-with-wikipedia |
![samples_flows_chat_chat_with_wikipedia](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_chat_chat_with_wikipedia.yml/badge.svg?branch=main) |
This flow demonstrates how to create a chatbot that can remember previous interactions and use the conversation history to generate next message |
path |
status |
description |
connections |
![samples_connections](https://github.com/microsoft/promptflow/actions/workflows/samples_connections.yml/badge.svg?branch=main) |
This folder contains example YAML files for creating connection using pf cli |
We welcome contributions and suggestions! Please see the contributing guidelines for details.
This project has adopted the Microsoft Open Source Code of Conduct. Please see the code of conduct for details.