From 2f1b6d9938f15052a6b1f79e24e2c4e905eacbd6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 19 Oct 2023 17:15:12 +0000 Subject: [PATCH] auto-organize --- .domino/compiled_metadata.json | 438 ++++++++++++++++----------------- .domino/dependencies_map.json | 8 +- 2 files changed, 223 insertions(+), 223 deletions(-) diff --git a/.domino/compiled_metadata.json b/.domino/compiled_metadata.json index 350a2e2..31707b9 100644 --- a/.domino/compiled_metadata.json +++ b/.domino/compiled_metadata.json @@ -1,42 +1,54 @@ { - "PromptCreatorForImageGeneratorPiece": { - "name": "PromptCreatorForImageGeneratorPiece", + "TextGeneratorPiece": { + "name": "TextGeneratorPiece", "dependency": { "dockerfile": "Dockerfile_01", "requirements_file": null }, - "tags": [], + "tags": [ + "openai", + "text generation" + ], "style": { - "node_label": "Prompt Creator for Image Generator AI", + "node_label": "Text Generator", "node_type": "default", "node_style": { "backgroundColor": "#ebebeb" }, "useIcon": true, - "icon_class_name": "fas fa-terminal", + "icon_class_name": "fa-solid:i-cursor", "iconStyle": { "cursor": "pointer" } }, - "description": "This Piece utilizes OpenAI to generates a prompt to pass to an image generator AI.", + "description": "This Piece allows you to create a custom prompt with your own arguments and send it to OpenAI for text generation.", "input_schema": { "title": "InputModel", - "description": "PromptCreatorForImageGeneratorPiece input model", + "description": "TextGeneratorPiece Input model", "type": "object", "properties": { - "context": { - "title": "Context", - "description": "The context to generate an image from", + "template": { + "title": "Template", + "description": "Compose a prompt template using the {arg_name} notation to insert arguments.", + "default": "What is the capital city of {country}?", "type": "string" }, - "art_style": { - "title": "Art Style", - "description": "The art style to generate an image from. Your imagination is the limit!", - "default": "You know many art styles, so you always vary a lot on your suggestions!", - "type": "string" + "prompt_args": { + "title": "Prompt Args", + "description": "List of arguments to insert into the prompt.", + "default": [ + { + "arg_name": "country", + "arg_value": "Brazil" + } + ], + "type": "array", + "items": { + "$ref": "#/definitions/InnerArgModel" + } }, "output_type": { - "description": "The type of output to return", + "description": "The type of output to return.", "default": "string", "allOf": [ { @@ -45,7 +57,7 @@ ] }, "openai_model": { - "description": "OpenAI model to bring your character to life", + "description": "OpenAI model name.", "default": "gpt-3.5-turbo", "allOf": [ { @@ -55,26 +67,41 @@ }, "completion_max_tokens": { "title": "Completion Max Tokens", - "description": "The maximum number of tokens to generate the prompt.", - "default": 350, + "description": "The maximum number of tokens in the generated text.", + "default": 500, "type": "integer" }, "temperature": { "title": "Temperature", - "description": "Temperature of the model, between 0 (more precise) and 1 (more creative)", - "default": 0.7, + "description": "Temperature of the model, between 0 (more precise) and 1 (more creative).", + "default": 0.3, "exclusiveMinimum": 0, - "maximum": 1, + "exclusiveMaximum": 1, "type": "number" } }, - "required": [ - "context" - ], "definitions": { + "InnerArgModel": { + "title": "InnerArgModel", + "description": "Inner argument model to use in the prompt args", + "type": "object", + "properties": { + "arg_name": { + "title": "Arg Name", + "description": "Name of the prompt argument.", + "from_upstream": "never", + "type": "string" + }, + "arg_value": { + "title": "Arg Value", + "description": "Value of the prompt argument.", + "type": "string" + } + } + }, "OutputTypeType": { "title": "OutputTypeType", - "description": "Output type", + "description": "Output type for the generated text", "enum": [ "file", "string", @@ -99,17 +126,17 @@ }, "output_schema": { "title": "OutputModel", - "description": "PromptCreatorForImageGeneratorPiece output model", + "description": "TextGeneratorPiece Output model", "type": "object", "properties": { - "generated_prompt_string": { - "title": "Generated Prompt String", - "description": "The generated prompt to pass to an image generator AI", + "string_generated_text": { + "title": "String Generated Text", + "description": "The generated text as a string", "type": "string" }, - "generated_prompt_file_path": { - "title": "Generated Prompt File Path", - "description": "The path to the generated prompt, in .txt format", + "file_path_generated_text": { + "title": "File Path Generated Text", + "description": "The path to text file containing generated text", "format": "file-path", "type": "string" } @@ -117,7 +144,7 @@ }, "secrets_schema": { "title": "SecretsModel", - "description": "PromptCreatorForImageGeneratorPiece secrets model", + "description": "TextGeneratorPiece Secrets model", "type": "object", "properties": { "OPENAI_API_KEY": { @@ -130,53 +157,50 @@ "OPENAI_API_KEY" ] }, - "source_url": "https://github.com/Tauffer-Consulting/openai_domino_pieces/tree/main/pieces/PromptCreatorForImageGeneratorPiece" + "source_url": "https://github.com/Tauffer-Consulting/openai_domino_pieces/tree/main/pieces/TextGeneratorPiece" }, - "AudioTranscriptionPiece": { - "name": "AudioTranscriptionPiece", + "TextSummarizerPiece": { + "name": "TextSummarizerPiece", "dependency": { "dockerfile": "Dockerfile_01", "requirements_file": null }, "tags": [ - "OpenAI" + "text", + "summarizer", + "openai" ], "style": { - "node_label": "OpenAI Audio Transcript", + "node_label": "Text Summarizer", "node_type": "default", "node_style": { "backgroundColor": "#ebebeb" }, "useIcon": true, - "icon_class_name": "fas fa-headset", + "icon_class_name": "fa-solid:align-right", "iconStyle": { "cursor": "pointer" } }, - "description": "This Piece uses the OpenAI API to extract text transcripts from audio.", - "container_resources": { - "requests": { - "cpu": "100m", - "memory": "128Mi" - }, - "limits": { - "cpu": "500m", - "memory": "512Mi" - } - }, + "description": "This Piece runs a text summarizer using OpenAI API.", "input_schema": { "title": "InputModel", - "description": "AudioTranscriptPiece input model", + "description": "TextSummarizerPiece Input model", "type": "object", "properties": { - "audio_file_path": { - "title": "Audio File Path", - "description": "The path to the audio file to process.", + "text": { + "title": "Text", + "description": "Text to summarize", + "type": "string" + }, + "text_file_path": { + "title": "Text File Path", + "description": "Use it only if not using text field. File path to the text to summarize", "format": "file-path", "type": "string" }, "output_type": { - "description": "The type of output for the result text", + "description": "The type of output to return", "default": "string", "allOf": [ { @@ -184,65 +208,92 @@ } ] }, + "openai_model": { + "description": "OpenAI model name to use for summarization", + "default": "gpt-3.5-turbo", + "allOf": [ + { + "$ref": "#/definitions/LLMModelType" + } + ] + }, + "chunk_size": { + "title": "Chunk Size", + "description": "Chunk size, measured in tokens, of each pre-summary chunk", + "default": 1000, + "type": "integer" + }, + "chunk_overlap_rate": { + "title": "Chunk Overlap Rate", + "description": "The percentage of overlap between each chunk", + "default": 0.2, + "type": "number" + }, + "completion_max_tokens": { + "title": "Completion Max Tokens", + "description": "The maximum number of tokens to generate in the summary.", + "default": 500, + "type": "integer" + }, "temperature": { "title": "Temperature", - "description": "What sampling temperature to use, between 0 and 1", - "default": 0.1, - "exclusiveMinimum": 0.0, - "maximum": 1, + "description": "Temperature of the model, between 0 (more precise) and 1 (more creative)", + "default": 0.2, "type": "number" } }, - "required": [ - "audio_file_path" - ], "definitions": { "OutputTypeType": { "title": "OutputTypeType", - "description": "Output type for the result text", + "description": "Output type for the completion result", "enum": [ "file", "string", "file_and_string" ], "type": "string" + }, + "LLMModelType": { + "title": "LLMModelType", + "description": "OpenAI model type", + "enum": [ + "gpt-3.5-turbo", + "gpt-4", + "text-ada-001", + "text-babbage-001", + "text-curie-001", + "text-davinci-003" + ], + "type": "string" } } }, "output_schema": { "title": "OutputModel", - "description": "AudioTranscriptPiece output model", + "description": "TextSummarizerPiece Output model", "type": "object", "properties": { - "message": { - "title": "Message", - "description": "Output message to log", - "type": "string" - }, - "string_transcription_result": { - "title": "String Transcription Result", - "description": "The result transcription text as a string.", + "string_summarized_text": { + "title": "String Summarized Text", + "description": "summarized text", "type": "string" }, - "file_path_transcription_result": { - "title": "File Path Transcription Result", - "description": "The result transcription text as a file path.", + "file_path_summarized_text": { + "title": "File Path Summarized Text", + "description": "Path to summarized text file", "format": "file-path", "type": "string" } - }, - "required": [ - "message" - ] + } }, "secrets_schema": { "title": "SecretsModel", - "description": "AudioTranscriptPiece secret model", + "description": "TextSummarizerPiece Secrets model", "type": "object", "properties": { "OPENAI_API_KEY": { "title": "Openai Api Key", - "description": "OpenAI API key", + "description": "Your OpenAI API key", "type": "string" } }, @@ -250,7 +301,7 @@ "OPENAI_API_KEY" ] }, - "source_url": "https://github.com/Tauffer-Consulting/openai_domino_pieces/tree/main/pieces/AudioTranscriptionPiece" + "source_url": "https://github.com/Tauffer-Consulting/openai_domino_pieces/tree/main/pieces/TextSummarizerPiece" }, "ImageGeneratorPiece": { "name": "ImageGeneratorPiece", @@ -266,7 +317,7 @@ "backgroundColor": "#ebebeb" }, "useIcon": true, - "icon_class_name": "fas fa-image", + "icon_class_name": "fa-solid:image", "iconStyle": { "cursor": "pointer" } @@ -381,56 +432,44 @@ }, "source_url": "https://github.com/Tauffer-Consulting/openai_domino_pieces/tree/main/pieces/ImageGeneratorPiece" }, - "TextGeneratorPiece": { - "name": "TextGeneratorPiece", + "PromptCreatorForImageGeneratorPiece": { + "name": "PromptCreatorForImageGeneratorPiece", "dependency": { "dockerfile": "Dockerfile_01", "requirements_file": null }, - "tags": [ - "openai", - "text generation" - ], + "tags": [], "style": { - "node_label": "Text Generator", + "node_label": "Prompt Creator for Image Generator AI", "node_type": "default", "node_style": { "backgroundColor": "#ebebeb" }, "useIcon": true, - "icon_class_name": "fas fa-i-cursor", + "icon_class_name": "fa-solid:terminal", "iconStyle": { "cursor": "pointer" } }, - "description": "This Piece allows you to create a custom prompt with your own arguments and send it to OpenAI for text generation.", + "description": "This Piece utilizes OpenAI to generates a prompt to pass to an image generator AI.", "input_schema": { "title": "InputModel", - "description": "TextGeneratorPiece Input model", + "description": "PromptCreatorForImageGeneratorPiece input model", "type": "object", "properties": { - "template": { - "title": "Template", - "description": "Compose a prompt template using the {arg_name} notation to insert arguments.", - "default": "What is the capital city of {country}?", + "context": { + "title": "Context", + "description": "The context to generate an image from", "type": "string" }, - "prompt_args": { - "title": "Prompt Args", - "description": "List of arguments to insert into the prompt.", - "default": [ - { - "arg_name": "country", - "arg_value": "Brazil" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/InnerArgModel" - } + "art_style": { + "title": "Art Style", + "description": "The art style to generate an image from. Your imagination is the limit!", + "default": "You know many art styles, so you always vary a lot on your suggestions!", + "type": "string" }, "output_type": { - "description": "The type of output to return.", + "description": "The type of output to return", "default": "string", "allOf": [ { @@ -439,7 +478,7 @@ ] }, "openai_model": { - "description": "OpenAI model name.", + "description": "OpenAI model to bring your character to life", "default": "gpt-3.5-turbo", "allOf": [ { @@ -449,41 +488,26 @@ }, "completion_max_tokens": { "title": "Completion Max Tokens", - "description": "The maximum number of tokens in the generated text.", - "default": 500, + "description": "The maximum number of tokens to generate the prompt.", + "default": 350, "type": "integer" }, "temperature": { "title": "Temperature", - "description": "Temperature of the model, between 0 (more precise) and 1 (more creative).", - "default": 0.3, + "description": "Temperature of the model, between 0 (more precise) and 1 (more creative)", + "default": 0.7, "exclusiveMinimum": 0, - "exclusiveMaximum": 1, + "maximum": 1, "type": "number" } }, + "required": [ + "context" + ], "definitions": { - "InnerArgModel": { - "title": "InnerArgModel", - "description": "Inner argument model to use in the prompt args", - "type": "object", - "properties": { - "arg_name": { - "title": "Arg Name", - "description": "Name of the prompt argument.", - "from_upstream": "never", - "type": "string" - }, - "arg_value": { - "title": "Arg Value", - "description": "Value of the prompt argument.", - "type": "string" - } - } - }, "OutputTypeType": { "title": "OutputTypeType", - "description": "Output type for the generated text", + "description": "Output type", "enum": [ "file", "string", @@ -508,17 +532,17 @@ }, "output_schema": { "title": "OutputModel", - "description": "TextGeneratorPiece Output model", + "description": "PromptCreatorForImageGeneratorPiece output model", "type": "object", "properties": { - "string_generated_text": { - "title": "String Generated Text", - "description": "The generated text as a string", + "generated_prompt_string": { + "title": "Generated Prompt String", + "description": "The generated prompt to pass to an image generator AI", "type": "string" }, - "file_path_generated_text": { - "title": "File Path Generated Text", - "description": "The path to text file containing generated text", + "generated_prompt_file_path": { + "title": "Generated Prompt File Path", + "description": "The path to the generated prompt, in .txt format", "format": "file-path", "type": "string" } @@ -526,7 +550,7 @@ }, "secrets_schema": { "title": "SecretsModel", - "description": "TextGeneratorPiece Secrets model", + "description": "PromptCreatorForImageGeneratorPiece secrets model", "type": "object", "properties": { "OPENAI_API_KEY": { @@ -539,50 +563,53 @@ "OPENAI_API_KEY" ] }, - "source_url": "https://github.com/Tauffer-Consulting/openai_domino_pieces/tree/main/pieces/TextGeneratorPiece" + "source_url": "https://github.com/Tauffer-Consulting/openai_domino_pieces/tree/main/pieces/PromptCreatorForImageGeneratorPiece" }, - "TextSummarizerPiece": { - "name": "TextSummarizerPiece", + "AudioTranscriptionPiece": { + "name": "AudioTranscriptionPiece", "dependency": { "dockerfile": "Dockerfile_01", "requirements_file": null }, "tags": [ - "text", - "summarizer", - "openai" + "OpenAI" ], "style": { - "node_label": "Text Summarizer", + "node_label": "OpenAI Audio Transcript", "node_type": "default", "node_style": { "backgroundColor": "#ebebeb" }, "useIcon": true, - "icon_class_name": "fas fa-align-right", + "icon_class_name": "fa-solid:headset", "iconStyle": { "cursor": "pointer" } }, - "description": "This Piece runs a text summarizer using OpenAI API.", + "description": "This Piece uses the OpenAI API to extract text transcripts from audio.", + "container_resources": { + "requests": { + "cpu": "100m", + "memory": "128Mi" + }, + "limits": { + "cpu": "500m", + "memory": "512Mi" + } + }, "input_schema": { "title": "InputModel", - "description": "TextSummarizerPiece Input model", + "description": "AudioTranscriptPiece input model", "type": "object", "properties": { - "text": { - "title": "Text", - "description": "Text to summarize", - "type": "string" - }, - "text_file_path": { - "title": "Text File Path", - "description": "Use it only if not using text field. File path to the text to summarize", + "audio_file_path": { + "title": "Audio File Path", + "description": "The path to the audio file to process.", "format": "file-path", "type": "string" }, "output_type": { - "description": "The type of output to return", + "description": "The type of output for the result text", "default": "string", "allOf": [ { @@ -590,92 +617,65 @@ } ] }, - "openai_model": { - "description": "OpenAI model name to use for summarization", - "default": "gpt-3.5-turbo", - "allOf": [ - { - "$ref": "#/definitions/LLMModelType" - } - ] - }, - "chunk_size": { - "title": "Chunk Size", - "description": "Chunk size, measured in tokens, of each pre-summary chunk", - "default": 1000, - "type": "integer" - }, - "chunk_overlap_rate": { - "title": "Chunk Overlap Rate", - "description": "The percentage of overlap between each chunk", - "default": 0.2, - "type": "number" - }, - "completion_max_tokens": { - "title": "Completion Max Tokens", - "description": "The maximum number of tokens to generate in the summary.", - "default": 500, - "type": "integer" - }, "temperature": { "title": "Temperature", - "description": "Temperature of the model, between 0 (more precise) and 1 (more creative)", - "default": 0.2, + "description": "What sampling temperature to use, between 0 and 1", + "default": 0.1, + "exclusiveMinimum": 0.0, + "maximum": 1, "type": "number" } }, + "required": [ + "audio_file_path" + ], "definitions": { "OutputTypeType": { "title": "OutputTypeType", - "description": "Output type for the completion result", + "description": "Output type for the result text", "enum": [ "file", "string", "file_and_string" ], "type": "string" - }, - "LLMModelType": { - "title": "LLMModelType", - "description": "OpenAI model type", - "enum": [ - "gpt-3.5-turbo", - "gpt-4", - "text-ada-001", - "text-babbage-001", - "text-curie-001", - "text-davinci-003" - ], - "type": "string" } } }, "output_schema": { "title": "OutputModel", - "description": "TextSummarizerPiece Output model", + "description": "AudioTranscriptPiece output model", "type": "object", "properties": { - "string_summarized_text": { - "title": "String Summarized Text", - "description": "summarized text", + "message": { + "title": "Message", + "description": "Output message to log", "type": "string" }, - "file_path_summarized_text": { - "title": "File Path Summarized Text", - "description": "Path to summarized text file", + "string_transcription_result": { + "title": "String Transcription Result", + "description": "The result transcription text as a string.", + "type": "string" + }, + "file_path_transcription_result": { + "title": "File Path Transcription Result", + "description": "The result transcription text as a file path.", "format": "file-path", "type": "string" } - } + }, + "required": [ + "message" + ] }, "secrets_schema": { "title": "SecretsModel", - "description": "TextSummarizerPiece Secrets model", + "description": "AudioTranscriptPiece secret model", "type": "object", "properties": { "OPENAI_API_KEY": { "title": "Openai Api Key", - "description": "Your OpenAI API key", + "description": "OpenAI API key", "type": "string" } }, @@ -683,7 +683,7 @@ "OPENAI_API_KEY" ] }, - "source_url": "https://github.com/Tauffer-Consulting/openai_domino_pieces/tree/main/pieces/TextSummarizerPiece" + "source_url": "https://github.com/Tauffer-Consulting/openai_domino_pieces/tree/main/pieces/AudioTranscriptionPiece" }, "InformationExtractionPiece": { "name": "InformationExtractionPiece", @@ -703,7 +703,7 @@ "backgroundColor": "#ebebeb" }, "useIcon": true, - "icon_class_name": "fas fa-align-right", + "icon_class_name": "fa-solid:align-right", "iconStyle": { "cursor": "pointer" } diff --git a/.domino/dependencies_map.json b/.domino/dependencies_map.json index 8fe8ef7..e90b9de 100644 --- a/.domino/dependencies_map.json +++ b/.domino/dependencies_map.json @@ -5,16 +5,16 @@ "requirements_file": null }, "pieces": [ - "PromptCreatorForImageGeneratorPiece", - "AudioTranscriptionPiece", - "ImageGeneratorPiece", "TextGeneratorPiece", "TextSummarizerPiece", + "ImageGeneratorPiece", + "PromptCreatorForImageGeneratorPiece", + "AudioTranscriptionPiece", "InformationExtractionPiece" ], "secrets": [ "OPENAI_API_KEY" ], - "source_image": "ghcr.io/tauffer-consulting/openai_domino_pieces:0.3.2-group0" + "source_image": "ghcr.io/tauffer-consulting/openai_domino_pieces:0.3.3-group0" } } \ No newline at end of file