Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates saving text data from AI interactions in various formats for documentation and analysis.
The IF_SaveText
node is designed to facilitate the saving of text data generated during AI interactions. This node is particularly useful for AI artists who need to document and preserve the questions, responses, and any negative inputs from their AI models. By using this node, you can easily save these interactions in various file formats such as CSV, TXT, or JSON, ensuring that your data is well-organized and accessible for future reference or analysis. The node offers flexibility in how the data is saved, allowing you to create new files, overwrite existing ones, or append to existing files. This functionality is essential for maintaining a comprehensive record of your AI interactions, which can be invaluable for iterative design processes, debugging, or sharing with collaborators.
This parameter takes the input question as a string. It is a required field and represents the question posed to the AI model. The input should be a clear and concise question that you want the AI to respond to. There are no minimum or maximum values, but it should be a meaningful string.
This parameter takes the AI's response as a string. It is a required field and represents the answer generated by the AI model in response to the question_input
. The input should be the AI's output text. There are no minimum or maximum values, but it should be a meaningful string.
This parameter takes any negative input or feedback as a string. It is a required field and represents any negative aspects or corrections related to the AI's response. The input should be a clear and concise string indicating what was wrong or needs improvement. There are no minimum or maximum values, but it should be a meaningful string.
This optional boolean parameter determines whether the text data should be saved to a file. The default value is False
. If set to True
, the node will save the interaction data to a file in the specified format and mode.
This optional parameter specifies the format in which the text data should be saved. The available options are csv
, txt
, and json
. The default format is txt
. This parameter allows you to choose the most suitable format for your needs, whether it's for easy readability (txt
), structured data (csv
), or hierarchical data (json
).
This optional parameter determines how the text data should be saved to the file. The available options are create
, overwrite
, and append
. The default mode is create
. Create
will generate a new file, overwrite
will replace the existing file, and append
will add the new data to the end of the existing file.
This output parameter returns the original question input. It is a string that represents the question posed to the AI model. This output is useful for verifying and documenting the input question.
This output parameter returns the AI's response. It is a string that represents the answer generated by the AI model. This output is useful for verifying and documenting the AI's response.
This output parameter returns the negative input or feedback. It is a string that represents any negative aspects or corrections related to the AI's response. This output is useful for verifying and documenting the feedback provided.
This output parameter returns a formatted string that includes the turn ID, question, response, and negative input. It is a comprehensive record of the interaction, useful for documentation and analysis. The format is: ID: <turn_id>
\nQuestion: <question_input>
\nResponse: <response_input>
\nNegative: <negative_input>
.
save_file
parameter set to True
and choose the appropriate file_format
and save_mode
based on your needs.append
mode in save_mode
to continuously add new interactions to an existing file, creating a comprehensive log of your AI interactions.txt
format. For structured data that can be easily imported into spreadsheets, use the csv
format. For hierarchical data that may include nested information, use the json
format.file_format
parameter is set to one of the supported formats: csv
, txt
, or json
.save_mode
parameter is set to one of the supported modes: create
, overwrite
, or append
.© Copyright 2024 RunComfy. All Rights Reserved.