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
Copy file name to clipboardExpand all lines: articles/machine-learning/prompt-flow/how-to-integrate-with-langchain.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,17 @@ Prompt Flow can also be used together with the [LangChain](https://python.langch
21
21
:::image type="content" source="./media/how-to-integrate-with-langchain/flow.png" alt-text="Screenshot of flows with the LangChain python library. " lightbox = "./media/how-to-integrate-with-langchain/flow.png":::
22
22
23
23
We introduce the following sections:
24
-
*[Benefits of LangChain integration](#benefits-of-langchain-integration)
25
-
*[How to convert LangChain code into flow](#how-to-convert-langchain-code-into-flow)
26
-
*[Prerequisites for environment and runtime](#prerequisites-for-environment-and-runtime)
27
-
*[Convert credentials to prompt flow connection](#convert-credentials-to-prompt-flow-connection)
28
-
*[LangChain code conversion to a runnable flow](#langchain-code-conversion-to-a-runnable-flow)
24
+
-[Integrate with LangChain](#integrate-with-langchain)
25
+
-[Benefits of LangChain integration](#benefits-of-langchain-integration)
26
+
-[How to convert LangChain code into flow](#how-to-convert-langchain-code-into-flow)
27
+
-[Prerequisites for environment and runtime](#prerequisites-for-environment-and-runtime)
28
+
-[Create a customized environment](#create-a-customized-environment)
29
+
-[Convert credentials to prompt flow connection](#convert-credentials-to-prompt-flow-connection)
30
+
-[Create a connection](#create-a-connection)
31
+
-[LangChain code conversion to a runnable flow](#langchain-code-conversion-to-a-runnable-flow)
32
+
-[Convert LangChain code to flow structure](#convert-langchain-code-to-flow-structure)
33
+
-[Configure connection, input and output](#configure-connection-input-and-output)
34
+
-[Next steps](#next-steps)
29
35
30
36
## Benefits of LangChain integration
31
37
@@ -55,7 +61,7 @@ Then you can create a [prompt flow runtime](./how-to-create-manage-runtime.md) b
55
61
56
62
### Convert credentials to prompt flow connection
57
63
58
-
When developing your LangChain code, you might have [defined environment variables to store your credentials, such as the AzureOpenAI API KEY](https://python.langchain.com/docs/integrations/llms/azure_openai_example), which is necessary for invoking the AzureOpenAI model.
64
+
When developing your LangChain code, you might have [defined environment variables to store your credentials, such as the AzureOpenAI API KEY](https://python.langchain.com/docs/integrations/llms/azure_openai), which is necessary for invoking the AzureOpenAI model.
59
65
60
66
:::image type="content" source="./media/how-to-integrate-with-langchain/langchain-env-variables.png" alt-text="Screenshot of Azure OpenAI example in LangChain. " lightbox = "./media/how-to-integrate-with-langchain/langchain-env-variables.png":::
0 commit comments