Back to Chat with your data README
The Chat With Your Data Solution Accelerator has included prompt flow as an orchestration strategy as an alternative, low code option. This allows you to modify and experiment with the orchestration using Azure Machine Learning studio. To learn more about prompt flow see: Azure Machine Learning PromptFlow.
⚠️ This feature is still in development and not ready for use
⚠️ It is required to deploy the accelerator usingazd
to utilize this feature
The implementation does not currently support enabling features such as integrated vectorization or advanced image processing along side setting the orchestration strategy to prompt flow. It is intended to be a simple use case that you can then take and modify for your use case.
To configure prompt flow as your orchestration strategy, execute the following commands:
azd env set ORCHESTRATION_STRATEGY prompt_flow
azd up
These commands will provision the necessary Azure Machine Learning resources and establish the flow in ../infra/prompt_flow/cwyd/ as a managed endpoint.
Upon first accessing the deployed flow in Azure Machine Learning Studio, you may encounter errors as shown below:
This is a known issue and can be resolved by initiating a compute session. Once the session starts, refresh the flow.
Follow these steps to update the flow:
- Navigate to the flow in Azure Machine Learning Studio and make the necessary changes
- Download the updated flow files to the ../infra/prompt_flow/cwyd/ directory by clicking the download button in the Files tab
- Replace the content of
flow.dag.template.yaml
with your new flow from theflow.dag.yaml
file - In the
flow.dag.template.yaml
file, locate theinputs.mlindex_content
section for thelookup
node and replace the following valuesembeddings.api_base
: Replace with<openai_api_base>
embeddings.connection.id
: Replace with<openai_connection_id>
embeddings.deployment
: Replace with<openai_embedding_model>
embeddings.model
: Replace with<openai_embedding_model>
index.connection.id
: Replace with<aisearch_connection_id>
index.endpoint
: Replace with<aisearch_endpoint>
index.index
: Replace with<aisearch_index>
- To apply the changes, run either
azd provision
orazd up