fix: Rebuild Templates and Broken Connections (#8386)

* Update Vector Store RAG.json

* fix: make starter projects auto refactor not remove selected output (#8400)

* Fixed bug where starter projects were refactored incorrectly

* fix: improve handling of selected outputs in custom component template builder

- Added checks to ensure selected output is valid before attempting to set its state.
- Enhanced code readability with comments explaining the logic for selecting outputs.

* Set selected output as the previous selected output

* Update base.py

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* fix: made clean edges clean after changing dropdown of output (#8460)

fixed output considering all outputs not just selected one

* refactor(docker): remove --extra deploy flag from uv sync commands (#8485)

🔧 (build_and_push_with_extras.Dockerfile): remove unnecessary uv sync command options to improve build efficiency and reduce redundancy

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* fix: refactor mcp and freeze tests to be less prone to flaky results (#8486)

* Fixed mcp test to be less prone to errors

* Fix freeze spec

* fix: made button disabled state more congruent, made edit flow details submit on enter (#8339)

* Changed textarea classes

* Changed flowsettingscomponent to use form

* changed edit flow settings to use form and to submit on enter

* Reset form data on close

* Updated disabled state to have lower opacity instead of to have set background

* Fixed loading state of button

* Fix: chat memory store issue and fix output types (#8463)

* fix chat memory

* update template

* update update outputs

* update update outputs

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* ci: update setup-uv to possibly fix caching (#8490)

* update templates

* update templates

* First round of template updates

* Update templates

* fix: Update SaaS, Social Media, and YouTube json file (#8441)

* update SaaS, Social Media, and YouTube json file

* fix: make starter projects auto refactor not remove selected output (#8400)

* Fixed bug where starter projects were refactored incorrectly

* fix: improve handling of selected outputs in custom component template builder

- Added checks to ensure selected output is valid before attempting to set its state.
- Enhanced code readability with comments explaining the logic for selecting outputs.

* Set selected output as the previous selected output

* Update base.py

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* fix: made clean edges clean after changing dropdown of output (#8460)

fixed output considering all outputs not just selected one

* refactor(docker): remove --extra deploy flag from uv sync commands (#8485)

🔧 (build_and_push_with_extras.Dockerfile): remove unnecessary uv sync command options to improve build efficiency and reduce redundancy

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* fix: refactor mcp and freeze tests to be less prone to flaky results (#8486)

* Fixed mcp test to be less prone to errors

* Fix freeze spec

* fix: made button disabled state more congruent, made edit flow details submit on enter (#8339)

* Changed textarea classes

* Changed flowsettingscomponent to use form

* changed edit flow settings to use form and to submit on enter

* Reset form data on close

* Updated disabled state to have lower opacity instead of to have set background

* Fixed loading state of button

* Fix: chat memory store issue and fix output types (#8463)

* fix chat memory

* update template

* update update outputs

* update update outputs

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* ci: update setup-uv to possibly fix caching (#8490)

* update json

* fix custom component

* revert change

---------

Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>

* fix: templates (#8499)

* basic-prompting-template-updated

* show-system-message

* names

* blog-writer-tested

* financial-report-parser

* image-sentiment-analysis

* seo-keyword-generator

* seo-keyword-generator

* Merge branch 'fix-vector-search-template' into mendons-template-branch

---------

Co-authored-by: Eric Hare <ericrhare@gmail.com>

* Update Basic Prompting.json

* Update Blog Writer.json

* Further template updates

* Update Image Sentiment Analysis.json

* Update templates

* Update Financial Report Parser.json

* Update Market Research.json

* Update Market Research.json

* Update Image Sentiment Analysis.json

* Update Market Research.json

* Update image sentiment analysis template

* Update Market Research.json

* Update Custom Component Maker.json

* Update Custom Component Maker.json

* Update Hybrid Search RAG.json

* Update Hybrid Search RAG.json

* Update Hybrid Search RAG.json

* More template updates

* Update Financial Report Parser.json

* Update Custom Component Maker.json

* Template updates

* Update Custom Component Maker.json

* Template updates

* fix custom component

* Update Financial Agent.json

* More template updates

* finance report parser fix

---------

Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
This commit is contained in:
Eric Hare 2025-06-23 09:53:55 -07:00 committed by GitHub
commit 412fdd20cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 5322 additions and 6186 deletions

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@
"data": {
"sourceHandle": {
"dataType": "Prompt",
"id": "Prompt-Z1IXr",
"id": "Prompt-qrgXn",
"name": "prompt",
"output_types": [
"Message"
@ -15,19 +15,19 @@
},
"targetHandle": {
"fieldName": "system_message",
"id": "LanguageModelComponent-UcEoU",
"id": "LanguageModelComponent-UrOQf",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "xy-edge__Prompt-Z1IXr{œdataTypeœ:œPromptœ,œidœ:œPrompt-Z1IXrœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-LanguageModelComponent-UcEoU{œfieldNameœ:œsystem_messageœ,œidœ:œLanguageModelComponent-UcEoUœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "xy-edge__Prompt-qrgXn{œdataTypeœ:œPromptœ,œidœ:œPrompt-qrgXnœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-LanguageModelComponent-UrOQf{œfieldNameœ:œsystem_messageœ,œidœ:œLanguageModelComponent-UrOQfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "Prompt-Z1IXr",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-Z1IXrœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "LanguageModelComponent-UcEoU",
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œLanguageModelComponent-UcEoUœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "Prompt-qrgXn",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-qrgXnœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "LanguageModelComponent-UrOQf",
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œLanguageModelComponent-UrOQfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -35,7 +35,7 @@
"data": {
"sourceHandle": {
"dataType": "ChatInput",
"id": "ChatInput-9e2tW",
"id": "ChatInput-9rvSS",
"name": "message",
"output_types": [
"Message"
@ -43,19 +43,19 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "LanguageModelComponent-UcEoU",
"id": "LanguageModelComponent-UrOQf",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "xy-edge__ChatInput-9e2tW{œdataTypeœ:œChatInputœ,œidœ:œChatInput-9e2tWœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-LanguageModelComponent-UcEoU{œfieldNameœ:œinput_valueœ,œidœ:œLanguageModelComponent-UcEoUœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "xy-edge__ChatInput-9rvSS{œdataTypeœ:œChatInputœ,œidœ:œChatInput-9rvSSœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-LanguageModelComponent-UrOQf{œfieldNameœ:œinput_valueœ,œidœ:œLanguageModelComponent-UrOQfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "ChatInput-9e2tW",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-9e2tWœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "LanguageModelComponent-UcEoU",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œLanguageModelComponent-UcEoUœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "ChatInput-9rvSS",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-9rvSSœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "LanguageModelComponent-UrOQf",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œLanguageModelComponent-UrOQfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -63,7 +63,7 @@
"data": {
"sourceHandle": {
"dataType": "LanguageModelComponent",
"id": "LanguageModelComponent-UcEoU",
"id": "LanguageModelComponent-UrOQf",
"name": "text_output",
"output_types": [
"Message"
@ -71,21 +71,21 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "ChatOutput-7q74v",
"id": "ChatOutput-AyRuN",
"inputTypes": [
"Data",
"DataFrame",
"Message"
],
"type": "other"
"type": "str"
}
},
"id": "xy-edge__LanguageModelComponent-UcEoU{œdataTypeœ:œLanguageModelComponentœ,œidœ:œLanguageModelComponent-UcEoUœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-7q74v{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-7q74vœ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œotherœ}",
"id": "xy-edge__LanguageModelComponent-UrOQf{œdataTypeœ:œLanguageModelComponentœ,œidœ:œLanguageModelComponent-UrOQfœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-AyRuN{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-AyRuNœ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "LanguageModelComponent-UcEoU",
"sourceHandle": "{œdataTypeœ: œLanguageModelComponentœ, œidœ: œLanguageModelComponent-UcEoUœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-7q74v",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-7q74vœ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œotherœ}"
"source": "LanguageModelComponent-UrOQf",
"sourceHandle": "{œdataTypeœ: œLanguageModelComponentœ, œidœ: œLanguageModelComponent-UrOQfœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-AyRuN",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-AyRuNœ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œstrœ}"
}
],
"nodes": [
@ -93,7 +93,7 @@
"data": {
"description": "Get chat inputs from the Playground.",
"display_name": "Chat Input",
"id": "ChatInput-9e2tW",
"id": "ChatInput-9rvSS",
"node": {
"base_classes": [
"Message"
@ -116,7 +116,7 @@
"frozen": false,
"icon": "MessagesSquare",
"legacy": false,
"lf_version": "1.4.3",
"lf_version": "1.4.2",
"metadata": {},
"output_types": [],
"outputs": [
@ -148,14 +148,12 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "background_color",
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"tool_mode": false,
"trace_as_input": true,
"trace_as_metadata": true,
"type": "str",
@ -171,14 +169,12 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "chat_icon",
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"tool_mode": false,
"trace_as_input": true,
"trace_as_metadata": true,
"type": "str",
@ -203,7 +199,6 @@
"value": "from langflow.base.data.utils import IMG_FILE_TYPES, TEXT_FILE_TYPES\nfrom langflow.base.io.chat import ChatComponent\nfrom langflow.inputs.inputs import BoolInput\nfrom langflow.io import (\n DropdownInput,\n FileInput,\n MessageTextInput,\n MultilineInput,\n Output,\n)\nfrom langflow.schema.message import Message\nfrom langflow.utils.constants import (\n MESSAGE_SENDER_AI,\n MESSAGE_SENDER_NAME_USER,\n MESSAGE_SENDER_USER,\n)\n\n\nclass ChatInput(ChatComponent):\n display_name = \"Chat Input\"\n description = \"Get chat inputs from the Playground.\"\n icon = \"MessagesSquare\"\n name = \"ChatInput\"\n minimized = True\n\n inputs = [\n MultilineInput(\n name=\"input_value\",\n display_name=\"Input Text\",\n value=\"\",\n info=\"Message to be passed as input.\",\n input_types=[],\n ),\n BoolInput(\n name=\"should_store_message\",\n display_name=\"Store Messages\",\n info=\"Store the message in the history.\",\n value=True,\n advanced=True,\n ),\n DropdownInput(\n name=\"sender\",\n display_name=\"Sender Type\",\n options=[MESSAGE_SENDER_AI, MESSAGE_SENDER_USER],\n value=MESSAGE_SENDER_USER,\n info=\"Type of sender.\",\n advanced=True,\n ),\n MessageTextInput(\n name=\"sender_name\",\n display_name=\"Sender Name\",\n info=\"Name of the sender.\",\n value=MESSAGE_SENDER_NAME_USER,\n advanced=True,\n ),\n MessageTextInput(\n name=\"session_id\",\n display_name=\"Session ID\",\n info=\"The session ID of the chat. If empty, the current session ID parameter will be used.\",\n advanced=True,\n ),\n FileInput(\n name=\"files\",\n display_name=\"Files\",\n file_types=TEXT_FILE_TYPES + IMG_FILE_TYPES,\n info=\"Files to be sent with the message.\",\n advanced=True,\n is_list=True,\n temp_file=True,\n ),\n MessageTextInput(\n name=\"background_color\",\n display_name=\"Background Color\",\n info=\"The background color of the icon.\",\n advanced=True,\n ),\n MessageTextInput(\n name=\"chat_icon\",\n display_name=\"Icon\",\n info=\"The icon of the message.\",\n advanced=True,\n ),\n MessageTextInput(\n name=\"text_color\",\n display_name=\"Text Color\",\n info=\"The text color of the name\",\n advanced=True,\n ),\n ]\n outputs = [\n Output(display_name=\"Chat Message\", name=\"message\", method=\"message_response\"),\n ]\n\n async def message_response(self) -> Message:\n background_color = self.background_color\n text_color = self.text_color\n icon = self.chat_icon\n\n message = await Message.create(\n text=self.input_value,\n sender=self.sender,\n sender_name=self.sender_name,\n session_id=self.session_id,\n files=self.files,\n properties={\n \"background_color\": background_color,\n \"text_color\": text_color,\n \"icon\": icon,\n },\n )\n if self.session_id and isinstance(message, Message) and self.should_store_message:\n stored_message = await self.send_message(\n message,\n )\n self.message.value = stored_message\n message = stored_message\n\n self.status = message\n return message\n"
},
"files": {
"_input_type": "FileInput",
"advanced": true,
"display_name": "Files",
"dynamic": false,
@ -235,7 +230,6 @@
"file_path": "",
"info": "Files to be sent with the message.",
"list": true,
"list_add_label": "Add More",
"name": "files",
"placeholder": "",
"required": false,
@ -247,15 +241,12 @@
"value": ""
},
"input_value": {
"_input_type": "MultilineInput",
"advanced": false,
"copy_field": false,
"display_name": "Input Text",
"dynamic": false,
"info": "Message to be passed as input.",
"input_types": [],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"multiline": true,
"name": "input_value",
@ -263,17 +254,13 @@
"required": false,
"show": true,
"title_case": false,
"tool_mode": false,
"trace_as_input": true,
"trace_as_metadata": true,
"type": "str",
"value": "Hello"
},
"sender": {
"_input_type": "DropdownInput",
"advanced": true,
"combobox": false,
"dialog_inputs": {},
"display_name": "Sender Type",
"dynamic": false,
"info": "Type of sender.",
@ -282,19 +269,15 @@
"Machine",
"User"
],
"options_metadata": [],
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"toggle": false,
"tool_mode": false,
"trace_as_metadata": true,
"type": "str",
"value": "User"
},
"sender_name": {
"_input_type": "MessageTextInput",
"advanced": true,
"display_name": "Sender Name",
"dynamic": false,
@ -303,21 +286,18 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "sender_name",
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"tool_mode": false,
"trace_as_input": true,
"trace_as_metadata": true,
"type": "str",
"value": "User"
},
"session_id": {
"_input_type": "MessageTextInput",
"advanced": true,
"display_name": "Session ID",
"dynamic": false,
@ -326,14 +306,12 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "session_id",
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"tool_mode": false,
"trace_as_input": true,
"trace_as_metadata": true,
"type": "str",
@ -346,13 +324,11 @@
"dynamic": false,
"info": "Store the message in the history.",
"list": false,
"list_add_label": "Add More",
"name": "should_store_message",
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"tool_mode": false,
"trace_as_metadata": true,
"type": "bool",
"value": true
@ -367,14 +343,12 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "text_color",
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"tool_mode": false,
"trace_as_input": true,
"trace_as_metadata": true,
"type": "str",
@ -387,7 +361,7 @@
},
"dragging": false,
"height": 234,
"id": "ChatInput-9e2tW",
"id": "ChatInput-9rvSS",
"measured": {
"height": 234,
"width": 320
@ -408,7 +382,7 @@
"data": {
"description": "Create a prompt template with dynamic variables.",
"display_name": "Prompt",
"id": "Prompt-Z1IXr",
"id": "Prompt-qrgXn",
"node": {
"base_classes": [
"Message"
@ -428,7 +402,7 @@
"frozen": false,
"icon": "braces",
"legacy": false,
"lf_version": "1.4.3",
"lf_version": "1.4.2",
"metadata": {},
"output_types": [],
"outputs": [
@ -475,7 +449,6 @@
"dynamic": false,
"info": "",
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "template",
"placeholder": "",
@ -497,7 +470,6 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "tool_placeholder",
"placeholder": "",
@ -518,14 +490,14 @@
},
"dragging": false,
"height": 260,
"id": "Prompt-Z1IXr",
"id": "Prompt-qrgXn",
"measured": {
"height": 260,
"width": 320
},
"position": {
"x": 690.2015147036818,
"y": 1040.6625705470924
"x": 688.9222183027662,
"y": 1044.5004597498394
},
"positionAbsolute": {
"x": 690.2015147036818,
@ -537,9 +509,9 @@
},
{
"data": {
"id": "undefined-9ON0z",
"id": "undefined-x1gke",
"node": {
"description": "## 📖 README\n\nPerform basic prompting with an OpenAI model.\n\n#### Quick Start\n- Add your **OpenAI API key** to the **OpenAI Model**\n- Open the **Playground** to chat with your bot.\n\n#### Next steps:\n Experiment by changing the prompt and the OpenAI model temperature to see how the bot's responses change.",
"description": "## 📖 README\n\nPerform basic prompting with a Language model component.\n\n#### Quick Start\n- Add your **OpenAI API key** to the **Language Model** component.\n- Open the **Playground** to chat with your bot.\n\n#### Next steps:\nExperiment by changing the prompt and the Language model temperature to see how the bot's responses change.",
"display_name": "Read Me",
"documentation": "",
"template": {
@ -548,15 +520,15 @@
}
},
"dragging": false,
"height": 332,
"id": "undefined-9ON0z",
"height": 403,
"id": "undefined-x1gke",
"measured": {
"height": 332,
"width": 325
"height": 403,
"width": 324
},
"position": {
"x": 133.95771636602308,
"y": 753.6499167055161
"x": 309.22132329147314,
"y": 803.5424763412283
},
"positionAbsolute": {
"x": 66.38770028934243,
@ -573,7 +545,7 @@
},
{
"data": {
"id": "note-gMO7f",
"id": "note-YJtLA",
"node": {
"description": "### 💡 Add your OpenAI API key here 👇",
"display_name": "",
@ -586,14 +558,14 @@
},
"dragging": false,
"height": 324,
"id": "note-gMO7f",
"id": "note-YJtLA",
"measured": {
"height": 324,
"width": 324
},
"position": {
"x": 1075.829573520873,
"y": 657.2057655038416
"x": 1080.9467591245357,
"y": 744.1979207661088
},
"positionAbsolute": {
"x": 1075.829573520873,
@ -610,7 +582,7 @@
},
{
"data": {
"id": "ChatOutput-7q74v",
"id": "ChatOutput-AyRuN",
"node": {
"base_classes": [
"Message"
@ -636,7 +608,7 @@
"frozen": false,
"icon": "MessagesSquare",
"legacy": false,
"lf_version": "1.4.3",
"lf_version": "1.4.2",
"metadata": {},
"output_types": [],
"outputs": [
@ -668,7 +640,6 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "background_color",
"placeholder": "",
@ -691,7 +662,6 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "chat_icon",
"placeholder": "",
@ -750,7 +720,6 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "data_template",
"placeholder": "",
@ -764,7 +733,7 @@
"value": "{text}"
},
"input_value": {
"_input_type": "HandleInput",
"_input_type": "MessageInput",
"advanced": false,
"display_name": "Inputs",
"dynamic": false,
@ -775,7 +744,6 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "input_value",
"placeholder": "",
@ -784,14 +752,13 @@
"title_case": false,
"trace_as_input": true,
"trace_as_metadata": true,
"type": "other",
"type": "str",
"value": ""
},
"sender": {
"_input_type": "DropdownInput",
"advanced": true,
"combobox": false,
"dialog_inputs": {},
"display_name": "Sender Type",
"dynamic": false,
"info": "Type of sender.",
@ -800,12 +767,10 @@
"Machine",
"User"
],
"options_metadata": [],
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"toggle": false,
"tool_mode": false,
"trace_as_metadata": true,
"type": "str",
@ -821,7 +786,6 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "sender_name",
"placeholder": "",
@ -844,7 +808,6 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "session_id",
"placeholder": "",
@ -864,13 +827,11 @@
"dynamic": false,
"info": "Store the message in the history.",
"list": false,
"list_add_label": "Add More",
"name": "should_store_message",
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"tool_mode": false,
"trace_as_metadata": true,
"type": "bool",
"value": true
@ -885,7 +846,6 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "text_color",
"placeholder": "",
@ -905,7 +865,7 @@
},
"dragging": false,
"height": 234,
"id": "ChatOutput-7q74v",
"id": "ChatOutput-AyRuN",
"measured": {
"height": 234,
"width": 320
@ -918,20 +878,19 @@
"x": 1444.936881624563,
"y": 872.7273956769025
},
"selected": true,
"selected": false,
"type": "genericNode",
"width": 320
},
{
"data": {
"id": "LanguageModelComponent-UcEoU",
"id": "LanguageModelComponent-UrOQf",
"node": {
"base_classes": [
"LanguageModel",
"Message"
],
"beta": false,
"category": "models",
"conditional_paths": [],
"custom_fields": {},
"description": "Runs a language model given a specified provider. ",
@ -949,9 +908,8 @@
],
"frozen": false,
"icon": "brain-circuit",
"key": "LanguageModelComponent",
"legacy": false,
"lf_version": "1.4.3",
"lf_version": "1.4.2",
"metadata": {
"keywords": [
"model",
@ -994,7 +952,6 @@
],
"pinned": false,
"priority": 0,
"score": 0.28173906304863156,
"template": {
"_type": "Component",
"api_key": {
@ -1004,7 +961,7 @@
"dynamic": false,
"info": "Model Provider API key",
"input_types": [],
"load_from_db": true,
"load_from_db": false,
"name": "api_key",
"password": true,
"placeholder": "",
@ -1200,30 +1157,30 @@
"type": "LanguageModelComponent"
},
"dragging": false,
"id": "LanguageModelComponent-UcEoU",
"id": "LanguageModelComponent-UrOQf",
"measured": {
"height": 534,
"width": 320
},
"position": {
"x": 1082.9866975141738,
"y": 746.0923075286877
"x": 1085.7542386472996,
"y": 795.0399905192078
},
"selected": false,
"type": "genericNode"
}
],
"viewport": {
"x": -37.23013572397235,
"y": -311.67320873395806,
"zoom": 0.74075714647776
"x": -38.712024727138214,
"y": -377.46660457274356,
"zoom": 0.7816796789893417
}
},
"description": "Perform basic prompting with an OpenAI model.",
"endpoint_name": null,
"id": "c04a179a-a582-402e-9628-4af37767208c",
"id": "f0994431-652b-4fd1-940e-e5bfa1416fcc",
"is_component": false,
"last_tested_version": "1.4.3",
"last_tested_version": "1.4.2",
"name": "Basic Prompting",
"tags": [
"chatbots"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@
"data": {
"sourceHandle": {
"dataType": "ChatInput",
"id": "ChatInput-xGZs1",
"id": "ChatInput-Vu7qu",
"name": "message",
"output_types": [
"Message"
@ -15,19 +15,19 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "Agent-GuZvV",
"id": "Agent-ZGDpX",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-ChatInput-xGZs1{œdataTypeœ:œChatInputœ,œidœ:œChatInput-xGZs1œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-GuZvV{œfieldNameœ:œinput_valueœ,œidœ:œAgent-GuZvVœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-ChatInput-Vu7qu{œdataTypeœ:œChatInputœ,œidœ:œChatInput-Vu7quœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-ZGDpX{œfieldNameœ:œinput_valueœ,œidœ:œAgent-ZGDpXœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "ChatInput-xGZs1",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-xGZs1œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "Agent-GuZvV",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-GuZvVœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "ChatInput-Vu7qu",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-Vu7quœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "Agent-ZGDpX",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-ZGDpXœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -35,7 +35,7 @@
"data": {
"sourceHandle": {
"dataType": "Agent",
"id": "Agent-GuZvV",
"id": "Agent-ZGDpX",
"name": "response",
"output_types": [
"Message"
@ -43,19 +43,19 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "StructuredOutput-TgwNF",
"id": "StructuredOutput-Aph6K",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-Agent-GuZvV{œdataTypeœ:œAgentœ,œidœ:œAgent-GuZvVœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-StructuredOutput-TgwNF{œfieldNameœ:œinput_valueœ,œidœ:œStructuredOutput-TgwNFœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-Agent-ZGDpX{œdataTypeœ:œAgentœ,œidœ:œAgent-ZGDpXœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-StructuredOutput-Aph6K{œfieldNameœ:œinput_valueœ,œidœ:œStructuredOutput-Aph6Kœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "Agent-GuZvV",
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-GuZvVœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
"target": "StructuredOutput-TgwNF",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œStructuredOutput-TgwNFœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "Agent-ZGDpX",
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-ZGDpXœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
"target": "StructuredOutput-Aph6K",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œStructuredOutput-Aph6Kœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -63,7 +63,7 @@
"data": {
"sourceHandle": {
"dataType": "TavilySearchComponent",
"id": "TavilySearchComponent-oQBdN",
"id": "TavilySearchComponent-Q9JKS",
"name": "component_as_tool",
"output_types": [
"Tool"
@ -71,19 +71,19 @@
},
"targetHandle": {
"fieldName": "tools",
"id": "Agent-GuZvV",
"id": "Agent-ZGDpX",
"inputTypes": [
"Tool"
],
"type": "other"
}
},
"id": "reactflow__edge-TavilySearchComponent-oQBdN{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-oQBdNœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-GuZvV{œfieldNameœ:œtoolsœ,œidœ:œAgent-GuZvVœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-TavilySearchComponent-Q9JKS{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-Q9JKSœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-ZGDpX{œfieldNameœ:œtoolsœ,œidœ:œAgent-ZGDpXœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"selected": false,
"source": "TavilySearchComponent-oQBdN",
"sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-oQBdNœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-GuZvV",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-GuZvVœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
"source": "TavilySearchComponent-Q9JKS",
"sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-Q9JKSœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-ZGDpX",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-ZGDpXœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
},
{
"animated": false,
@ -91,7 +91,7 @@
"data": {
"sourceHandle": {
"dataType": "OpenAIModel",
"id": "OpenAIModel-kaJVR",
"id": "OpenAIModel-YQpWE",
"name": "model_output",
"output_types": [
"LanguageModel"
@ -99,19 +99,19 @@
},
"targetHandle": {
"fieldName": "llm",
"id": "StructuredOutput-TgwNF",
"id": "StructuredOutput-Aph6K",
"inputTypes": [
"LanguageModel"
],
"type": "other"
}
},
"id": "reactflow__edge-OpenAIModel-kaJVR{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-kaJVRœ,œnameœ:œmodel_outputœ,œoutput_typesœ:[œLanguageModelœ]}-StructuredOutput-TgwNF{œfieldNameœ:œllmœ,œidœ:œStructuredOutput-TgwNFœ,œinputTypesœ:[œLanguageModelœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-OpenAIModel-YQpWE{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-YQpWEœ,œnameœ:œmodel_outputœ,œoutput_typesœ:[œLanguageModelœ]}-StructuredOutput-Aph6K{œfieldNameœ:œllmœ,œidœ:œStructuredOutput-Aph6Kœ,œinputTypesœ:[œLanguageModelœ],œtypeœ:œotherœ}",
"selected": false,
"source": "OpenAIModel-kaJVR",
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-kaJVRœ, œnameœ: œmodel_outputœ, œoutput_typesœ: [œLanguageModelœ]}",
"target": "StructuredOutput-TgwNF",
"targetHandle": "{œfieldNameœ: œllmœ, œidœ: œStructuredOutput-TgwNFœ, œinputTypesœ: [œLanguageModelœ], œtypeœ: œotherœ}"
"source": "OpenAIModel-YQpWE",
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-YQpWEœ, œnameœ: œmodel_outputœ, œoutput_typesœ: [œLanguageModelœ]}",
"target": "StructuredOutput-Aph6K",
"targetHandle": "{œfieldNameœ: œllmœ, œidœ: œStructuredOutput-Aph6Kœ, œinputTypesœ: [œLanguageModelœ], œtypeœ: œotherœ}"
},
{
"animated": false,
@ -119,7 +119,7 @@
"data": {
"sourceHandle": {
"dataType": "parser",
"id": "parser-4iVNG",
"id": "parser-0YWi5",
"name": "parsed_text",
"output_types": [
"Message"
@ -127,7 +127,7 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "ChatOutput-eTO66",
"id": "ChatOutput-CfBiH",
"inputTypes": [
"Data",
"DataFrame",
@ -136,19 +136,20 @@
"type": "str"
}
},
"id": "reactflow__edge-parser-4iVNG{œdataTypeœ:œparserœ,œidœ:œparser-4iVNGœ,œnameœ:œparsed_textœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-eTO66{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-eTO66œ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-parser-0YWi5{œdataTypeœ:œparserœ,œidœ:œparser-0YWi5œ,œnameœ:œparsed_textœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-CfBiH{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-CfBiHœ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "parser-4iVNG",
"sourceHandle": "{œdataTypeœ: œparserœ, œidœ: œparser-4iVNGœ, œnameœ: œparsed_textœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-eTO66",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-eTO66œ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œstrœ}"
"source": "parser-0YWi5",
"sourceHandle": "{œdataTypeœ: œparserœ, œidœ: œparser-0YWi5œ, œnameœ: œparsed_textœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-CfBiH",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-CfBiHœ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
"className": "",
"data": {
"sourceHandle": {
"dataType": "StructuredOutput",
"id": "StructuredOutput-TgwNF",
"id": "StructuredOutput-Aph6K",
"name": "structured_output",
"output_types": [
"Data"
@ -156,7 +157,7 @@
},
"targetHandle": {
"fieldName": "input_data",
"id": "parser-4iVNG",
"id": "parser-0YWi5",
"inputTypes": [
"DataFrame",
"Data"
@ -164,12 +165,12 @@
"type": "other"
}
},
"id": "xy-edge__StructuredOutput-TgwNF{œdataTypeœ:œStructuredOutputœ,œidœ:œStructuredOutput-TgwNFœ,œnameœ:œstructured_outputœ,œoutput_typesœ:[œDataœ]}-parser-4iVNG{œfieldNameœ:œinput_dataœ,œidœ:œparser-4iVNGœ,œinputTypesœ:[œDataFrameœ,œDataœ],œtypeœ:œotherœ}",
"id": "xy-edge__StructuredOutput-Aph6K{œdataTypeœ:œStructuredOutputœ,œidœ:œStructuredOutput-Aph6Kœ,œnameœ:œstructured_outputœ,œoutput_typesœ:[œDataœ]}-parser-0YWi5{œfieldNameœ:œinput_dataœ,œidœ:œparser-0YWi5œ,œinputTypesœ:[œDataFrameœ,œDataœ],œtypeœ:œotherœ}",
"selected": false,
"source": "StructuredOutput-TgwNF",
"sourceHandle": "{œdataTypeœ: œStructuredOutputœ, œidœ: œStructuredOutput-TgwNFœ, œnameœ: œstructured_outputœ, œoutput_typesœ: [œDataœ]}",
"target": "parser-4iVNG",
"targetHandle": "{œfieldNameœ: œinput_dataœ, œidœ: œparser-4iVNGœ, œinputTypesœ: [œDataFrameœ, œDataœ], œtypeœ: œotherœ}"
"source": "StructuredOutput-Aph6K",
"sourceHandle": "{œdataTypeœ: œStructuredOutputœ, œidœ: œStructuredOutput-Aph6Kœ, œnameœ: œstructured_outputœ, œoutput_typesœ: [œDataœ]}",
"target": "parser-0YWi5",
"targetHandle": "{œfieldNameœ: œinput_dataœ, œidœ: œparser-0YWi5œ, œinputTypesœ: [œDataFrameœ, œDataœ], œtypeœ: œotherœ}"
}
],
"nodes": [
@ -177,7 +178,7 @@
"data": {
"description": "Get chat inputs from the Playground.",
"display_name": "Chat Input",
"id": "ChatInput-xGZs1",
"id": "ChatInput-Vu7qu",
"node": {
"base_classes": [
"Message"
@ -454,7 +455,7 @@
},
"dragging": false,
"height": 234,
"id": "ChatInput-xGZs1",
"id": "ChatInput-Vu7qu",
"measured": {
"height": 234,
"width": 320
@ -475,7 +476,7 @@
"data": {
"description": "Display a chat message in the Playground.",
"display_name": "Chat Output",
"id": "ChatOutput-eTO66",
"id": "ChatOutput-CfBiH",
"node": {
"base_classes": [
"Message"
@ -758,7 +759,7 @@
},
"dragging": false,
"height": 234,
"id": "ChatOutput-eTO66",
"id": "ChatOutput-CfBiH",
"measured": {
"height": 234,
"width": 320
@ -777,7 +778,7 @@
},
{
"data": {
"id": "note-tcZdh",
"id": "note-wiaOc",
"node": {
"description": "# Market Research\nThis flow helps you gather comprehensive information about companies for sales and business intelligence purposes.\n\n## Prerequisites\n\n- **[Tavily API Key](https://docs.tavily.com/welcome)**\n- **[OpenAI API Key](https://platform.openai.com/)**\n\n## Quickstart\n\n1. Add your **OpenAI API key** to the **OpenAI** model and **Agent** components.\n2. Add your **Tavily API key** to the **Tavily Search** component.\n3. In the **Chat Input**, enter a company name you want to research.\n4. Open the **Playground** and research the company. The **Structured Output** component transforms the raw LLM response into structured data, and the **Parser** component presents the data as text for the **Chat output** component to present.",
"display_name": "",
@ -790,7 +791,7 @@
},
"dragging": false,
"height": 671,
"id": "note-tcZdh",
"id": "note-wiaOc",
"measured": {
"height": 671,
"width": 660
@ -816,7 +817,7 @@
"data": {
"description": "Transforms LLM responses into **structured data formats**. Ideal for extracting specific information or creating consistent outputs.",
"display_name": "Structured Output",
"id": "StructuredOutput-TgwNF",
"id": "StructuredOutput-Aph6K",
"node": {
"base_classes": [
"Data",
@ -1127,7 +1128,7 @@
},
"dragging": false,
"height": 541,
"id": "StructuredOutput-TgwNF",
"id": "StructuredOutput-Aph6K",
"measured": {
"height": 541,
"width": 320
@ -1148,7 +1149,7 @@
"data": {
"description": "Define the agent's instructions, then enter a task to complete using tools.",
"display_name": "Agent",
"id": "Agent-GuZvV",
"id": "Agent-ZGDpX",
"node": {
"base_classes": [
"Message"
@ -1820,7 +1821,7 @@
},
"dragging": false,
"height": 650,
"id": "Agent-GuZvV",
"id": "Agent-ZGDpX",
"measured": {
"height": 650,
"width": 320
@ -1837,7 +1838,7 @@
"data": {
"description": "**Tavily AI** is a search engine optimized for LLMs and RAG, aimed at efficient, quick, and persistent search results.",
"display_name": "Tavily AI Search",
"id": "TavilySearchComponent-oQBdN",
"id": "TavilySearchComponent-Q9JKS",
"node": {
"base_classes": [
"Data",
@ -1896,7 +1897,7 @@
"dynamic": false,
"info": "Your Tavily API Key.",
"input_types": [],
"load_from_db": false,
"load_from_db": true,
"name": "api_key",
"password": true,
"placeholder": "",
@ -2218,7 +2219,7 @@
"type": "TavilySearchComponent"
},
"dragging": false,
"id": "TavilySearchComponent-oQBdN",
"id": "TavilySearchComponent-Q9JKS",
"measured": {
"height": 316,
"width": 320
@ -2232,7 +2233,7 @@
},
{
"data": {
"id": "OpenAIModel-kaJVR",
"id": "OpenAIModel-YQpWE",
"node": {
"base_classes": [
"LanguageModel",
@ -2609,9 +2610,9 @@
"type": "OpenAIModel"
},
"dragging": false,
"id": "OpenAIModel-kaJVR",
"id": "OpenAIModel-YQpWE",
"measured": {
"height": 540,
"height": 539,
"width": 320
},
"position": {
@ -2623,7 +2624,7 @@
},
{
"data": {
"id": "parser-4iVNG",
"id": "parser-0YWi5",
"node": {
"base_classes": [
"Message"
@ -2784,9 +2785,9 @@
"type": "parser"
},
"dragging": false,
"id": "parser-4iVNG",
"id": "parser-0YWi5",
"measured": {
"height": 361,
"height": 360,
"width": 320
},
"position": {
@ -2798,14 +2799,14 @@
}
],
"viewport": {
"x": -318.95425982795314,
"y": -363.533384278095,
"zoom": 0.6920146245449773
"x": -93.26437689350178,
"y": -217.58870925998986,
"zoom": 0.5616361094335138
}
},
"description": "Researches companies, extracts key business data, and presents structured information for efficient analysis. ",
"endpoint_name": null,
"id": "8ce19804-52f5-4894-9354-4272aff238f7",
"id": "33ed74a4-250a-45d3-aebd-8eea096cc3c5",
"is_component": false,
"last_tested_version": "1.4.3",
"name": "Market Research",

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@
"data": {
"sourceHandle": {
"dataType": "ChatInput",
"id": "ChatInput-KgyhN",
"id": "ChatInput-BUgw3",
"name": "message",
"output_types": [
"Message"
@ -15,7 +15,7 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "Prompt-o2zd8",
"id": "Prompt-gjXon",
"inputTypes": [
"Message",
"Text"
@ -23,12 +23,12 @@
"type": "str"
}
},
"id": "reactflow__edge-ChatInput-KgyhN{œdataTypeœ:œChatInputœ,œidœ:œChatInput-KgyhNœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-o2zd8{œfieldNameœ:œinput_valueœ,œidœ:œPrompt-o2zd8œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-ChatInput-BUgw3{œdataTypeœ:œChatInputœ,œidœ:œChatInput-BUgw3œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-gjXon{œfieldNameœ:œinput_valueœ,œidœ:œPrompt-gjXonœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"selected": false,
"source": "ChatInput-KgyhN",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-KgyhNœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-o2zd8",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œPrompt-o2zd8œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
"source": "ChatInput-BUgw3",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-BUgw3œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-gjXon",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œPrompt-gjXonœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -36,7 +36,7 @@
"data": {
"sourceHandle": {
"dataType": "Prompt",
"id": "Prompt-I3JbF",
"id": "Prompt-pmjSJ",
"name": "prompt",
"output_types": [
"Message"
@ -44,19 +44,19 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "Agent-TPxdA",
"id": "Agent-Z2V8G",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-Prompt-I3JbF{œdataTypeœ:œPromptœ,œidœ:œPrompt-I3JbFœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-TPxdA{œfieldNameœ:œinput_valueœ,œidœ:œAgent-TPxdAœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-Prompt-pmjSJ{œdataTypeœ:œPromptœ,œidœ:œPrompt-pmjSJœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-Z2V8G{œfieldNameœ:œinput_valueœ,œidœ:œAgent-Z2V8Gœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "Prompt-I3JbF",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-I3JbFœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "Agent-TPxdA",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-TPxdAœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "Prompt-pmjSJ",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-pmjSJœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "Agent-Z2V8G",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-Z2V8Gœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -64,7 +64,7 @@
"data": {
"sourceHandle": {
"dataType": "Agent",
"id": "Agent-TPxdA",
"id": "Agent-Z2V8G",
"name": "response",
"output_types": [
"Message"
@ -72,7 +72,7 @@
},
"targetHandle": {
"fieldName": "search_results",
"id": "Prompt-o2zd8",
"id": "Prompt-gjXon",
"inputTypes": [
"Message",
"Text"
@ -80,12 +80,12 @@
"type": "str"
}
},
"id": "reactflow__edge-Agent-TPxdA{œdataTypeœ:œAgentœ,œidœ:œAgent-TPxdAœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Prompt-o2zd8{œfieldNameœ:œsearch_resultsœ,œidœ:œPrompt-o2zd8œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-Agent-Z2V8G{œdataTypeœ:œAgentœ,œidœ:œAgent-Z2V8Gœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Prompt-gjXon{œfieldNameœ:œsearch_resultsœ,œidœ:œPrompt-gjXonœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"selected": false,
"source": "Agent-TPxdA",
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-TPxdAœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-o2zd8",
"targetHandle": "{œfieldNameœ: œsearch_resultsœ, œidœ: œPrompt-o2zd8œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
"source": "Agent-Z2V8G",
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-Z2V8Gœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-gjXon",
"targetHandle": "{œfieldNameœ: œsearch_resultsœ, œidœ: œPrompt-gjXonœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -93,7 +93,7 @@
"data": {
"sourceHandle": {
"dataType": "TavilySearchComponent",
"id": "TavilySearchComponent-okHYL",
"id": "TavilySearchComponent-bQqQ3",
"name": "component_as_tool",
"output_types": [
"Tool"
@ -101,19 +101,19 @@
},
"targetHandle": {
"fieldName": "tools",
"id": "Agent-TPxdA",
"id": "Agent-Z2V8G",
"inputTypes": [
"Tool"
],
"type": "other"
}
},
"id": "reactflow__edge-TavilySearchComponent-okHYL{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-okHYLœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-TPxdA{œfieldNameœ:œtoolsœ,œidœ:œAgent-TPxdAœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-TavilySearchComponent-bQqQ3{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-bQqQ3œ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-Z2V8G{œfieldNameœ:œtoolsœ,œidœ:œAgent-Z2V8Gœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"selected": false,
"source": "TavilySearchComponent-okHYL",
"sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-okHYLœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-TPxdA",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-TPxdAœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
"source": "TavilySearchComponent-bQqQ3",
"sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-bQqQ3œ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-Z2V8G",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-Z2V8Gœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
},
{
"animated": false,
@ -121,7 +121,7 @@
"data": {
"sourceHandle": {
"dataType": "Prompt",
"id": "Prompt-saNk6",
"id": "Prompt-GEpb2",
"name": "prompt",
"output_types": [
"Message"
@ -129,19 +129,19 @@
},
"targetHandle": {
"fieldName": "system_message",
"id": "OpenAIModel-sO8rf",
"id": "OpenAIModel-6XjJL",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-Prompt-saNk6{œdataTypeœ:œPromptœ,œidœ:œPrompt-saNk6œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-sO8rf{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-sO8rfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-Prompt-GEpb2{œdataTypeœ:œPromptœ,œidœ:œPrompt-GEpb2œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-6XjJL{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-6XjJLœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "Prompt-saNk6",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-saNk6œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-sO8rf",
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-sO8rfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "Prompt-GEpb2",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-GEpb2œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-6XjJL",
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-6XjJLœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -149,7 +149,7 @@
"data": {
"sourceHandle": {
"dataType": "ChatInput",
"id": "ChatInput-KgyhN",
"id": "ChatInput-BUgw3",
"name": "message",
"output_types": [
"Message"
@ -157,19 +157,19 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "OpenAIModel-sO8rf",
"id": "OpenAIModel-6XjJL",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-ChatInput-KgyhN{œdataTypeœ:œChatInputœ,œidœ:œChatInput-KgyhNœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-sO8rf{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-sO8rfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-ChatInput-BUgw3{œdataTypeœ:œChatInputœ,œidœ:œChatInput-BUgw3œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-6XjJL{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-6XjJLœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "ChatInput-KgyhN",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-KgyhNœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-sO8rf",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-sO8rfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "ChatInput-BUgw3",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-BUgw3œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-6XjJL",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-6XjJLœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -177,7 +177,7 @@
"data": {
"sourceHandle": {
"dataType": "OpenAIModel",
"id": "OpenAIModel-sO8rf",
"id": "OpenAIModel-6XjJL",
"name": "text_output",
"output_types": [
"Message"
@ -185,7 +185,7 @@
},
"targetHandle": {
"fieldName": "previous_response",
"id": "Prompt-I3JbF",
"id": "Prompt-pmjSJ",
"inputTypes": [
"Message",
"Text"
@ -193,12 +193,12 @@
"type": "str"
}
},
"id": "reactflow__edge-OpenAIModel-sO8rf{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-sO8rfœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-Prompt-I3JbF{œfieldNameœ:œprevious_responseœ,œidœ:œPrompt-I3JbFœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-OpenAIModel-6XjJL{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-6XjJLœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-Prompt-pmjSJ{œfieldNameœ:œprevious_responseœ,œidœ:œPrompt-pmjSJœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"selected": false,
"source": "OpenAIModel-sO8rf",
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-sO8rfœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-I3JbF",
"targetHandle": "{œfieldNameœ: œprevious_responseœ, œidœ: œPrompt-I3JbFœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
"source": "OpenAIModel-6XjJL",
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-6XjJLœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-pmjSJ",
"targetHandle": "{œfieldNameœ: œprevious_responseœ, œidœ: œPrompt-pmjSJœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -206,7 +206,7 @@
"data": {
"sourceHandle": {
"dataType": "Prompt",
"id": "Prompt-o2zd8",
"id": "Prompt-gjXon",
"name": "prompt",
"output_types": [
"Message"
@ -214,19 +214,19 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "OpenAIModel-1pnlf",
"id": "OpenAIModel-rCRSl",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-Prompt-o2zd8{œdataTypeœ:œPromptœ,œidœ:œPrompt-o2zd8œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-1pnlf{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-1pnlfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-Prompt-gjXon{œdataTypeœ:œPromptœ,œidœ:œPrompt-gjXonœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-rCRSl{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-rCRSlœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "Prompt-o2zd8",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-o2zd8œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-1pnlf",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-1pnlfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "Prompt-gjXon",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-gjXonœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-rCRSl",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-rCRSlœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -234,7 +234,7 @@
"data": {
"sourceHandle": {
"dataType": "Prompt",
"id": "Prompt-z31Nf",
"id": "Prompt-LzmiE",
"name": "prompt",
"output_types": [
"Message"
@ -242,19 +242,19 @@
},
"targetHandle": {
"fieldName": "system_message",
"id": "OpenAIModel-1pnlf",
"id": "OpenAIModel-rCRSl",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-Prompt-z31Nf{œdataTypeœ:œPromptœ,œidœ:œPrompt-z31Nfœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-1pnlf{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-1pnlfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-Prompt-LzmiE{œdataTypeœ:œPromptœ,œidœ:œPrompt-LzmiEœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-rCRSl{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-rCRSlœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "Prompt-z31Nf",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-z31Nfœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-1pnlf",
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-1pnlfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "Prompt-LzmiE",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-LzmiEœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-rCRSl",
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-rCRSlœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -262,7 +262,7 @@
"data": {
"sourceHandle": {
"dataType": "OpenAIModel",
"id": "OpenAIModel-1pnlf",
"id": "OpenAIModel-rCRSl",
"name": "text_output",
"output_types": [
"Message"
@ -270,7 +270,7 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "ChatOutput-Fg9B4",
"id": "ChatOutput-qShGq",
"inputTypes": [
"Data",
"DataFrame",
@ -279,12 +279,12 @@
"type": "other"
}
},
"id": "reactflow__edge-OpenAIModel-1pnlf{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-1pnlfœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-Fg9B4{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-Fg9B4œ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-OpenAIModel-rCRSl{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-rCRSlœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-qShGq{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-qShGqœ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œotherœ}",
"selected": false,
"source": "OpenAIModel-1pnlf",
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-1pnlfœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-Fg9B4",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-Fg9B4œ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œotherœ}"
"source": "OpenAIModel-rCRSl",
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-rCRSlœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-qShGq",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-qShGqœ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œotherœ}"
}
],
"nodes": [
@ -292,7 +292,7 @@
"data": {
"description": "Create a prompt template with dynamic variables.",
"display_name": "Prompt",
"id": "Prompt-I3JbF",
"id": "Prompt-pmjSJ",
"node": {
"base_classes": [
"Message"
@ -314,7 +314,7 @@
"frozen": false,
"icon": "braces",
"legacy": false,
"lf_version": "1.0.19.post2",
"lf_version": "1.4.3",
"metadata": {},
"output_types": [],
"outputs": [
@ -425,7 +425,7 @@
},
"dragging": false,
"height": 347,
"id": "Prompt-I3JbF",
"id": "Prompt-pmjSJ",
"measured": {
"height": 347,
"width": 320
@ -444,7 +444,7 @@
},
{
"data": {
"id": "ChatInput-KgyhN",
"id": "ChatInput-BUgw3",
"node": {
"base_classes": [
"Message"
@ -472,7 +472,7 @@
"icon": "MessagesSquare",
"key": "ChatInput",
"legacy": false,
"lf_version": "1.0.19.post2",
"lf_version": "1.4.3",
"metadata": {},
"output_types": [],
"outputs": [
@ -723,7 +723,7 @@
},
"dragging": false,
"height": 234,
"id": "ChatInput-KgyhN",
"id": "ChatInput-BUgw3",
"measured": {
"height": 234,
"width": 320
@ -744,7 +744,7 @@
"data": {
"description": "Create a prompt template with dynamic variables.",
"display_name": "Prompt",
"id": "Prompt-o2zd8",
"id": "Prompt-gjXon",
"node": {
"base_classes": [
"Message"
@ -767,7 +767,7 @@
"frozen": false,
"icon": "braces",
"legacy": false,
"lf_version": "1.0.19.post2",
"lf_version": "1.4.3",
"metadata": {},
"output_types": [],
"outputs": [
@ -901,7 +901,7 @@
},
"dragging": false,
"height": 433,
"id": "Prompt-o2zd8",
"id": "Prompt-gjXon",
"measured": {
"height": 433,
"width": 320
@ -920,7 +920,7 @@
},
{
"data": {
"id": "note-DarNU",
"id": "note-KPs4x",
"node": {
"description": "# Research Agent \n\nWelcome to the Research Agent! This flow helps you conduct in-depth research on various topics using AI-powered tools and analysis.\n\n## Instructions\n1. Enter Your Research Query\n - Type your research question or topic into the Chat Input node.\n - Be specific and clear about what you want to investigate.\n\n2. Generate Research Plan\n - The system will create a focused research plan based on your query.\n - This plan includes key search queries and priorities.\n\n3. Conduct Web Search\n - The Tavily AI Search tool will perform web searches using the generated queries.\n - It focuses on finding academic and reliable sources.\n\n4. Analyze and Synthesize\n - The AI agent will review the search results and create a comprehensive synthesis.\n - The report includes an executive summary, methodology, findings, and conclusions.\n\n5. Review the Output\n - Read the final report in the Chat Output node.\n - Use this information as a starting point for further research or decision-making.\n\nRemember: You can refine your initial query for more specific results! 🔍📊",
"display_name": "",
@ -933,7 +933,7 @@
},
"dragging": false,
"height": 694,
"id": "note-DarNU",
"id": "note-KPs4x",
"measured": {
"height": 694,
"width": 325
@ -959,7 +959,7 @@
"data": {
"description": "Define the agent's instructions, then enter a task to complete using tools.",
"display_name": "Agent",
"id": "Agent-TPxdA",
"id": "Agent-Z2V8G",
"node": {
"base_classes": [
"Message"
@ -1002,7 +1002,7 @@
"frozen": false,
"icon": "bot",
"legacy": false,
"lf_version": "1.0.19.post2",
"lf_version": "1.4.3",
"metadata": {},
"output_types": [],
"outputs": [
@ -1108,7 +1108,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": "OPENAI_API_KEY"
"value": ""
},
"code": {
"advanced": true,
@ -1631,7 +1631,7 @@
},
"dragging": false,
"height": 658,
"id": "Agent-TPxdA",
"id": "Agent-Z2V8G",
"measured": {
"height": 658,
"width": 320
@ -1652,7 +1652,7 @@
"data": {
"description": "Create a prompt template with dynamic variables.",
"display_name": "Prompt",
"id": "Prompt-saNk6",
"id": "Prompt-GEpb2",
"node": {
"base_classes": [
"Message"
@ -1672,7 +1672,7 @@
"frozen": false,
"icon": "braces",
"legacy": false,
"lf_version": "1.0.19.post2",
"lf_version": "1.4.3",
"metadata": {},
"output_types": [],
"outputs": [
@ -1760,7 +1760,7 @@
},
"dragging": false,
"height": 260,
"id": "Prompt-saNk6",
"id": "Prompt-GEpb2",
"measured": {
"height": 260,
"width": 320
@ -1781,7 +1781,7 @@
"data": {
"description": "Create a prompt template with dynamic variables.",
"display_name": "Prompt",
"id": "Prompt-z31Nf",
"id": "Prompt-LzmiE",
"node": {
"base_classes": [
"Message"
@ -1801,7 +1801,7 @@
"frozen": false,
"icon": "braces",
"legacy": false,
"lf_version": "1.0.19.post2",
"lf_version": "1.4.3",
"metadata": {},
"output_types": [],
"outputs": [
@ -1889,7 +1889,7 @@
},
"dragging": false,
"height": 260,
"id": "Prompt-z31Nf",
"id": "Prompt-LzmiE",
"measured": {
"height": 260,
"width": 320
@ -1908,7 +1908,7 @@
},
{
"data": {
"id": "note-ZQq6I",
"id": "note-J4Hc2",
"node": {
"description": "# 🔑 Tavily AI Search Needs API Key\n\nYou can get 1000 searches/month free [here](https://tavily.com/) ",
"display_name": "",
@ -1921,7 +1921,7 @@
},
"dragging": false,
"height": 325,
"id": "note-ZQq6I",
"id": "note-J4Hc2",
"measured": {
"height": 325,
"width": 326
@ -1940,7 +1940,7 @@
},
{
"data": {
"id": "TavilySearchComponent-okHYL",
"id": "TavilySearchComponent-bQqQ3",
"node": {
"base_classes": [
"Data",
@ -1966,6 +1966,7 @@
"frozen": false,
"icon": "TavilyIcon",
"legacy": false,
"lf_version": "1.4.3",
"metadata": {},
"minimized": false,
"output_types": [],
@ -1974,6 +1975,7 @@
"allows_loop": false,
"cache": true,
"display_name": "Toolset",
"group_outputs": false,
"hidden": null,
"method": "to_toolkit",
"name": "component_as_tool",
@ -2005,7 +2007,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": "TAVILY_API_KEY"
"value": ""
},
"chunks_per_source": {
"_input_type": "IntInput",
@ -2250,11 +2252,11 @@
"type": "str"
},
"tools_metadata": {
"_input_type": "TableInput",
"_input_type": "ToolsInput",
"advanced": false,
"display_name": "Edit tools",
"display_name": "Actions",
"dynamic": false,
"info": "",
"info": "Modify tool names and descriptions to help agents understand when to use each tool.",
"is_list": true,
"list_add_label": "Add More",
"name": "tools_metadata",
@ -2262,100 +2264,28 @@
"real_time_refresh": true,
"required": false,
"show": true,
"table_icon": "Hammer",
"table_options": {
"block_add": true,
"block_delete": true,
"block_edit": true,
"block_filter": true,
"block_hide": true,
"block_select": true,
"block_sort": true,
"description": "Modify tool names and descriptions to help agents understand when to use each tool.",
"field_parsers": {
"commands": "commands",
"name": [
"snake_case",
"no_blank"
]
},
"hide_options": true
},
"table_schema": {
"columns": [
{
"default": "None",
"description": "Specify the name of the tool.",
"disable_edit": false,
"display_name": "Tool Name",
"edit_mode": "inline",
"filterable": false,
"formatter": "text",
"hidden": false,
"name": "name",
"sortable": false,
"type": "str"
},
{
"default": "None",
"description": "Describe the purpose of the tool.",
"disable_edit": false,
"display_name": "Tool Description",
"edit_mode": "popover",
"filterable": false,
"formatter": "text",
"hidden": false,
"name": "description",
"sortable": false,
"type": "str"
},
{
"default": "None",
"description": "The default identifiers for the tools and cannot be changed.",
"disable_edit": true,
"display_name": "Tool Identifiers",
"edit_mode": "inline",
"filterable": false,
"formatter": "text",
"hidden": true,
"name": "tags",
"sortable": false,
"type": "str"
},
{
"default": true,
"description": "Indicates whether the tool is currently active. Set to True to activate this tool.",
"disable_edit": false,
"display_name": "Enable",
"edit_mode": "popover",
"filterable": true,
"formatter": "boolean",
"hidden": false,
"name": "status",
"sortable": true,
"type": "boolean"
}
]
},
"title_case": false,
"tool_mode": false,
"trace_as_metadata": true,
"trigger_icon": "Hammer",
"trigger_text": "",
"type": "table",
"type": "tools",
"value": [
{
"description": "fetch_content(api_key: Message) - **Tavily AI** is a search engine optimized for LLMs and RAG, aimed at efficient, quick, and persistent search results.",
"name": "TavilySearchComponent-fetch_content",
"args": {
"query": {
"default": "",
"description": "The search query you want to execute with Tavily.",
"title": "Query",
"type": "string"
}
},
"description": "TavilySearchComponent. fetch_content_dataframe - **Tavily Search** is a search engine optimized for LLMs and RAG, aimed at efficient, quick, and persistent search results.",
"display_description": "TavilySearchComponent. fetch_content_dataframe - **Tavily Search** is a search engine optimized for LLMs and RAG, aimed at efficient, quick, and persistent search results.",
"display_name": "fetch_content_dataframe",
"name": "fetch_content_dataframe",
"readonly": false,
"status": true,
"tags": [
"TavilySearchComponent-fetch_content"
]
},
{
"description": "fetch_content_text(api_key: Message) - **Tavily AI** is a search engine optimized for LLMs and RAG, aimed at efficient, quick, and persistent search results.",
"name": "TavilySearchComponent-fetch_content_text",
"tags": [
"TavilySearchComponent-fetch_content_text"
"fetch_content_dataframe"
]
}
]
@ -2391,9 +2321,9 @@
"type": "TavilySearchComponent"
},
"dragging": false,
"id": "TavilySearchComponent-okHYL",
"id": "TavilySearchComponent-bQqQ3",
"measured": {
"height": 437,
"height": 316,
"width": 320
},
"position": {
@ -2405,7 +2335,7 @@
},
{
"data": {
"id": "OpenAIModel-sO8rf",
"id": "OpenAIModel-6XjJL",
"node": {
"base_classes": [
"LanguageModel",
@ -2436,6 +2366,7 @@
"icon": "OpenAI",
"key": "OpenAIModel",
"legacy": false,
"lf_version": "1.4.3",
"metadata": {
"keywords": [
"model",
@ -2495,7 +2426,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": "OPENAI_API_KEY"
"value": ""
},
"code": {
"advanced": true,
@ -2781,9 +2712,9 @@
"type": "OpenAIModel"
},
"dragging": false,
"id": "OpenAIModel-sO8rf",
"id": "OpenAIModel-6XjJL",
"measured": {
"height": 525,
"height": 539,
"width": 320
},
"position": {
@ -2795,7 +2726,7 @@
},
{
"data": {
"id": "OpenAIModel-1pnlf",
"id": "OpenAIModel-rCRSl",
"node": {
"base_classes": [
"LanguageModel",
@ -2826,6 +2757,7 @@
"icon": "OpenAI",
"key": "OpenAIModel",
"legacy": false,
"lf_version": "1.4.3",
"metadata": {
"keywords": [
"model",
@ -2885,7 +2817,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": "OPENAI_API_KEY"
"value": ""
},
"code": {
"advanced": true,
@ -3171,9 +3103,9 @@
"type": "OpenAIModel"
},
"dragging": false,
"id": "OpenAIModel-1pnlf",
"id": "OpenAIModel-rCRSl",
"measured": {
"height": 525,
"height": 539,
"width": 320
},
"position": {
@ -3185,7 +3117,7 @@
},
{
"data": {
"id": "ChatOutput-Fg9B4",
"id": "ChatOutput-qShGq",
"node": {
"base_classes": [
"Message"
@ -3214,6 +3146,7 @@
"icon": "MessagesSquare",
"key": "ChatOutput",
"legacy": false,
"lf_version": "1.4.3",
"metadata": {},
"minimized": true,
"output_types": [],
@ -3480,9 +3413,9 @@
"showNode": false,
"type": "ChatOutput"
},
"id": "ChatOutput-Fg9B4",
"id": "ChatOutput-qShGq",
"measured": {
"height": 66,
"height": 48,
"width": 192
},
"position": {
@ -3494,16 +3427,16 @@
}
],
"viewport": {
"x": -154.13080129013133,
"y": 193.27768148412844,
"zoom": 0.436204605187947
"x": -270.56486809177886,
"y": 55.40724387742989,
"zoom": 0.4817049597080576
}
},
"description": "Agent that generates focused plans, conducts web searches, and synthesizes findings into comprehensive reports.",
"endpoint_name": null,
"id": "b833e38c-c394-4bde-b35c-334ce43a0476",
"id": "c42f508b-de52-4d07-b2fa-ffe15e5212a1",
"is_component": false,
"last_tested_version": "1.2.0",
"last_tested_version": "1.4.3",
"name": "Research Agent",
"tags": [
"assistants",

File diff suppressed because one or more lines are too long

View file

@ -1,42 +1,13 @@
{
"data": {
"edges": [
{
"animated": false,
"className": "",
"data": {
"sourceHandle": {
"dataType": "Agent",
"id": "Agent-GgGua",
"name": "response",
"output_types": [
"Message"
]
},
"targetHandle": {
"fieldName": "input_value",
"id": "ChatOutput-SplPb",
"inputTypes": [
"Data",
"DataFrame",
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-Agent-GgGua{œdataTypeœ:œAgentœ,œidœ:œAgent-GgGuaœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-SplPb{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-SplPbœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"source": "Agent-GgGua",
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-GgGuaœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-SplPb",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-SplPbœ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
"className": "",
"data": {
"sourceHandle": {
"dataType": "Prompt",
"id": "Prompt-tqP9Q",
"id": "Prompt-PX9QB",
"name": "prompt",
"output_types": [
"Message"
@ -44,25 +15,27 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "Agent-GgGua",
"id": "Agent-sir3U",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-Prompt-tqP9Q{œdataTypeœ:œPromptœ,œidœ:œPrompt-tqP9Qœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-GgGua{œfieldNameœ:œinput_valueœ,œidœ:œAgent-GgGuaœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"source": "Prompt-tqP9Q",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-tqP9Qœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "Agent-GgGua",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-GgGuaœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"id": "reactflow__edge-Prompt-PX9QB{œdataTypeœ:œPromptœ,œidœ:œPrompt-PX9QBœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-sir3U{œfieldNameœ:œinput_valueœ,œidœ:œAgent-sir3Uœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "Prompt-PX9QB",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-PX9QBœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "Agent-sir3U",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-sir3Uœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
"className": "",
"data": {
"sourceHandle": {
"dataType": "CalculatorComponent",
"id": "CalculatorComponent-LyoFm",
"id": "CalculatorComponent-JhT2c",
"name": "component_as_tool",
"output_types": [
"Tool"
@ -70,18 +43,49 @@
},
"targetHandle": {
"fieldName": "tools",
"id": "Agent-GgGua",
"id": "Agent-sir3U",
"inputTypes": [
"Tool"
],
"type": "other"
}
},
"id": "reactflow__edge-CalculatorComponent-LyoFm{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-LyoFmœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-GgGua{œfieldNameœ:œtoolsœ,œidœ:œAgent-GgGuaœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"source": "CalculatorComponent-LyoFm",
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-LyoFmœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-GgGua",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-GgGuaœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
"id": "reactflow__edge-CalculatorComponent-JhT2c{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-JhT2cœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-sir3U{œfieldNameœ:œtoolsœ,œidœ:œAgent-sir3Uœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"selected": false,
"source": "CalculatorComponent-JhT2c",
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-JhT2cœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-sir3U",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-sir3Uœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
},
{
"animated": false,
"className": "",
"data": {
"sourceHandle": {
"dataType": "Agent",
"id": "Agent-sir3U",
"name": "response",
"output_types": [
"Message"
]
},
"targetHandle": {
"fieldName": "input_value",
"id": "ChatOutput-tv6P2",
"inputTypes": [
"Data",
"DataFrame",
"Message"
],
"type": "other"
}
},
"id": "xy-edge__Agent-sir3U{œdataTypeœ:œAgentœ,œidœ:œAgent-sir3Uœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-tv6P2{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-tv6P2œ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œotherœ}",
"selected": false,
"source": "Agent-sir3U",
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-sir3Uœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-tv6P2",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-tv6P2œ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œotherœ}"
}
],
"nodes": [
@ -89,7 +93,7 @@
"data": {
"description": "Create a prompt template with dynamic variables.",
"display_name": "Prompt",
"id": "Prompt-tqP9Q",
"id": "Prompt-PX9QB",
"node": {
"base_classes": [
"Message"
@ -115,7 +119,7 @@
"frozen": false,
"icon": "braces",
"legacy": false,
"lf_version": "1.0.19.post2",
"lf_version": "1.4.2",
"metadata": {},
"output_types": [],
"outputs": [
@ -318,7 +322,7 @@
},
"dragging": false,
"height": 693,
"id": "Prompt-tqP9Q",
"id": "Prompt-PX9QB",
"measured": {
"height": 693,
"width": 320
@ -339,7 +343,7 @@
"data": {
"description": "Display a chat message in the Playground.",
"display_name": "Chat Output",
"id": "ChatOutput-SplPb",
"id": "ChatOutput-tv6P2",
"node": {
"base_classes": [
"Message"
@ -360,13 +364,15 @@
"data_template",
"background_color",
"chat_icon",
"text_color"
"text_color",
"clean_data"
],
"frozen": false,
"icon": "MessagesSquare",
"legacy": false,
"lf_version": "1.0.19.post2",
"lf_version": "1.4.2",
"metadata": {},
"minimized": true,
"output_types": [],
"outputs": [
{
@ -397,6 +403,7 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "background_color",
"placeholder": "",
@ -419,6 +426,7 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "chat_icon",
"placeholder": "",
@ -477,6 +485,7 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "data_template",
"placeholder": "",
@ -490,7 +499,7 @@
"value": "{text}"
},
"input_value": {
"_input_type": "MessageInput",
"_input_type": "HandleInput",
"advanced": false,
"display_name": "Inputs",
"dynamic": false,
@ -501,21 +510,21 @@
"Message"
],
"list": false,
"load_from_db": false,
"list_add_label": "Add More",
"name": "input_value",
"placeholder": "",
"required": true,
"show": true,
"title_case": false,
"trace_as_input": true,
"trace_as_metadata": true,
"type": "str",
"type": "other",
"value": ""
},
"sender": {
"_input_type": "DropdownInput",
"advanced": true,
"combobox": false,
"dialog_inputs": {},
"display_name": "Sender Type",
"dynamic": false,
"info": "Type of sender.",
@ -524,10 +533,12 @@
"Machine",
"User"
],
"options_metadata": [],
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"toggle": false,
"tool_mode": false,
"trace_as_metadata": true,
"type": "str",
@ -543,6 +554,7 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "sender_name",
"placeholder": "",
@ -565,6 +577,7 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "session_id",
"placeholder": "",
@ -584,11 +597,13 @@
"dynamic": false,
"info": "Store the message in the history.",
"list": false,
"list_add_label": "Add More",
"name": "should_store_message",
"placeholder": "",
"required": false,
"show": true,
"title_case": false,
"tool_mode": false,
"trace_as_metadata": true,
"type": "bool",
"value": true
@ -603,6 +618,7 @@
"Message"
],
"list": false,
"list_add_label": "Add More",
"load_from_db": false,
"name": "text_color",
"placeholder": "",
@ -622,7 +638,7 @@
},
"dragging": false,
"height": 234,
"id": "ChatOutput-SplPb",
"id": "ChatOutput-tv6P2",
"measured": {
"height": 234,
"width": 320
@ -635,13 +651,13 @@
"x": 2240.3625274769397,
"y": 355.16302699218204
},
"selected": false,
"selected": true,
"type": "genericNode",
"width": 320
},
{
"data": {
"id": "note-VL2VP",
"id": "note-PwGXK",
"node": {
"description": "# SaaS Pricing Calculator\n\nWelcome to the SaaS Pricing Calculator! This flow helps you determine the optimal monthly subscription price for your software service.\n\n## Instructions\n\n1. Prepare Your Data\n - Gather information on monthly infrastructure costs\n - Calculate customer support expenses\n - Estimate continuous development costs\n - Decide on your desired profit margin\n - Determine the estimated number of subscribers\n\n2. Input Values\n - Enter the gathered data into the respective fields in the Prompt node\n - Double-check the accuracy of your inputs\n\n3. Run the Flow\n - Click the \"Run\" button to start the calculation process\n - The flow will use Chain-of-Thought prompting to guide the AI through the steps\n\n4. Review the Results\n - Examine the output in the Chat Output node\n - The result will show a breakdown of costs and the final subscription price\n\n5. Adjust and Refine\n - If needed, modify your inputs to explore different pricing scenarios\n - Re-run the flow to see how changes affect the final price\n\nRemember: Regularly update your costs and subscriber estimates to keep your pricing model accurate and competitive! 💼📊",
"display_name": "",
@ -652,10 +668,10 @@
},
"dragging": false,
"height": 800,
"id": "note-VL2VP",
"id": "note-PwGXK",
"measured": {
"height": 800,
"width": 324
"width": 325
},
"position": {
"x": 689.7659055360411,
@ -666,7 +682,7 @@
"y": 68.95847391680593
},
"resizing": false,
"selected": true,
"selected": false,
"style": {
"height": 800,
"width": 324
@ -678,7 +694,7 @@
"data": {
"description": "Define the agent's instructions, then enter a task to complete using tools.",
"display_name": "Agent",
"id": "Agent-GgGua",
"id": "Agent-sir3U",
"node": {
"base_classes": [
"Message"
@ -721,7 +737,7 @@
"frozen": false,
"icon": "bot",
"legacy": false,
"lf_version": "1.0.19.post2",
"lf_version": "1.4.2",
"metadata": {},
"output_types": [],
"outputs": [
@ -827,7 +843,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": "OPENAI_API_KEY"
"value": ""
},
"code": {
"advanced": true,
@ -1350,7 +1366,7 @@
},
"dragging": false,
"height": 650,
"id": "Agent-GgGua",
"id": "Agent-sir3U",
"measured": {
"height": 650,
"width": 320
@ -1369,7 +1385,7 @@
},
{
"data": {
"id": "CalculatorComponent-LyoFm",
"id": "CalculatorComponent-JhT2c",
"node": {
"base_classes": [
"Data"
@ -1389,6 +1405,7 @@
"icon": "calculator",
"key": "CalculatorComponent",
"legacy": false,
"lf_version": "1.4.2",
"metadata": {},
"minimized": false,
"output_types": [],
@ -1397,11 +1414,14 @@
"allows_loop": false,
"cache": true,
"display_name": "Toolset",
"group_outputs": false,
"hidden": null,
"method": "to_toolkit",
"name": "component_as_tool",
"options": null,
"required_inputs": null,
"selected": "Tool",
"tool_mode": true,
"types": [
"Tool"
],
@ -1454,11 +1474,11 @@
"value": ""
},
"tools_metadata": {
"_input_type": "TableInput",
"_input_type": "ToolsInput",
"advanced": false,
"display_name": "Edit tools",
"display_name": "Actions",
"dynamic": false,
"info": "",
"info": "Modify tool names and descriptions to help agents understand when to use each tool.",
"is_list": true,
"list_add_label": "Add More",
"name": "tools_metadata",
@ -1466,74 +1486,28 @@
"real_time_refresh": true,
"required": false,
"show": true,
"table_icon": "Hammer",
"table_options": {
"block_add": true,
"block_delete": true,
"block_edit": true,
"block_filter": true,
"block_hide": true,
"block_select": true,
"block_sort": true,
"description": "Modify tool names and descriptions to help agents understand when to use each tool.",
"field_parsers": {
"commands": "commands",
"name": [
"snake_case",
"no_blank"
]
},
"hide_options": true
},
"table_schema": {
"columns": [
{
"description": "Specify the name of the tool.",
"disable_edit": false,
"display_name": "Tool Name",
"edit_mode": "inline",
"filterable": false,
"formatter": "text",
"name": "name",
"sortable": false,
"type": "text"
},
{
"description": "Describe the purpose of the tool.",
"disable_edit": false,
"display_name": "Tool Description",
"edit_mode": "popover",
"filterable": false,
"formatter": "text",
"name": "description",
"sortable": false,
"type": "text"
},
{
"description": "The default identifiers for the tools and cannot be changed.",
"disable_edit": true,
"display_name": "Tool Identifiers",
"edit_mode": "inline",
"filterable": false,
"formatter": "text",
"name": "tags",
"sortable": false,
"type": "text"
}
]
},
"title_case": false,
"tool_mode": false,
"trace_as_metadata": true,
"trigger_icon": "Hammer",
"trigger_text": "",
"type": "table",
"type": "tools",
"value": [
{
"description": "evaluate_expression() - Perform basic arithmetic operations on a given expression.",
"name": "None-evaluate_expression",
"args": {
"expression": {
"default": "",
"description": "The arithmetic expression to evaluate (e.g., '4*4*(33/22)+12-20').",
"title": "Expression",
"type": "string"
}
},
"description": "CalculatorComponent. evaluate_expression - Perform basic arithmetic operations on a given expression.",
"display_description": "CalculatorComponent. evaluate_expression - Perform basic arithmetic operations on a given expression.",
"display_name": "evaluate_expression",
"name": "evaluate_expression",
"readonly": false,
"status": true,
"tags": [
"None-evaluate_expression"
"evaluate_expression"
]
}
]
@ -1546,9 +1520,9 @@
"type": "CalculatorComponent"
},
"dragging": false,
"id": "CalculatorComponent-LyoFm",
"id": "CalculatorComponent-JhT2c",
"measured": {
"height": 333,
"height": 218,
"width": 320
},
"position": {
@ -1560,18 +1534,16 @@
}
],
"viewport": {
"x": -419.5792282920602,
"y": 250.7080185506556,
"zoom": 0.7037132543294129
"x": -514.4665122679305,
"y": 57.59497096606026,
"zoom": 0.5864177566573868
}
},
"description": "Calculate SaaS subscription price based on costs, profit margin, and subscribers using step-by-step method and Chain-of-Thought prompting. ",
"endpoint_name": null,
"gradient": "3",
"icon": "calculator",
"id": "9357f72e-2121-4541-8e7d-74b7ba2ada2b",
"id": "45470d4c-fade-4ec5-8bc1-96f14160d957",
"is_component": false,
"last_tested_version": "1.1.1",
"last_tested_version": "1.4.2",
"name": "SaaS Pricing",
"tags": [
"agents",

View file

@ -7,7 +7,7 @@
"data": {
"sourceHandle": {
"dataType": "ApifyActors",
"id": "ApifyActors-n0Tjo",
"id": "ApifyActors-CVPGK",
"name": "tool",
"output_types": [
"Tool"
@ -15,19 +15,19 @@
},
"targetHandle": {
"fieldName": "tools",
"id": "Agent-EePDq",
"id": "Agent-yJhxC",
"inputTypes": [
"Tool"
],
"type": "other"
}
},
"id": "reactflow__edge-ApifyActors-n0Tjo{œdataTypeœ:œApifyActorsœ,œidœ:œApifyActors-n0Tjoœ,œnameœ:œtoolœ,œoutput_typesœ:[œToolœ]}-Agent-EePDq{œfieldNameœ:œtoolsœ,œidœ:œAgent-EePDqœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-ApifyActors-CVPGK{œdataTypeœ:œApifyActorsœ,œidœ:œApifyActors-CVPGKœ,œnameœ:œtoolœ,œoutput_typesœ:[œToolœ]}-Agent-yJhxC{œfieldNameœ:œtoolsœ,œidœ:œAgent-yJhxCœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"selected": false,
"source": "ApifyActors-n0Tjo",
"sourceHandle": "{œdataTypeœ: œApifyActorsœ, œidœ: œApifyActors-n0Tjoœ, œnameœ: œtoolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-EePDq",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-EePDqœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
"source": "ApifyActors-CVPGK",
"sourceHandle": "{œdataTypeœ: œApifyActorsœ, œidœ: œApifyActors-CVPGKœ, œnameœ: œtoolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-yJhxC",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-yJhxCœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
},
{
"animated": false,
@ -35,7 +35,7 @@
"data": {
"sourceHandle": {
"dataType": "ApifyActors",
"id": "ApifyActors-t44sy",
"id": "ApifyActors-tL94Y",
"name": "tool",
"output_types": [
"Tool"
@ -43,19 +43,19 @@
},
"targetHandle": {
"fieldName": "tools",
"id": "Agent-EePDq",
"id": "Agent-yJhxC",
"inputTypes": [
"Tool"
],
"type": "other"
}
},
"id": "reactflow__edge-ApifyActors-t44sy{œdataTypeœ:œApifyActorsœ,œidœ:œApifyActors-t44syœ,œnameœ:œtoolœ,œoutput_typesœ:[œToolœ]}-Agent-EePDq{œfieldNameœ:œtoolsœ,œidœ:œAgent-EePDqœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-ApifyActors-tL94Y{œdataTypeœ:œApifyActorsœ,œidœ:œApifyActors-tL94Yœ,œnameœ:œtoolœ,œoutput_typesœ:[œToolœ]}-Agent-yJhxC{œfieldNameœ:œtoolsœ,œidœ:œAgent-yJhxCœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
"selected": false,
"source": "ApifyActors-t44sy",
"sourceHandle": "{œdataTypeœ: œApifyActorsœ, œidœ: œApifyActors-t44syœ, œnameœ: œtoolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-EePDq",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-EePDqœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
"source": "ApifyActors-tL94Y",
"sourceHandle": "{œdataTypeœ: œApifyActorsœ, œidœ: œApifyActors-tL94Yœ, œnameœ: œtoolœ, œoutput_typesœ: [œToolœ]}",
"target": "Agent-yJhxC",
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-yJhxCœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
},
{
"animated": false,
@ -63,7 +63,7 @@
"data": {
"sourceHandle": {
"dataType": "ChatInput",
"id": "ChatInput-9joxW",
"id": "ChatInput-E01OU",
"name": "message",
"output_types": [
"Message"
@ -71,19 +71,19 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "Agent-EePDq",
"id": "Agent-yJhxC",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-ChatInput-9joxW{œdataTypeœ:œChatInputœ,œidœ:œChatInput-9joxWœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-EePDq{œfieldNameœ:œinput_valueœ,œidœ:œAgent-EePDqœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-ChatInput-E01OU{œdataTypeœ:œChatInputœ,œidœ:œChatInput-E01OUœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-yJhxC{œfieldNameœ:œinput_valueœ,œidœ:œAgent-yJhxCœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "ChatInput-9joxW",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-9joxWœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "Agent-EePDq",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-EePDqœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "ChatInput-E01OU",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-E01OUœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "Agent-yJhxC",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-yJhxCœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -91,7 +91,7 @@
"data": {
"sourceHandle": {
"dataType": "Agent",
"id": "Agent-EePDq",
"id": "Agent-yJhxC",
"name": "response",
"output_types": [
"Message"
@ -99,7 +99,7 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "ChatOutput-dWtqL",
"id": "ChatOutput-xSo6b",
"inputTypes": [
"Data",
"DataFrame",
@ -108,18 +108,18 @@
"type": "other"
}
},
"id": "reactflow__edge-Agent-EePDq{œdataTypeœ:œAgentœ,œidœ:œAgent-EePDqœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-dWtqL{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-dWtqLœ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-Agent-yJhxC{œdataTypeœ:œAgentœ,œidœ:œAgent-yJhxCœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-xSo6b{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-xSo6bœ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œotherœ}",
"selected": false,
"source": "Agent-EePDq",
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-EePDqœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-dWtqL",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-dWtqLœ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œotherœ}"
"source": "Agent-yJhxC",
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-yJhxCœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-xSo6b",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-xSo6bœ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œotherœ}"
}
],
"nodes": [
{
"data": {
"id": "ApifyActors-t44sy",
"id": "ApifyActors-tL94Y",
"node": {
"base_classes": [
"Data",
@ -142,6 +142,7 @@
"frozen": false,
"icon": "Apify",
"legacy": false,
"lf_version": "1.4.2",
"metadata": {},
"minimized": false,
"output_types": [],
@ -154,7 +155,6 @@
"method": "run_model",
"name": "output",
"required_inputs": null,
"selected": "Data",
"tool_mode": true,
"types": [
"Data"
@ -214,7 +214,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": "APIFY_API_KEY"
"value": ""
},
"code": {
"advanced": true,
@ -308,9 +308,9 @@
"type": "ApifyActors"
},
"dragging": false,
"id": "ApifyActors-t44sy",
"id": "ApifyActors-tL94Y",
"measured": {
"height": 628,
"height": 526,
"width": 320
},
"position": {
@ -322,7 +322,7 @@
},
{
"data": {
"id": "ApifyActors-n0Tjo",
"id": "ApifyActors-CVPGK",
"node": {
"base_classes": [
"Data",
@ -345,6 +345,7 @@
"frozen": false,
"icon": "Apify",
"legacy": false,
"lf_version": "1.4.2",
"metadata": {},
"minimized": false,
"output_types": [],
@ -357,7 +358,6 @@
"method": "run_model",
"name": "output",
"required_inputs": null,
"selected": "Data",
"tool_mode": true,
"types": [
"Data"
@ -417,7 +417,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": "APIFY_API_KEY"
"value": ""
},
"code": {
"advanced": true,
@ -511,9 +511,9 @@
"type": "ApifyActors"
},
"dragging": false,
"id": "ApifyActors-n0Tjo",
"id": "ApifyActors-CVPGK",
"measured": {
"height": 628,
"height": 526,
"width": 320
},
"position": {
@ -525,7 +525,7 @@
},
{
"data": {
"id": "note-QhVg5",
"id": "note-hmQk5",
"node": {
"description": "### 💡 Add your Apify API key here ",
"display_name": "",
@ -537,7 +537,7 @@
"type": "note"
},
"dragging": false,
"id": "note-QhVg5",
"id": "note-hmQk5",
"measured": {
"height": 324,
"width": 324
@ -551,7 +551,7 @@
},
{
"data": {
"id": "note-JuSWo",
"id": "note-Utxei",
"node": {
"description": "### 💡 Add your Apify API key here ",
"display_name": "",
@ -564,7 +564,7 @@
},
"dragging": false,
"height": 324,
"id": "note-JuSWo",
"id": "note-Utxei",
"measured": {
"height": 324,
"width": 324
@ -580,7 +580,7 @@
},
{
"data": {
"id": "note-yDKv9",
"id": "note-NoZ4e",
"node": {
"description": "# Social Media Agent\n\nExtract data with **Apify Actors** and analyze the data with an **Agent**.\n\n## Prerequisites\n\n* An [Apify API token](https://docs.apify.com/platform/integrations/api#api-token)\n* An [OpenAI API key](https://platform.openai.com/)\n\n## Quickstart\n\n1. Enter your **Apify** API token in the **Apify Token** fields of the **Apify Actors** components. \n2. Enter your **OpenAI** API token in the **OpenAI API Key** field of the **Agent** component.\n3. Open the **Playground** and chat with the agent. For example, task it with retrieving a profile bio and the latest video by using this prompt: \n ```\n Find the TikTok profile of the company OpenAI using Google search, then show me the profile bio and their latest video.\n ```",
"display_name": "",
@ -593,7 +593,7 @@
},
"dragging": false,
"height": 657,
"id": "note-yDKv9",
"id": "note-NoZ4e",
"measured": {
"height": 657,
"width": 525
@ -609,7 +609,7 @@
},
{
"data": {
"id": "ChatInput-9joxW",
"id": "ChatInput-E01OU",
"node": {
"base_classes": [
"Message"
@ -635,7 +635,7 @@
"frozen": false,
"icon": "MessagesSquare",
"legacy": false,
"lf_version": "1.1.5",
"lf_version": "1.4.2",
"metadata": {},
"minimized": true,
"output_types": [],
@ -906,9 +906,9 @@
"type": "ChatInput"
},
"dragging": false,
"id": "ChatInput-9joxW",
"id": "ChatInput-E01OU",
"measured": {
"height": 66,
"height": 48,
"width": 192
},
"position": {
@ -920,7 +920,7 @@
},
{
"data": {
"id": "ChatOutput-dWtqL",
"id": "ChatOutput-xSo6b",
"node": {
"base_classes": [
"Message"
@ -947,7 +947,7 @@
"frozen": false,
"icon": "MessagesSquare",
"legacy": false,
"lf_version": "1.1.5",
"lf_version": "1.4.2",
"metadata": {},
"minimized": true,
"output_types": [],
@ -1214,9 +1214,9 @@
"type": "ChatOutput"
},
"dragging": false,
"id": "ChatOutput-dWtqL",
"id": "ChatOutput-xSo6b",
"measured": {
"height": 66,
"height": 48,
"width": 192
},
"position": {
@ -1228,7 +1228,7 @@
},
{
"data": {
"id": "note-NYz05",
"id": "note-kMYOt",
"node": {
"description": "### 💡 Add your OpenAI API key here ",
"display_name": "",
@ -1240,7 +1240,7 @@
"type": "note"
},
"dragging": false,
"id": "note-NYz05",
"id": "note-kMYOt",
"measured": {
"height": 324,
"width": 324
@ -1254,7 +1254,7 @@
},
{
"data": {
"id": "Agent-EePDq",
"id": "Agent-yJhxC",
"node": {
"base_classes": [
"Message"
@ -1299,6 +1299,7 @@
"icon": "bot",
"key": "Agent",
"legacy": false,
"lf_version": "1.4.2",
"metadata": {},
"minimized": false,
"output_types": [],
@ -1439,7 +1440,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": "OPENAI_API_KEY"
"value": ""
},
"code": {
"advanced": true,
@ -2008,9 +2009,9 @@
"type": "Agent"
},
"dragging": false,
"id": "Agent-EePDq",
"id": "Agent-yJhxC",
"measured": {
"height": 624,
"height": 594,
"width": 320
},
"position": {
@ -2022,16 +2023,16 @@
}
],
"viewport": {
"x": 280.5777285013439,
"y": 153.83586264930773,
"zoom": 0.6859951115676428
"x": 251.14965955941773,
"y": 42.193990847111536,
"zoom": 0.5946080556136385
}
},
"description": "Utilize Apify Actors as agent tools to search and analyze social media profiles.",
"endpoint_name": null,
"id": "6aa57fa5-c085-4a30-8654-b56b4944679a",
"id": "08525bf9-dd32-4bbe-920c-169cffc78890",
"is_component": false,
"last_tested_version": "1.2.0",
"last_tested_version": "1.4.2",
"name": "Social Media Agent",
"tags": [
"agent",

View file

@ -7,7 +7,7 @@
"data": {
"sourceHandle": {
"dataType": "ChatInput",
"id": "ChatInput-kNQkx",
"id": "ChatInput-1w4cJ",
"name": "message",
"output_types": [
"Message"
@ -15,7 +15,7 @@
},
"targetHandle": {
"fieldName": "question",
"id": "Prompt-zHQI0",
"id": "Prompt-I9T0w",
"inputTypes": [
"Message",
"Text"
@ -23,12 +23,12 @@
"type": "str"
}
},
"id": "reactflow__edge-ChatInput-kNQkx{œdataTypeœ:œChatInputœ,œidœ:œChatInput-kNQkxœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-zHQI0{œfieldNameœ:œquestionœ,œidœ:œPrompt-zHQI0œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-ChatInput-1w4cJ{œdataTypeœ:œChatInputœ,œidœ:œChatInput-1w4cJœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-I9T0w{œfieldNameœ:œquestionœ,œidœ:œPrompt-I9T0wœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"selected": false,
"source": "ChatInput-kNQkx",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-kNQkxœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-zHQI0",
"targetHandle": "{œfieldNameœ: œquestionœ, œidœ: œPrompt-zHQI0œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
"source": "ChatInput-1w4cJ",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-1w4cJœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-I9T0w",
"targetHandle": "{œfieldNameœ: œquestionœ, œidœ: œPrompt-I9T0wœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -36,7 +36,7 @@
"data": {
"sourceHandle": {
"dataType": "Prompt",
"id": "Prompt-zHQI0",
"id": "Prompt-I9T0w",
"name": "prompt",
"output_types": [
"Message"
@ -44,19 +44,19 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "OpenAIModel-9bWp2",
"id": "OpenAIModel-GczRI",
"inputTypes": [
"Message"
],
"type": "str"
}
},
"id": "reactflow__edge-Prompt-zHQI0{œdataTypeœ:œPromptœ,œidœ:œPrompt-zHQI0œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-9bWp2{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-9bWp2œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-Prompt-I9T0w{œdataTypeœ:œPromptœ,œidœ:œPrompt-I9T0wœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-GczRI{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-GczRIœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "Prompt-zHQI0",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-zHQI0œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-9bWp2",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-9bWp2œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
"source": "Prompt-I9T0w",
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-I9T0wœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
"target": "OpenAIModel-GczRI",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-GczRIœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -64,7 +64,7 @@
"data": {
"sourceHandle": {
"dataType": "OpenAIModel",
"id": "OpenAIModel-9bWp2",
"id": "OpenAIModel-GczRI",
"name": "text_output",
"output_types": [
"Message"
@ -72,7 +72,7 @@
},
"targetHandle": {
"fieldName": "input_value",
"id": "ChatOutput-GAFHg",
"id": "ChatOutput-Dlahs",
"inputTypes": [
"Data",
"DataFrame",
@ -81,12 +81,12 @@
"type": "str"
}
},
"id": "reactflow__edge-OpenAIModel-9bWp2{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-9bWp2œ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-GAFHg{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-GAFHgœ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-OpenAIModel-GczRI{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-GczRIœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-Dlahs{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-Dlahsœ,œinputTypesœ:[œDataœ,œDataFrameœ,œMessageœ],œtypeœ:œstrœ}",
"selected": false,
"source": "OpenAIModel-9bWp2",
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-9bWp2œ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-GAFHg",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-GAFHgœ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œstrœ}"
"source": "OpenAIModel-GczRI",
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-GczRIœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
"target": "ChatOutput-Dlahs",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-Dlahsœ, œinputTypesœ: [œDataœ, œDataFrameœ, œMessageœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -94,7 +94,7 @@
"data": {
"sourceHandle": {
"dataType": "parser",
"id": "parser-Qet8H",
"id": "parser-IEn6I",
"name": "parsed_text",
"output_types": [
"Message"
@ -102,7 +102,7 @@
},
"targetHandle": {
"fieldName": "context",
"id": "Prompt-zHQI0",
"id": "Prompt-I9T0w",
"inputTypes": [
"Message",
"Text"
@ -110,12 +110,12 @@
"type": "str"
}
},
"id": "reactflow__edge-parser-Qet8H{œdataTypeœ:œparserœ,œidœ:œparser-Qet8Hœ,œnameœ:œparsed_textœ,œoutput_typesœ:[œMessageœ]}-Prompt-zHQI0{œfieldNameœ:œcontextœ,œidœ:œPrompt-zHQI0œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-parser-IEn6I{œdataTypeœ:œparserœ,œidœ:œparser-IEn6Iœ,œnameœ:œparsed_textœ,œoutput_typesœ:[œMessageœ]}-Prompt-I9T0w{œfieldNameœ:œcontextœ,œidœ:œPrompt-I9T0wœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
"selected": false,
"source": "parser-Qet8H",
"sourceHandle": "{œdataTypeœ: œparserœ, œidœ: œparser-Qet8Hœ, œnameœ: œparsed_textœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-zHQI0",
"targetHandle": "{œfieldNameœ: œcontextœ, œidœ: œPrompt-zHQI0œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
"source": "parser-IEn6I",
"sourceHandle": "{œdataTypeœ: œparserœ, œidœ: œparser-IEn6Iœ, œnameœ: œparsed_textœ, œoutput_typesœ: [œMessageœ]}",
"target": "Prompt-I9T0w",
"targetHandle": "{œfieldNameœ: œcontextœ, œidœ: œPrompt-I9T0wœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
},
{
"animated": false,
@ -123,7 +123,7 @@
"data": {
"sourceHandle": {
"dataType": "OpenAIEmbeddings",
"id": "OpenAIEmbeddings-D1jSt",
"id": "OpenAIEmbeddings-OlQ6R",
"name": "embeddings",
"output_types": [
"Embeddings"
@ -131,19 +131,19 @@
},
"targetHandle": {
"fieldName": "embedding_model",
"id": "AstraDB-eQaxM",
"id": "AstraDB-8AuVs",
"inputTypes": [
"Embeddings"
],
"type": "other"
}
},
"id": "reactflow__edge-OpenAIEmbeddings-D1jSt{œdataTypeœ:œOpenAIEmbeddingsœ,œidœ:œOpenAIEmbeddings-D1jStœ,œnameœ:œembeddingsœ,œoutput_typesœ:[œEmbeddingsœ]}-AstraDB-eQaxM{œfieldNameœ:œembedding_modelœ,œidœ:œAstraDB-eQaxMœ,œinputTypesœ:[œEmbeddingsœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-OpenAIEmbeddings-OlQ6R{œdataTypeœ:œOpenAIEmbeddingsœ,œidœ:œOpenAIEmbeddings-OlQ6Rœ,œnameœ:œembeddingsœ,œoutput_typesœ:[œEmbeddingsœ]}-AstraDB-8AuVs{œfieldNameœ:œembedding_modelœ,œidœ:œAstraDB-8AuVsœ,œinputTypesœ:[œEmbeddingsœ],œtypeœ:œotherœ}",
"selected": false,
"source": "OpenAIEmbeddings-D1jSt",
"sourceHandle": "{œdataTypeœ: œOpenAIEmbeddingsœ, œidœ: œOpenAIEmbeddings-D1jStœ, œnameœ: œembeddingsœ, œoutput_typesœ: [œEmbeddingsœ]}",
"target": "AstraDB-eQaxM",
"targetHandle": "{œfieldNameœ: œembedding_modelœ, œidœ: œAstraDB-eQaxMœ, œinputTypesœ: [œEmbeddingsœ], œtypeœ: œotherœ}"
"source": "OpenAIEmbeddings-OlQ6R",
"sourceHandle": "{œdataTypeœ: œOpenAIEmbeddingsœ, œidœ: œOpenAIEmbeddings-OlQ6Rœ, œnameœ: œembeddingsœ, œoutput_typesœ: [œEmbeddingsœ]}",
"target": "AstraDB-8AuVs",
"targetHandle": "{œfieldNameœ: œembedding_modelœ, œidœ: œAstraDB-8AuVsœ, œinputTypesœ: [œEmbeddingsœ], œtypeœ: œotherœ}"
},
{
"animated": false,
@ -151,7 +151,7 @@
"data": {
"sourceHandle": {
"dataType": "OpenAIEmbeddings",
"id": "OpenAIEmbeddings-4Uky4",
"id": "OpenAIEmbeddings-ulN0y",
"name": "embeddings",
"output_types": [
"Embeddings"
@ -159,19 +159,19 @@
},
"targetHandle": {
"fieldName": "embedding_model",
"id": "AstraDB-tVkFw",
"id": "AstraDB-Wep9C",
"inputTypes": [
"Embeddings"
],
"type": "other"
}
},
"id": "reactflow__edge-OpenAIEmbeddings-4Uky4{œdataTypeœ:œOpenAIEmbeddingsœ,œidœ:œOpenAIEmbeddings-4Uky4œ,œnameœ:œembeddingsœ,œoutput_typesœ:[œEmbeddingsœ]}-AstraDB-tVkFw{œfieldNameœ:œembedding_modelœ,œidœ:œAstraDB-tVkFwœ,œinputTypesœ:[œEmbeddingsœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-OpenAIEmbeddings-ulN0y{œdataTypeœ:œOpenAIEmbeddingsœ,œidœ:œOpenAIEmbeddings-ulN0yœ,œnameœ:œembeddingsœ,œoutput_typesœ:[œEmbeddingsœ]}-AstraDB-Wep9C{œfieldNameœ:œembedding_modelœ,œidœ:œAstraDB-Wep9Cœ,œinputTypesœ:[œEmbeddingsœ],œtypeœ:œotherœ}",
"selected": false,
"source": "OpenAIEmbeddings-4Uky4",
"sourceHandle": "{œdataTypeœ: œOpenAIEmbeddingsœ, œidœ: œOpenAIEmbeddings-4Uky4œ, œnameœ: œembeddingsœ, œoutput_typesœ: [œEmbeddingsœ]}",
"target": "AstraDB-tVkFw",
"targetHandle": "{œfieldNameœ: œembedding_modelœ, œidœ: œAstraDB-tVkFwœ, œinputTypesœ: [œEmbeddingsœ], œtypeœ: œotherœ}"
"source": "OpenAIEmbeddings-ulN0y",
"sourceHandle": "{œdataTypeœ: œOpenAIEmbeddingsœ, œidœ: œOpenAIEmbeddings-ulN0yœ, œnameœ: œembeddingsœ, œoutput_typesœ: [œEmbeddingsœ]}",
"target": "AstraDB-Wep9C",
"targetHandle": "{œfieldNameœ: œembedding_modelœ, œidœ: œAstraDB-Wep9Cœ, œinputTypesœ: [œEmbeddingsœ], œtypeœ: œotherœ}"
},
{
"animated": false,
@ -179,7 +179,7 @@
"data": {
"sourceHandle": {
"dataType": "ChatInput",
"id": "ChatInput-kNQkx",
"id": "ChatInput-1w4cJ",
"name": "message",
"output_types": [
"Message"
@ -187,19 +187,19 @@
},
"targetHandle": {
"fieldName": "search_query",
"id": "AstraDB-tVkFw",
"id": "AstraDB-Wep9C",
"inputTypes": [
"Message"
],
"type": "query"
}
},
"id": "reactflow__edge-ChatInput-kNQkx{œdataTypeœ:œChatInputœ,œidœ:œChatInput-kNQkxœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-AstraDB-tVkFw{œfieldNameœ:œsearch_queryœ,œidœ:œAstraDB-tVkFwœ,œinputTypesœ:[œMessageœ],œtypeœ:œqueryœ}",
"id": "reactflow__edge-ChatInput-1w4cJ{œdataTypeœ:œChatInputœ,œidœ:œChatInput-1w4cJœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-AstraDB-Wep9C{œfieldNameœ:œsearch_queryœ,œidœ:œAstraDB-Wep9Cœ,œinputTypesœ:[œMessageœ],œtypeœ:œqueryœ}",
"selected": false,
"source": "ChatInput-kNQkx",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-kNQkxœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "AstraDB-tVkFw",
"targetHandle": "{œfieldNameœ: œsearch_queryœ, œidœ: œAstraDB-tVkFwœ, œinputTypesœ: [œMessageœ], œtypeœ: œqueryœ}"
"source": "ChatInput-1w4cJ",
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-1w4cJœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
"target": "AstraDB-Wep9C",
"targetHandle": "{œfieldNameœ: œsearch_queryœ, œidœ: œAstraDB-Wep9Cœ, œinputTypesœ: [œMessageœ], œtypeœ: œqueryœ}"
},
{
"animated": false,
@ -207,7 +207,7 @@
"data": {
"sourceHandle": {
"dataType": "AstraDB",
"id": "AstraDB-tVkFw",
"id": "AstraDB-Wep9C",
"name": "dataframe",
"output_types": [
"DataFrame"
@ -215,7 +215,7 @@
},
"targetHandle": {
"fieldName": "input_data",
"id": "parser-Qet8H",
"id": "parser-IEn6I",
"inputTypes": [
"DataFrame",
"Data"
@ -223,12 +223,12 @@
"type": "other"
}
},
"id": "reactflow__edge-AstraDB-tVkFw{œdataTypeœ:œAstraDBœ,œidœ:œAstraDB-tVkFwœ,œnameœ:œdataframeœ,œoutput_typesœ:[œDataFrameœ]}-parser-Qet8H{œfieldNameœ:œinput_dataœ,œidœ:œparser-Qet8Hœ,œinputTypesœ:[œDataFrameœ,œDataœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-AstraDB-Wep9C{œdataTypeœ:œAstraDBœ,œidœ:œAstraDB-Wep9Cœ,œnameœ:œdataframeœ,œoutput_typesœ:[œDataFrameœ]}-parser-IEn6I{œfieldNameœ:œinput_dataœ,œidœ:œparser-IEn6Iœ,œinputTypesœ:[œDataFrameœ,œDataœ],œtypeœ:œotherœ}",
"selected": false,
"source": "AstraDB-tVkFw",
"sourceHandle": "{œdataTypeœ: œAstraDBœ, œidœ: œAstraDB-tVkFwœ, œnameœ: œdataframeœ, œoutput_typesœ: [œDataFrameœ]}",
"target": "parser-Qet8H",
"targetHandle": "{œfieldNameœ: œinput_dataœ, œidœ: œparser-Qet8Hœ, œinputTypesœ: [œDataFrameœ, œDataœ], œtypeœ: œotherœ}"
"source": "AstraDB-Wep9C",
"sourceHandle": "{œdataTypeœ: œAstraDBœ, œidœ: œAstraDB-Wep9Cœ, œnameœ: œdataframeœ, œoutput_typesœ: [œDataFrameœ]}",
"target": "parser-IEn6I",
"targetHandle": "{œfieldNameœ: œinput_dataœ, œidœ: œparser-IEn6Iœ, œinputTypesœ: [œDataFrameœ, œDataœ], œtypeœ: œotherœ}"
},
{
"animated": false,
@ -236,7 +236,7 @@
"data": {
"sourceHandle": {
"dataType": "File",
"id": "File-kPRpn",
"id": "File-C3stS",
"name": "dataframe",
"output_types": [
"DataFrame"
@ -244,7 +244,7 @@
},
"targetHandle": {
"fieldName": "data_inputs",
"id": "SplitText-sDxql",
"id": "SplitText-5RcUo",
"inputTypes": [
"Data",
"DataFrame"
@ -252,18 +252,20 @@
"type": "other"
}
},
"id": "reactflow__edge-File-kPRpn{œdataTypeœ:œFileœ,œidœ:œFile-kPRpnœ,œnameœ:œdataframeœ,œoutput_typesœ:[œDataFrameœ]}-SplitText-sDxql{œfieldNameœ:œdata_inputsœ,œidœ:œSplitText-sDxqlœ,œinputTypesœ:[œDataœ,œDataFrameœ],œtypeœ:œotherœ}",
"id": "reactflow__edge-File-C3stS{œdataTypeœ:œFileœ,œidœ:œFile-C3stSœ,œnameœ:œdataframeœ,œoutput_typesœ:[œDataFrameœ]}-SplitText-5RcUo{œfieldNameœ:œdata_inputsœ,œidœ:œSplitText-5RcUoœ,œinputTypesœ:[œDataœ,œDataFrameœ],œtypeœ:œotherœ}",
"selected": false,
"source": "File-kPRpn",
"sourceHandle": "{œdataTypeœ: œFileœ, œidœ: œFile-kPRpnœ, œnameœ: œdataframeœ, œoutput_typesœ: [œDataFrameœ]}",
"target": "SplitText-sDxql",
"targetHandle": "{œfieldNameœ: œdata_inputsœ, œidœ: œSplitText-sDxqlœ, œinputTypesœ: [œDataœ, œDataFrameœ], œtypeœ: œotherœ}"
"source": "File-C3stS",
"sourceHandle": "{œdataTypeœ: œFileœ, œidœ: œFile-C3stSœ, œnameœ: œdataframeœ, œoutput_typesœ: [œDataFrameœ]}",
"target": "SplitText-5RcUo",
"targetHandle": "{œfieldNameœ: œdata_inputsœ, œidœ: œSplitText-5RcUoœ, œinputTypesœ: [œDataœ, œDataFrameœ], œtypeœ: œotherœ}"
},
{
"animated": false,
"className": "",
"data": {
"sourceHandle": {
"dataType": "SplitText",
"id": "SplitText-sDxql",
"id": "SplitText-5RcUo",
"name": "dataframe",
"output_types": [
"DataFrame"
@ -271,7 +273,7 @@
},
"targetHandle": {
"fieldName": "ingest_data",
"id": "AstraDB-eQaxM",
"id": "AstraDB-8AuVs",
"inputTypes": [
"Data",
"DataFrame"
@ -279,11 +281,12 @@
"type": "other"
}
},
"id": "xy-edge__SplitText-sDxql{œdataTypeœ:œSplitTextœ,œidœ:œSplitText-sDxqlœ,œnameœ:œdataframeœ,œoutput_typesœ:[œDataFrameœ]}-AstraDB-eQaxM{œfieldNameœ:œingest_dataœ,œidœ:œAstraDB-eQaxMœ,œinputTypesœ:[œDataœ,œDataFrameœ],œtypeœ:œotherœ}",
"source": "SplitText-sDxql",
"sourceHandle": "{œdataTypeœ: œSplitTextœ, œidœ: œSplitText-sDxqlœ, œnameœ: œdataframeœ, œoutput_typesœ: [œDataFrameœ]}",
"target": "AstraDB-eQaxM",
"targetHandle": "{œfieldNameœ: œingest_dataœ, œidœ: œAstraDB-eQaxMœ, œinputTypesœ: [œDataœ, œDataFrameœ], œtypeœ: œotherœ}"
"id": "reactflow__edge-SplitText-5RcUo{œdataTypeœ:œSplitTextœ,œidœ:œSplitText-5RcUoœ,œnameœ:œdataframeœ,œoutput_typesœ:[œDataFrameœ]}-AstraDB-8AuVs{œfieldNameœ:œingest_dataœ,œidœ:œAstraDB-8AuVsœ,œinputTypesœ:[œDataœ,œDataFrameœ],œtypeœ:œotherœ}",
"selected": false,
"source": "SplitText-5RcUo",
"sourceHandle": "{œdataTypeœ: œSplitTextœ, œidœ: œSplitText-5RcUoœ, œnameœ: œdataframeœ, œoutput_typesœ: [œDataFrameœ]}",
"target": "AstraDB-8AuVs",
"targetHandle": "{œfieldNameœ: œingest_dataœ, œidœ: œAstraDB-8AuVsœ, œinputTypesœ: [œDataœ, œDataFrameœ], œtypeœ: œotherœ}"
}
],
"nodes": [
@ -291,7 +294,7 @@
"data": {
"description": "Get chat inputs from the Playground.",
"display_name": "Chat Input",
"id": "ChatInput-kNQkx",
"id": "ChatInput-1w4cJ",
"node": {
"base_classes": [
"Message"
@ -558,7 +561,7 @@
},
"dragging": false,
"height": 234,
"id": "ChatInput-kNQkx",
"id": "ChatInput-1w4cJ",
"measured": {
"height": 234,
"width": 320
@ -579,7 +582,7 @@
"data": {
"description": "Create a prompt template with dynamic variables.",
"display_name": "Prompt",
"id": "Prompt-zHQI0",
"id": "Prompt-I9T0w",
"node": {
"base_classes": [
"Message"
@ -740,7 +743,7 @@
},
"dragging": false,
"height": 433,
"id": "Prompt-zHQI0",
"id": "Prompt-I9T0w",
"measured": {
"height": 433,
"width": 320
@ -761,7 +764,7 @@
"data": {
"description": "Split text into chunks based on specified criteria.",
"display_name": "Split Text",
"id": "SplitText-sDxql",
"id": "SplitText-5RcUo",
"node": {
"base_classes": [
"Data"
@ -946,7 +949,7 @@
},
"dragging": false,
"height": 475,
"id": "SplitText-sDxql",
"id": "SplitText-5RcUo",
"measured": {
"height": 475,
"width": 320
@ -965,7 +968,7 @@
},
{
"data": {
"id": "note-VWeXf",
"id": "note-BG8Kh",
"node": {
"description": "## 🐕 2. Retriever Flow\n\nThis flow answers your questions with contextual data retrieved from your vector database.\n\nOpen the **Playground** and ask, \n\n```\nWhat is this document about?\n```\n",
"display_name": "",
@ -978,7 +981,7 @@
},
"dragging": false,
"height": 324,
"id": "note-VWeXf",
"id": "note-BG8Kh",
"measured": {
"height": 324,
"width": 325
@ -1002,7 +1005,7 @@
},
{
"data": {
"id": "note-K46GL",
"id": "note-IF0Cy",
"node": {
"description": "## 📖 README\n\nLoad your data into a vector database with the 📚 **Load Data** flow, and then use your data as chat context with the 🐕 **Retriever** flow.\n\n**🚨 Add your OpenAI API key as a global variable to easily add it to all of the OpenAI components in this flow.** \n\n**Quick start**\n1. Run the 📚 **Load Data** flow.\n2. Run the 🐕 **Retriever** flow.\n\n**Next steps** \n\n- Experiment by changing the prompt and the loaded data to see how the bot's responses change. \n\nFor more info, see the [Langflow docs](https://docs.langflow.org/starter-projects-vector-store-rag).",
"display_name": "Read Me",
@ -1015,7 +1018,7 @@
},
"dragging": false,
"height": 324,
"id": "note-K46GL",
"id": "note-IF0Cy",
"measured": {
"height": 324,
"width": 325
@ -1041,7 +1044,7 @@
"data": {
"description": "Display a chat message in the Playground.",
"display_name": "Chat Output",
"id": "ChatOutput-GAFHg",
"id": "ChatOutput-Dlahs",
"node": {
"base_classes": [
"Message"
@ -1324,7 +1327,7 @@
},
"dragging": false,
"height": 234,
"id": "ChatOutput-GAFHg",
"id": "ChatOutput-Dlahs",
"measured": {
"height": 234,
"width": 320
@ -1343,7 +1346,7 @@
},
{
"data": {
"id": "OpenAIEmbeddings-4Uky4",
"id": "OpenAIEmbeddings-ulN0y",
"node": {
"base_classes": [
"Embeddings"
@ -1636,7 +1639,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": ""
"value": "OPENAI_API_KEY"
},
"openai_api_type": {
"_input_type": "MessageTextInput",
@ -1820,7 +1823,7 @@
},
"dragging": false,
"height": 320,
"id": "OpenAIEmbeddings-4Uky4",
"id": "OpenAIEmbeddings-ulN0y",
"measured": {
"height": 320,
"width": 320
@ -1839,7 +1842,7 @@
},
{
"data": {
"id": "note-Jk7TI",
"id": "note-odwIB",
"node": {
"description": "## 📚 1. Load Data Flow\n\nRun this first! Load data from a local file and embed it into the vector database.\n\nSelect a Database and a Collection, or create new ones. \n\nClick ▶️ **Run component** on the **Astra DB** component to load your data.\n\n* If you're using OSS Langflow, add your Astra DB Application Token to the Astra DB component.\n\n#### Next steps:\n Experiment by changing the prompt and the contextual data to see how the retrieval flow's responses change.",
"display_name": "",
@ -1852,7 +1855,7 @@
},
"dragging": false,
"height": 324,
"id": "note-Jk7TI",
"id": "note-odwIB",
"measured": {
"height": 324,
"width": 325
@ -1876,7 +1879,7 @@
},
{
"data": {
"id": "OpenAIEmbeddings-D1jSt",
"id": "OpenAIEmbeddings-OlQ6R",
"node": {
"base_classes": [
"Embeddings"
@ -2169,7 +2172,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": ""
"value": "OPENAI_API_KEY"
},
"openai_api_type": {
"_input_type": "MessageTextInput",
@ -2353,7 +2356,7 @@
},
"dragging": false,
"height": 320,
"id": "OpenAIEmbeddings-D1jSt",
"id": "OpenAIEmbeddings-OlQ6R",
"measured": {
"height": 320,
"width": 320
@ -2372,7 +2375,7 @@
},
{
"data": {
"id": "File-kPRpn",
"id": "File-C3stS",
"node": {
"base_classes": [
"Data"
@ -2633,7 +2636,7 @@
},
"dragging": false,
"height": 367,
"id": "File-kPRpn",
"id": "File-C3stS",
"measured": {
"height": 367,
"width": 320
@ -2652,7 +2655,7 @@
},
{
"data": {
"id": "note-mQAwf",
"id": "note-aHmST",
"node": {
"description": "### 💡 Add your OpenAI API key here 👇",
"display_name": "",
@ -2665,7 +2668,7 @@
},
"dragging": false,
"height": 324,
"id": "note-mQAwf",
"id": "note-aHmST",
"measured": {
"height": 324,
"width": 324
@ -2684,7 +2687,7 @@
},
{
"data": {
"id": "note-6Bw7F",
"id": "note-QvcXX",
"node": {
"description": "### 💡 Add your OpenAI API key here 👇",
"display_name": "",
@ -2697,7 +2700,7 @@
},
"dragging": false,
"height": 324,
"id": "note-6Bw7F",
"id": "note-QvcXX",
"measured": {
"height": 324,
"width": 324
@ -2716,7 +2719,7 @@
},
{
"data": {
"id": "note-dVn2E",
"id": "note-xLYll",
"node": {
"description": "### 💡 Add your OpenAI API key here 👇",
"display_name": "",
@ -2729,7 +2732,7 @@
},
"dragging": false,
"height": 324,
"id": "note-dVn2E",
"id": "note-xLYll",
"measured": {
"height": 324,
"width": 324
@ -2748,7 +2751,7 @@
},
{
"data": {
"id": "OpenAIModel-9bWp2",
"id": "OpenAIModel-GczRI",
"node": {
"base_classes": [
"LanguageModel",
@ -3124,9 +3127,9 @@
"type": "OpenAIModel"
},
"dragging": false,
"id": "OpenAIModel-9bWp2",
"id": "OpenAIModel-GczRI",
"measured": {
"height": 540,
"height": 539,
"width": 320
},
"position": {
@ -3138,7 +3141,7 @@
},
{
"data": {
"id": "parser-Qet8H",
"id": "parser-IEn6I",
"node": {
"base_classes": [
"Message"
@ -3300,9 +3303,9 @@
"type": "parser"
},
"dragging": false,
"id": "parser-Qet8H",
"id": "parser-IEn6I",
"measured": {
"height": 361,
"height": 360,
"width": 320
},
"position": {
@ -3314,7 +3317,7 @@
},
{
"data": {
"id": "AstraDB-tVkFw",
"id": "AstraDB-Wep9C",
"node": {
"base_classes": [
"Data",
@ -3443,7 +3446,7 @@
"tool_mode": false,
"trace_as_metadata": true,
"type": "str",
"value": "ASTRA_DB_API_ENDPOINT"
"value": ""
},
"astradb_vectorstore_kwargs": {
"_input_type": "NestedDictInput",
@ -3731,17 +3734,7 @@
"info": "The Database name for the Astra DB instance.",
"name": "database_name",
"options": [],
"options_metadata": [
{
"api_endpoint": "https://deb10a81-3c5d-4fd3-8b1b-945915d2835b-us-east-2.apps.astra.datastax.com",
"collections": 1,
"keyspaces": [
"default_keyspace"
],
"org_id": "4bd8a5f9-41b3-4d8a-b039-0dd35f5eb374",
"status": null
}
],
"options_metadata": [],
"placeholder": "",
"real_time_refresh": true,
"refresh_button": true,
@ -4072,21 +4065,21 @@
"type": "AstraDB"
},
"dragging": false,
"id": "AstraDB-tVkFw",
"id": "AstraDB-Wep9C",
"measured": {
"height": 458,
"height": 501,
"width": 320
},
"position": {
"x": 1206.2272993725155,
"y": 491.41485400844977
},
"selected": false,
"selected": true,
"type": "genericNode"
},
{
"data": {
"id": "AstraDB-eQaxM",
"id": "AstraDB-8AuVs",
"node": {
"base_classes": [
"Data",
@ -4502,17 +4495,7 @@
"info": "The Database name for the Astra DB instance.",
"name": "database_name",
"options": [],
"options_metadata": [
{
"api_endpoint": "https://deb10a81-3c5d-4fd3-8b1b-945915d2835b-us-east-2.apps.astra.datastax.com",
"collections": 1,
"keyspaces": [
"default_keyspace"
],
"org_id": "4bd8a5f9-41b3-4d8a-b039-0dd35f5eb374",
"status": null
}
],
"options_metadata": [],
"placeholder": "",
"real_time_refresh": true,
"refresh_button": true,
@ -4833,7 +4816,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": ""
"value": "ASTRA_DB_APPLICATION_TOKEN"
}
},
"tool_mode": false
@ -4842,9 +4825,9 @@
"type": "AstraDB"
},
"dragging": false,
"id": "AstraDB-eQaxM",
"id": "AstraDB-8AuVs",
"measured": {
"height": 458,
"height": 501,
"width": 320
},
"position": {
@ -4856,16 +4839,16 @@
}
],
"viewport": {
"x": 20.50191698112849,
"y": -144.65436276592914,
"zoom": 0.43295751491830675
"x": -218.5246908040316,
"y": -275.7883822982229,
"zoom": 0.5382133171428375
}
},
"description": "Load your data for chat context with Retrieval Augmented Generation.",
"endpoint_name": null,
"id": "e120d90a-3ba4-4f53-a551-8b6d94ccb424",
"id": "20809df7-902f-4ea8-b4e5-c395b171633b",
"is_component": false,
"last_tested_version": "1.4.2",
"last_tested_version": "1.4.3",
"name": "Vector Store RAG",
"tags": [
"openai",

File diff suppressed because one or more lines are too long

View file

@ -34,13 +34,6 @@ withEventDeliveryModes(
await initialGPTsetup(page);
//* TODO: Remove these 3 steps once the template is updated *//
await page.getByTestId("dropdown-output-openaimodel").click();
await page
.getByTestId("dropdown-item-output-openaimodel-language model")
.click();
await page.getByTestId("tab_1_stringify").click();
await page.getByTestId("playground-btn-flow-io").click();