Is there a way of using variabes in prompt retievers or agent system messages? #2196
Replies: 2 comments 1 reply
-
(Edit: Naa, did not asked it to use the docs, the attached conversation seems to be more grounded in facts!?) Just for kicks I let my Flowise Dev Mrs. Acid Burn answer the question - please rate it! ;) Mrs. Burn: Using Context or Metadata
Implementing with Flowise While directly using variables like you described might not work out of the box due to the current limitations, here's a conceptual approach to achieve similar functionality within Flowise:
Practical Example: Assuming you want to pass a username to a prompt dynamically, you might consider setting up an external API or a database call that retrieves the username based on a session ID or other identifiers. Then, use functions.requests_get or functions.requests_post to fetch the username right before you make the call that needs this information, inserting it into the prompt or metadata dynamically. This approach requires some setup outside the immediate Flowise tooling (like an external database or API) but allows you to dynamically manage and pass variables between different components of your Flowise setup. Remember, the specific implementation details will depend on your exact requirements and the capabilities of the Flowise platform at the time of your project. Always refer to the latest Flowise documentation for the most current features and functionalities to support your use case. Me: Mrs Burn: Prompt Nodes vs. Agent Nodes
Workarounds and Strategies Given these constraints, here are some strategies to work around the limitations and still achieve a level of dynamic interaction and context passing:
Practical Consideration When designing your flows, consider the limitations and capabilities of each node type. Planning your flow architecture around these constraints can often provide a pathway to achieve the desired outcomes, even if it requires a more creative approach to workflow design. It's also worth staying updated with Flowise's platform developments. New features and enhancements are regularly added, which might offer more elegant solutions to these challenges over time. If you're encountering specific limitations with the current set of tools and nodes available in Flowise, providing feedback to the development team can also help guide future updates to better accommodate these use case |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I like to add for an example a user name to a prompt by using a global variable or letting other prompted experts know about the chat-history - is there a way of using variables in prompt retrievers or system messages of agents? At the moment I get a "variable 'User' not known" if I give it a try..
Thanks!
Martin
Beta Was this translation helpful? Give feedback.
All reactions