diff --git a/src/backend/base/langflow/initial_setup/starter_projects/VectorStore-RAG-Flows.json b/src/backend/base/langflow/initial_setup/starter_projects/VectorStore-RAG-Flows.json index 4bd5931f1..656c50514 100644 --- a/src/backend/base/langflow/initial_setup/starter_projects/VectorStore-RAG-Flows.json +++ b/src/backend/base/langflow/initial_setup/starter_projects/VectorStore-RAG-Flows.json @@ -81,7 +81,10 @@ "fileTypes": [], "file_path": "", "password": false, - "options": ["Machine", "User"], + "options": [ + "Machine", + "User" + ], "name": "sender", "display_name": "Sender Type", "advanced": true, @@ -89,7 +92,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "sender_name": { "type": "str", @@ -109,7 +114,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "session_id": { "type": "str", @@ -128,13 +135,20 @@ "info": "If provided, the message will be stored in the memory.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "_type": "CustomComponent" }, "description": "Get chat inputs from the Playground.", "icon": "ChatInput", - "base_classes": ["Text", "str", "object", "Record"], + "base_classes": [ + "Text", + "str", + "object", + "Record" + ], "display_name": "Chat Input", "documentation": "", "custom_fields": { @@ -144,7 +158,10 @@ "session_id": null, "return_record": null }, - "output_types": ["Text", "Record"], + "output_types": [ + "Text", + "Record" + ], "field_formatters": {}, "frozen": false, "field_order": [], @@ -181,7 +198,10 @@ "name": "input_value", "display_name": "Value", "advanced": false, - "input_types": ["Record", "Text"], + "input_types": [ + "Record", + "Text" + ], "dynamic": false, "info": "Text or Record to be passed as output.", "load_from_db": false, @@ -223,20 +243,28 @@ "info": "Template to convert Record to Text. If left empty, it will be dynamically set to the Record's text key.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "_type": "CustomComponent" }, "description": "Display a text output in the Playground.", "icon": "type", - "base_classes": ["object", "Text", "str"], + "base_classes": [ + "object", + "Text", + "str" + ], "display_name": "Extracted Chunks", "documentation": "", "custom_fields": { "input_value": null, "record_template": null }, - "output_types": ["Text"], + "output_types": [ + "Text" + ], "field_formatters": {}, "frozen": false, "field_order": [], @@ -282,7 +310,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "chunk_size": { "type": "int", @@ -394,7 +424,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "disallowed_special": { "type": "str", @@ -403,7 +435,9 @@ "list": false, "show": true, "multiline": false, - "value": ["all"], + "value": [ + "all" + ], "fileTypes": [], "file_path": "", "password": false, @@ -414,7 +448,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "embedding_ctx_length": { "type": "int", @@ -477,7 +513,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "model_kwargs": { "type": "NestedDict", @@ -515,7 +553,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_api_key": { "type": "str", @@ -534,7 +574,9 @@ "info": "", "load_from_db": true, "title_case": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "value": "OPENAI_API_KEY" }, "openai_api_type": { @@ -554,7 +596,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_api_version": { "type": "str", @@ -573,7 +617,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_organization": { "type": "str", @@ -592,7 +638,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_proxy": { "type": "str", @@ -611,7 +659,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "request_timeout": { "type": "float", @@ -711,12 +761,16 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "_type": "CustomComponent" }, "description": "Generate embeddings using OpenAI models.", - "base_classes": ["Embeddings"], + "base_classes": [ + "Embeddings" + ], "display_name": "OpenAI Embeddings", "documentation": "", "custom_fields": { @@ -743,7 +797,9 @@ "tiktoken_enable": null, "tiktoken_model_name": null }, - "output_types": ["Embeddings"], + "output_types": [ + "Embeddings" + ], "field_formatters": {}, "frozen": false, "field_order": [], @@ -784,7 +840,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "code": { "type": "code", @@ -867,7 +925,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_api_base": { "type": "str", @@ -886,7 +946,9 @@ "info": "The base URL of the OpenAI API. Defaults to https://api.openai.com/v1.\n\nYou can change this to use other APIs like JinaChat, LocalAI and Prem.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_api_key": { "type": "str", @@ -905,7 +967,9 @@ "info": "The OpenAI API Key to use for the OpenAI model.", "load_from_db": true, "title_case": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "value": "OPENAI_API_KEY" }, "stream": { @@ -944,7 +1008,9 @@ "info": "System message to pass to the model.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "temperature": { "type": "float", @@ -975,7 +1041,11 @@ }, "description": "Generates text using OpenAI LLMs.", "icon": "OpenAI", - "base_classes": ["object", "Text", "str"], + "base_classes": [ + "object", + "Text", + "str" + ], "display_name": "OpenAI", "documentation": "", "custom_fields": { @@ -989,7 +1059,9 @@ "stream": null, "system_message": null }, - "output_types": ["Text"], + "output_types": [ + "Text" + ], "field_formatters": {}, "frozen": false, "field_order": [ @@ -1059,7 +1131,9 @@ "name": "template", "display_name": "Template", "advanced": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "dynamic": false, "info": "", "load_from_db": false, @@ -1124,14 +1198,23 @@ "is_input": null, "is_output": null, "is_composition": null, - "base_classes": ["object", "Text", "str"], + "base_classes": [ + "object", + "Text", + "str" + ], "name": "", "display_name": "Prompt", "documentation": "", "custom_fields": { - "template": ["context", "question"] + "template": [ + "context", + "question" + ] }, - "output_types": ["Text"], + "output_types": [ + "Text" + ], "full_path": null, "field_formatters": {}, "frozen": false, @@ -1194,7 +1277,9 @@ "name": "input_value", "display_name": "Message", "advanced": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "dynamic": false, "info": "", "load_from_db": false, @@ -1218,7 +1303,9 @@ "info": "In case of Message being a Record, this template will be used to convert it to text.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "return_record": { "type": "bool", @@ -1250,7 +1337,10 @@ "fileTypes": [], "file_path": "", "password": false, - "options": ["Machine", "User"], + "options": [ + "Machine", + "User" + ], "name": "sender", "display_name": "Sender Type", "advanced": true, @@ -1258,7 +1348,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "sender_name": { "type": "str", @@ -1278,7 +1370,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "session_id": { "type": "str", @@ -1297,13 +1391,20 @@ "info": "If provided, the message will be stored in the memory.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "_type": "CustomComponent" }, "description": "Display a chat message in the Playground.", "icon": "ChatOutput", - "base_classes": ["object", "Text", "Record", "str"], + "base_classes": [ + "object", + "Text", + "Record", + "str" + ], "display_name": "Chat Output", "documentation": "", "custom_fields": { @@ -1314,7 +1415,10 @@ "return_record": null, "record_template": null }, - "output_types": ["Text", "Record"], + "output_types": [ + "Text", + "Record" + ], "field_formatters": {}, "frozen": false, "field_order": [], @@ -1421,14 +1525,18 @@ }, "description": "A generic file loader.", "icon": "file-text", - "base_classes": ["Record"], + "base_classes": [ + "Record" + ], "display_name": "File", "documentation": "", "custom_fields": { "path": null, "silent_errors": null }, - "output_types": ["Record"], + "output_types": [ + "Record" + ], "field_formatters": {}, "frozen": false, "field_order": [], @@ -1469,7 +1577,10 @@ "name": "inputs", "display_name": "Input", "advanced": false, - "input_types": ["Document", "Record"], + "input_types": [ + "Document", + "Record" + ], "dynamic": false, "info": "The texts to split.", "load_from_db": false, @@ -1548,13 +1659,19 @@ "info": "The characters to split on.\nIf left empty defaults to [\"\\n\\n\", \"\\n\", \" \", \"\"].", "load_from_db": false, "title_case": false, - "input_types": ["Text"], - "value": [""] + "input_types": [ + "Text" + ], + "value": [ + "" + ] }, "_type": "CustomComponent" }, "description": "Split text into chunks of a specified length.", - "base_classes": ["Record"], + "base_classes": [ + "Record" + ], "display_name": "Recursive Character Text Splitter", "documentation": "https://docs.langflow.org/components/text-splitters#recursivecharactertextsplitter", "custom_fields": { @@ -1563,7 +1680,9 @@ "chunk_size": null, "chunk_overlap": null }, - "output_types": ["Record"], + "output_types": [ + "Record" + ], "field_formatters": {}, "frozen": false, "field_order": [], @@ -1626,7 +1745,9 @@ "info": "Input value to search", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "api_endpoint": { "type": "str", @@ -1645,7 +1766,9 @@ "info": "API endpoint URL for the Astra DB service.", "load_from_db": true, "title_case": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "value": "ASTRA_DB_API_ENDPOINT" }, "batch_size": { @@ -1773,7 +1896,9 @@ "info": "The name of the collection within Astra DB where the vectors will be stored.", "load_from_db": false, "title_case": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "value": "langflow" }, "metadata_indexing_exclude": { @@ -1793,7 +1918,9 @@ "info": "Optional list of metadata fields to exclude from the indexing.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "metadata_indexing_include": { "type": "str", @@ -1812,7 +1939,9 @@ "info": "Optional list of metadata fields to include in the indexing.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "metric": { "type": "str", @@ -1831,7 +1960,9 @@ "info": "Optional distance metric for vector comparisons in the vector store.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "namespace": { "type": "str", @@ -1850,7 +1981,9 @@ "info": "Optional namespace within Astra DB to use for the collection.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "number_of_results": { "type": "int", @@ -1901,7 +2034,10 @@ "fileTypes": [], "file_path": "", "password": false, - "options": ["Similarity", "MMR"], + "options": [ + "Similarity", + "MMR" + ], "name": "search_type", "display_name": "Search Type", "advanced": false, @@ -1909,7 +2045,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "setup_mode": { "type": "str", @@ -1922,7 +2060,11 @@ "fileTypes": [], "file_path": "", "password": false, - "options": ["Sync", "Async", "Off"], + "options": [ + "Sync", + "Async", + "Off" + ], "name": "setup_mode", "display_name": "Setup Mode", "advanced": true, @@ -1930,7 +2072,9 @@ "info": "Configuration mode for setting up the vector store, with options like “Sync”, “Async”, or “Off”.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "token": { "type": "str", @@ -1949,14 +2093,18 @@ "info": "Authentication token for accessing Astra DB.", "load_from_db": true, "title_case": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "value": "ASTRA_DB_APPLICATION_TOKEN" }, "_type": "CustomComponent" }, "description": "Searches an existing Astra DB Vector Store.", "icon": "AstraDB", - "base_classes": ["Record"], + "base_classes": [ + "Record" + ], "display_name": "Astra DB Search", "documentation": "", "custom_fields": { @@ -1979,7 +2127,9 @@ "metadata_indexing_exclude": null, "collection_indexing_policy": null }, - "output_types": ["Record"], + "output_types": [ + "Record" + ], "field_formatters": {}, "frozen": false, "field_order": [ @@ -2066,7 +2216,9 @@ "info": "API endpoint URL for the Astra DB service.", "load_from_db": true, "title_case": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "value": "ASTRA_DB_API_ENDPOINT" }, "batch_size": { @@ -2194,7 +2346,9 @@ "info": "The name of the collection within Astra DB where the vectors will be stored.", "load_from_db": false, "title_case": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "value": "langflow" }, "metadata_indexing_exclude": { @@ -2214,7 +2368,9 @@ "info": "Optional list of metadata fields to exclude from the indexing.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "metadata_indexing_include": { "type": "str", @@ -2233,7 +2389,9 @@ "info": "Optional list of metadata fields to include in the indexing.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "metric": { "type": "str", @@ -2252,7 +2410,9 @@ "info": "Optional distance metric for vector comparisons in the vector store.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "namespace": { "type": "str", @@ -2271,7 +2431,9 @@ "info": "Optional namespace within Astra DB to use for the collection.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "pre_delete_collection": { "type": "bool", @@ -2303,7 +2465,11 @@ "fileTypes": [], "file_path": "", "password": false, - "options": ["Sync", "Async", "Off"], + "options": [ + "Sync", + "Async", + "Off" + ], "name": "setup_mode", "display_name": "Setup Mode", "advanced": true, @@ -2311,7 +2477,9 @@ "info": "Configuration mode for setting up the vector store, with options like “Sync”, “Async”, or “Off”.", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "token": { "type": "str", @@ -2330,14 +2498,18 @@ "info": "Authentication token for accessing Astra DB.", "load_from_db": true, "title_case": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "value": "ASTRA_DB_APPLICATION_TOKEN" }, "_type": "CustomComponent" }, "description": "Builds or loads an Astra DB Vector Store.", "icon": "AstraDB", - "base_classes": ["VectorStore"], + "base_classes": [ + "VectorStore" + ], "display_name": "Astra DB", "documentation": "", "custom_fields": { @@ -2358,7 +2530,9 @@ "metadata_indexing_exclude": null, "collection_indexing_policy": null }, - "output_types": ["VectorStore"], + "output_types": [ + "VectorStore" + ], "field_formatters": {}, "frozen": false, "field_order": [ @@ -2410,7 +2584,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "chunk_size": { "type": "int", @@ -2522,7 +2698,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "disallowed_special": { "type": "str", @@ -2531,7 +2709,9 @@ "list": false, "show": true, "multiline": false, - "value": ["all"], + "value": [ + "all" + ], "fileTypes": [], "file_path": "", "password": false, @@ -2542,7 +2722,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "embedding_ctx_length": { "type": "int", @@ -2605,7 +2787,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "model_kwargs": { "type": "NestedDict", @@ -2643,7 +2827,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_api_key": { "type": "str", @@ -2662,7 +2848,9 @@ "info": "", "load_from_db": true, "title_case": false, - "input_types": ["Text"], + "input_types": [ + "Text" + ], "value": "OPENAI_API_KEY" }, "openai_api_type": { @@ -2682,7 +2870,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_api_version": { "type": "str", @@ -2701,7 +2891,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_organization": { "type": "str", @@ -2720,7 +2912,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "openai_proxy": { "type": "str", @@ -2739,7 +2933,9 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "request_timeout": { "type": "float", @@ -2839,12 +3035,16 @@ "info": "", "load_from_db": false, "title_case": false, - "input_types": ["Text"] + "input_types": [ + "Text" + ] }, "_type": "CustomComponent" }, "description": "Generate embeddings using OpenAI models.", - "base_classes": ["Embeddings"], + "base_classes": [ + "Embeddings" + ], "display_name": "OpenAI Embeddings", "documentation": "", "custom_fields": { @@ -2871,7 +3071,9 @@ "tiktoken_enable": null, "tiktoken_model_name": null }, - "output_types": ["Embeddings"], + "output_types": [ + "Embeddings" + ], "field_formatters": {}, "frozen": false, "field_order": [], @@ -2900,11 +3102,20 @@ "targetHandle": { "fieldName": "context", "id": "Prompt-xeI6K", - "inputTypes": ["Document", "BaseOutputParser", "Record", "Text"], + "inputTypes": [ + "Document", + "BaseOutputParser", + "Record", + "Text" + ], "type": "str" }, "sourceHandle": { - "baseClasses": ["object", "Text", "str"], + "baseClasses": [ + "object", + "Text", + "str" + ], "dataType": "TextOutput", "id": "TextOutput-BDknO" } @@ -2925,11 +3136,21 @@ "targetHandle": { "fieldName": "question", "id": "Prompt-xeI6K", - "inputTypes": ["Document", "BaseOutputParser", "Record", "Text"], + "inputTypes": [ + "Document", + "BaseOutputParser", + "Record", + "Text" + ], "type": "str" }, "sourceHandle": { - "baseClasses": ["Text", "str", "object", "Record"], + "baseClasses": [ + "Text", + "str", + "object", + "Record" + ], "dataType": "ChatInput", "id": "ChatInput-yxMKE" } @@ -2950,11 +3171,17 @@ "targetHandle": { "fieldName": "input_value", "id": "OpenAIModel-EjXlN", - "inputTypes": ["Text"], + "inputTypes": [ + "Text" + ], "type": "str" }, "sourceHandle": { - "baseClasses": ["object", "Text", "str"], + "baseClasses": [ + "object", + "Text", + "str" + ], "dataType": "Prompt", "id": "Prompt-xeI6K" } @@ -2975,11 +3202,17 @@ "targetHandle": { "fieldName": "input_value", "id": "ChatOutput-Q39I8", - "inputTypes": ["Text"], + "inputTypes": [ + "Text" + ], "type": "str" }, "sourceHandle": { - "baseClasses": ["object", "Text", "str"], + "baseClasses": [ + "object", + "Text", + "str" + ], "dataType": "OpenAIModel", "id": "OpenAIModel-EjXlN" } @@ -3000,11 +3233,16 @@ "targetHandle": { "fieldName": "inputs", "id": "RecursiveCharacterTextSplitter-tR9QM", - "inputTypes": ["Document", "Record"], + "inputTypes": [ + "Document", + "Record" + ], "type": "Document" }, "sourceHandle": { - "baseClasses": ["Record"], + "baseClasses": [ + "Record" + ], "dataType": "File", "id": "File-t0a6a" } @@ -3028,7 +3266,9 @@ "type": "Embeddings" }, "sourceHandle": { - "baseClasses": ["Embeddings"], + "baseClasses": [ + "Embeddings" + ], "dataType": "OpenAIEmbeddings", "id": "OpenAIEmbeddings-ZlOk1" } @@ -3048,11 +3288,18 @@ "targetHandle": { "fieldName": "input_value", "id": "AstraDBSearch-41nRz", - "inputTypes": ["Text"], + "inputTypes": [ + "Text" + ], "type": "str" }, "sourceHandle": { - "baseClasses": ["Text", "str", "object", "Record"], + "baseClasses": [ + "Text", + "str", + "object", + "Record" + ], "dataType": "ChatInput", "id": "ChatInput-yxMKE" } @@ -3076,7 +3323,9 @@ "type": "Record" }, "sourceHandle": { - "baseClasses": ["Record"], + "baseClasses": [ + "Record" + ], "dataType": "RecursiveCharacterTextSplitter", "id": "RecursiveCharacterTextSplitter-tR9QM" } @@ -3101,7 +3350,9 @@ "type": "Embeddings" }, "sourceHandle": { - "baseClasses": ["Embeddings"], + "baseClasses": [ + "Embeddings" + ], "dataType": "OpenAIEmbeddings", "id": "OpenAIEmbeddings-9TPjc" } @@ -3122,11 +3373,16 @@ "targetHandle": { "fieldName": "input_value", "id": "TextOutput-BDknO", - "inputTypes": ["Record", "Text"], + "inputTypes": [ + "Record", + "Text" + ], "type": "str" }, "sourceHandle": { - "baseClasses": ["Record"], + "baseClasses": [ + "Record" + ], "dataType": "AstraDBSearch", "id": "AstraDBSearch-41nRz" } @@ -3148,4 +3404,4 @@ "name": "Vector Store RAG", "last_tested_version": "1.0.0a0", "is_component": false -} +} \ No newline at end of file diff --git a/src/frontend/src/components/headerComponent/index.tsx b/src/frontend/src/components/headerComponent/index.tsx index 646dc6bff..e1b8ce2c5 100644 --- a/src/frontend/src/components/headerComponent/index.tsx +++ b/src/frontend/src/components/headerComponent/index.tsx @@ -56,7 +56,7 @@ export default function Header(): JSX.Element { const lastFlowVisitedIndex = routeHistory .reverse() .findIndex( - (path) => path.includes("/flow/") && path !== location.pathname + (path) => path.includes("/flow/") && path !== location.pathname, ); const lastFlowVisited = routeHistory[lastFlowVisitedIndex]; diff --git a/src/frontend/src/components/sidebarComponent/components/sideBarFolderButtons/index.tsx b/src/frontend/src/components/sidebarComponent/components/sideBarFolderButtons/index.tsx index f0a8ed4d2..45eb6ecc7 100644 --- a/src/frontend/src/components/sidebarComponent/components/sideBarFolderButtons/index.tsx +++ b/src/frontend/src/components/sidebarComponent/components/sideBarFolderButtons/index.tsx @@ -14,6 +14,7 @@ import IconComponent, { import { Button, buttonVariants } from "../../../ui/button"; import { Input } from "../../../ui/input"; import useFileDrop from "../../hooks/use-on-file-drop"; +import useAlertStore from "../../../../stores/alertStore"; type SideBarFoldersButtonsComponentProps = { folders: FolderType[]; @@ -34,7 +35,7 @@ const SideBarFoldersButtonsComponent = ({ const [foldersNames, setFoldersNames] = useState({}); const takeSnapshot = useFlowsManagerStore((state) => state.takeSnapshot); const [editFolders, setEditFolderName] = useState( - folders.map((obj) => ({ name: obj.name, edit: false })) + folders.map((obj) => ({ name: obj.name, edit: false })), ); const uploadFolder = useFolderStore((state) => state.uploadFolder); const currentFolder = pathname.split("/"); @@ -60,7 +61,7 @@ const SideBarFoldersButtonsComponent = ({ const { dragOver, dragEnter, dragLeave, onDrop } = useFileDrop( folderId, - handleFolderChange + handleFolderChange, ); const handleUploadFlowsToFolder = () => { @@ -85,7 +86,7 @@ const SideBarFoldersButtonsComponent = ({ addFolder({ name: "New Folder", parent_id: null, description: "" }).then( (res) => { getFoldersApi(true); - } + }, ); } @@ -131,7 +132,7 @@ const SideBarFoldersButtonsComponent = ({ <> {folders.map((item, index) => { const editFolderName = editFolders?.filter( - (folder) => folder.name === item.name + (folder) => folder.name === item.name, )[0]; return (