Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I save global variables using Promptflow #3198

Open
dobahoang opened this issue May 10, 2024 · 1 comment
Open

How can I save global variables using Promptflow #3198

dobahoang opened this issue May 10, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@dobahoang
Copy link

dobahoang commented May 10, 2024

How can I save global variables using PromptFlow? Currently, I can only see the variable "chat_history".

Before calling the API, I need to collect some information such as the user's name, address, and phone number. Each time a user answers a question, the corresponding information is stored in a variable.

On the next pass, I want the chatbot to check the previous values the user has provided before deciding to call the API or ask the user for missing parameters. However, I have not found any documentation mentioning this.

Does anyone have any advice or suggestions for me?

@dobahoang dobahoang added the enhancement New feature or request label May 10, 2024
@D-W- D-W- self-assigned this May 11, 2024
@D-W-
Copy link
Contributor

D-W- commented May 11, 2024

Hi @dobahoang , currently we don't support storing variables as intermediate data between flow runs. But for chat history, we'll add a doc on our recommended way to save/load it. I'll update here once the PR's out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants