cleanup
This commit is contained in:
parent
e4cfcbc201
commit
f7ae63e1ca
1 changed files with 4 additions and 4 deletions
|
|
@ -54,7 +54,7 @@ Alternatively, go to [HuggingFace Spaces](https://docs.langflow.org/getting-star
|
||||||
This flow creates a basic chatbot with the **Chat Input**, **Prompt**, **OpenAI**, and **Chat Output** components.
|
This flow creates a basic chatbot with the **Chat Input**, **Prompt**, **OpenAI**, and **Chat Output** components.
|
||||||
This chatbot is augmented with the **Files** component, which loads a file from your local machine into the **Prompt** component as `{Document}`.
|
This chatbot is augmented with the **Files** component, which loads a file from your local machine into the **Prompt** component as `{Document}`.
|
||||||
The **Prompt** component is instructed to answer questions based on the contents of `{Document}`.
|
The **Prompt** component is instructed to answer questions based on the contents of `{Document}`.
|
||||||
Including a file with the prompt gives the **OpenAI** component context it may not otherwise have.
|
Including a file with the prompt gives the **OpenAI** component context it may not otherwise have access to.
|
||||||
|
|
||||||
4. To create an environment variable for the **OpenAI** component, in the **OpenAI API Key** field, click the **Globe** button, and then click **Add New Variable**.
|
4. To create an environment variable for the **OpenAI** component, in the **OpenAI API Key** field, click the **Globe** button, and then click **Add New Variable**.
|
||||||
1. In the **Variable Name** field, enter `openai_api_key`.
|
1. In the **Variable Name** field, enter `openai_api_key`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue