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

Add PromptOutput Node for corpus collection #2601

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mokeyish
Copy link
Contributor

@mokeyish mokeyish commented Jun 7, 2024

The prompt of flowise are dynamically generated by RAG.

In order to obtain consistent corpus, this node is added to collect corpus for subsequent model fine-tuning training.

@HenryHengZJ
Copy link
Contributor

do you have a flow or example template?

@mokeyish mokeyish marked this pull request as draft June 14, 2024 04:19
@mokeyish mokeyish changed the title Add PromptOuput Node for corpus collection Add PromptOutput Node for corpus collection Jun 14, 2024
@mokeyish
Copy link
Contributor Author

mokeyish commented Jun 14, 2024

do you have a flow or example template?

I hope to have an IfElse node that receives overideConfig to control whether to run this node and only outputs the dynamically generated Prompt. However, IfElse is not flexible enough and needs to be improved first, so I turn it into a draft first.

If you have a better, more convenient solution, please let me know.

@mokeyish
Copy link
Contributor Author

@HenryHengZJ Here is the chatflow:
图片

I add forwardTrue and forwardFalse(type any) to IfElseFunction's input. IfElseFunction will disable the following branch that not match condition.

But I feel like this solution is not very good.

It should be something like 'if' in
https://docs.github.com/zh/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsif

@HenryHengZJ
Copy link
Contributor

will hold on this for now, we are releasing sequential agents which might be able to solve your needs

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

Successfully merging this pull request may close these issues.

2 participants