feat: Update and reorganize starter templates (#5856)
* update openAI templates * update components * update templates * Update starter projects with OPENAI_API_KEY value * add notes to graph rag --------- Co-authored-by: anovazzi1 <otavio2204@gmail.com>
This commit is contained in:
parent
7fa980e5fc
commit
26de4c7097
18 changed files with 7914 additions and 6954 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -2,35 +2,11 @@
|
|||
"data": {
|
||||
"edges": [
|
||||
{
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-51zV0",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-GtPty",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-51zV0{œdataTypeœ:œPromptœ,œidœ:œPrompt-51zV0œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-GtPty{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-GtPtyœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-51zV0",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-51zV0œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-GtPty",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-GtPtyœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-5i1v3",
|
||||
"id": "ChatInput-sU0vL",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -38,24 +14,51 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-GtPty",
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__ChatInput-5i1v3{œdataTypeœ:œChatInputœ,œidœ:œChatInput-5i1v3œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-GtPty{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-GtPtyœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-5i1v3",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-5i1v3œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-GtPty",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-GtPtyœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ChatInput-sU0vL{œdataTypeœ:œChatInputœ,œidœ:œChatInput-sU0vLœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-6Uq9A{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-6Uq9Aœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-sU0vL",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-sU0vLœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-6Uq9A",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-6Uq9Aœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-a0CWD",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-a0CWD{œdataTypeœ:œPromptœ,œidœ:œPrompt-a0CWDœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-6Uq9A{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-6Uq9Aœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-a0CWD",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-a0CWDœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-6Uq9A",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-6Uq9Aœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-GtPty",
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -63,18 +66,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-0kSEM",
|
||||
"id": "ChatOutput-S56f5",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-GtPty{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-GtPtyœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-0kSEM{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-0kSEMœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-GtPty",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-GtPtyœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-0kSEM",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-0kSEMœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-6Uq9A{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-6Uq9Aœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-S56f5{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-S56f5œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-6Uq9A",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-6Uq9Aœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-S56f5",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-S56f5œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -82,7 +85,7 @@
|
|||
"data": {
|
||||
"description": "Get chat inputs from the Playground.",
|
||||
"display_name": "Chat Input",
|
||||
"id": "ChatInput-5i1v3",
|
||||
"id": "ChatInput-sU0vL",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -346,10 +349,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatInput-5i1v3",
|
||||
"id": "ChatInput-sU0vL",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 320
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 689.5720422421635,
|
||||
|
|
@ -367,7 +370,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-51zV0",
|
||||
"id": "Prompt-a0CWD",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -471,10 +474,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-51zV0",
|
||||
"id": "Prompt-a0CWD",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 320
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 690.2015147036818,
|
||||
|
|
@ -490,7 +493,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "undefined-uksjN",
|
||||
"id": "undefined-omGwP",
|
||||
"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.",
|
||||
"display_name": "Read Me",
|
||||
|
|
@ -502,10 +505,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 250,
|
||||
"id": "undefined-uksjN",
|
||||
"id": "undefined-omGwP",
|
||||
"measured": {
|
||||
"height": 250,
|
||||
"width": 600
|
||||
"width": 328
|
||||
},
|
||||
"position": {
|
||||
"x": 66.38770028934243,
|
||||
|
|
@ -526,7 +529,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-krY7d",
|
||||
"id": "note-bk1gl",
|
||||
"node": {
|
||||
"description": "### 💡 Add your OpenAI API key here 👇",
|
||||
"display_name": "",
|
||||
|
|
@ -539,10 +542,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 324,
|
||||
"id": "note-krY7d",
|
||||
"id": "note-bk1gl",
|
||||
"measured": {
|
||||
"height": 324,
|
||||
"width": 324
|
||||
"width": 326
|
||||
},
|
||||
"position": {
|
||||
"x": 1075.829573520873,
|
||||
|
|
@ -563,7 +566,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatOutput-0kSEM",
|
||||
"id": "ChatOutput-S56f5",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -823,10 +826,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-0kSEM",
|
||||
"id": "ChatOutput-S56f5",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 320
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 1460.070372772908,
|
||||
|
|
@ -842,7 +845,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-GtPty",
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
|
|
@ -905,7 +908,7 @@
|
|||
}
|
||||
],
|
||||
"pinned": false,
|
||||
"score": 2.220446049250313e-16,
|
||||
"score": 0.14285714285714285,
|
||||
"template": {
|
||||
"_type": "Component",
|
||||
"api_key": {
|
||||
|
|
@ -925,7 +928,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
"value": "OPENAI_API_KEY"
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -955,6 +958,7 @@
|
|||
"Message"
|
||||
],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
"placeholder": "",
|
||||
|
|
@ -974,6 +978,7 @@
|
|||
"dynamic": false,
|
||||
"info": "If True, it will output JSON regardless of passing a schema.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "json_mode",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
|
|
@ -991,6 +996,7 @@
|
|||
"dynamic": false,
|
||||
"info": "The maximum number of tokens to generate. Set to 0 for unlimited tokens.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "max_tokens",
|
||||
"placeholder": "",
|
||||
"range_spec": {
|
||||
|
|
@ -1014,6 +1020,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Additional keyword arguments to pass to the model.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "model_kwargs",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
|
|
@ -1028,6 +1035,7 @@
|
|||
"_input_type": "DropdownInput",
|
||||
"advanced": false,
|
||||
"combobox": false,
|
||||
"dialog_inputs": {},
|
||||
"display_name": "Model Name",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
|
|
@ -1041,6 +1049,7 @@
|
|||
"gpt-3.5-turbo",
|
||||
"gpt-3.5-turbo-0125"
|
||||
],
|
||||
"options_metadata": [],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1057,6 +1066,7 @@
|
|||
"dynamic": false,
|
||||
"info": "The base URL of the OpenAI API. Defaults to https://api.openai.com/v1. You can change this to use other APIs like JinaChat, LocalAI and Prem.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
"name": "openai_api_base",
|
||||
"placeholder": "",
|
||||
|
|
@ -1075,6 +1085,7 @@
|
|||
"dynamic": false,
|
||||
"info": "The seed controls the reproducibility of the job.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "seed",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
|
|
@ -1092,6 +1103,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Stream the response from the model. Streaming works only in Chat.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "stream",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
|
|
@ -1112,6 +1124,7 @@
|
|||
"Message"
|
||||
],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
"name": "system_message",
|
||||
|
|
@ -1160,23 +1173,23 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-GtPty",
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"measured": {
|
||||
"height": 770,
|
||||
"height": 734,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 1075.2249314800433,
|
||||
"y": 729.622454137517
|
||||
"x": 1071.3015591664102,
|
||||
"y": 724.6650363109242
|
||||
},
|
||||
"selected": false,
|
||||
"selected": true,
|
||||
"type": "genericNode"
|
||||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": -352.0739415813646,
|
||||
"y": -439.19385215506,
|
||||
"zoom": 0.8590218788624804
|
||||
"x": 17.718959514444805,
|
||||
"y": -430.8864814643483,
|
||||
"zoom": 0.8320153537381677
|
||||
}
|
||||
},
|
||||
"description": "Perform basic prompting with an OpenAI model.",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
|
|
@ -7,7 +7,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIEmbeddings",
|
||||
"id": "OpenAIEmbeddings-8ffog",
|
||||
"id": "OpenAIEmbeddings-gwVof",
|
||||
"name": "embeddings",
|
||||
"output_types": [
|
||||
"Embeddings"
|
||||
|
|
@ -15,19 +15,19 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "embedding_model",
|
||||
"id": "AstraDBGraph-utoVt",
|
||||
"id": "AstraDBGraph-LdFgZ",
|
||||
"inputTypes": [
|
||||
"Embeddings"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-OpenAIEmbeddings-8ffog{œdataTypeœ:œOpenAIEmbeddingsœ,œidœ:œOpenAIEmbeddings-8ffogœ,œnameœ:œembeddingsœ,œoutput_typesœ:[œEmbeddingsœ]}-AstraDBGraph-utoVt{œfieldNameœ:œembedding_modelœ,œidœ:œAstraDBGraph-utoVtœ,œinputTypesœ:[œEmbeddingsœ],œtypeœ:œotherœ}",
|
||||
"id": "reactflow__edge-OpenAIEmbeddings-gwVof{œdataTypeœ:œOpenAIEmbeddingsœ,œidœ:œOpenAIEmbeddings-gwVofœ,œnameœ:œembeddingsœ,œoutput_typesœ:[œEmbeddingsœ]}-AstraDBGraph-LdFgZ{œfieldNameœ:œembedding_modelœ,œidœ:œAstraDBGraph-LdFgZœ,œinputTypesœ:[œEmbeddingsœ],œtypeœ:œotherœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIEmbeddings-8ffog",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIEmbeddingsœ, œidœ: œOpenAIEmbeddings-8ffogœ, œnameœ: œembeddingsœ, œoutput_typesœ: [œEmbeddingsœ]}",
|
||||
"target": "AstraDBGraph-utoVt",
|
||||
"targetHandle": "{œfieldNameœ: œembedding_modelœ, œidœ: œAstraDBGraph-utoVtœ, œinputTypesœ: [œEmbeddingsœ], œtypeœ: œotherœ}"
|
||||
"source": "OpenAIEmbeddings-gwVof",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIEmbeddingsœ, œidœ: œOpenAIEmbeddings-gwVofœ, œnameœ: œembeddingsœ, œoutput_typesœ: [œEmbeddingsœ]}",
|
||||
"target": "AstraDBGraph-LdFgZ",
|
||||
"targetHandle": "{œfieldNameœ: œembedding_modelœ, œidœ: œAstraDBGraph-LdFgZœ, œinputTypesœ: [œEmbeddingsœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-LeGl1",
|
||||
"id": "ChatInput-vz6Qy",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -43,19 +43,19 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "search_query",
|
||||
"id": "AstraDBGraph-utoVt",
|
||||
"id": "AstraDBGraph-LdFgZ",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ChatInput-LeGl1{œdataTypeœ:œChatInputœ,œidœ:œChatInput-LeGl1œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-AstraDBGraph-utoVt{œfieldNameœ:œsearch_queryœ,œidœ:œAstraDBGraph-utoVtœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-ChatInput-vz6Qy{œdataTypeœ:œChatInputœ,œidœ:œChatInput-vz6Qyœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-AstraDBGraph-LdFgZ{œfieldNameœ:œsearch_queryœ,œidœ:œAstraDBGraph-LdFgZœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-LeGl1",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-LeGl1œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "AstraDBGraph-utoVt",
|
||||
"targetHandle": "{œfieldNameœ: œsearch_queryœ, œidœ: œAstraDBGraph-utoVtœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"source": "ChatInput-vz6Qy",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-vz6Qyœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "AstraDBGraph-LdFgZ",
|
||||
"targetHandle": "{œfieldNameœ: œsearch_queryœ, œidœ: œAstraDBGraph-LdFgZœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "AstraDBGraph",
|
||||
"id": "AstraDBGraph-utoVt",
|
||||
"id": "AstraDBGraph-LdFgZ",
|
||||
"name": "search_results",
|
||||
"output_types": [
|
||||
"Data"
|
||||
|
|
@ -71,19 +71,19 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "data",
|
||||
"id": "ParseData-fXybX",
|
||||
"id": "ParseData-KSu0D",
|
||||
"inputTypes": [
|
||||
"Data"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-AstraDBGraph-utoVt{œdataTypeœ:œAstraDBGraphœ,œidœ:œAstraDBGraph-utoVtœ,œnameœ:œsearch_resultsœ,œoutput_typesœ:[œDataœ]}-ParseData-fXybX{œfieldNameœ:œdataœ,œidœ:œParseData-fXybXœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"id": "reactflow__edge-AstraDBGraph-LdFgZ{œdataTypeœ:œAstraDBGraphœ,œidœ:œAstraDBGraph-LdFgZœ,œnameœ:œsearch_resultsœ,œoutput_typesœ:[œDataœ]}-ParseData-KSu0D{œfieldNameœ:œdataœ,œidœ:œParseData-KSu0Dœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"selected": false,
|
||||
"source": "AstraDBGraph-utoVt",
|
||||
"sourceHandle": "{œdataTypeœ: œAstraDBGraphœ, œidœ: œAstraDBGraph-utoVtœ, œnameœ: œsearch_resultsœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "ParseData-fXybX",
|
||||
"targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-fXybXœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
"source": "AstraDBGraph-LdFgZ",
|
||||
"sourceHandle": "{œdataTypeœ: œAstraDBGraphœ, œidœ: œAstraDBGraph-LdFgZœ, œnameœ: œsearch_resultsœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "ParseData-KSu0D",
|
||||
"targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-KSu0Dœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ParseData",
|
||||
"id": "ParseData-fXybX",
|
||||
"id": "ParseData-KSu0D",
|
||||
"name": "text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -99,7 +99,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "context",
|
||||
"id": "Prompt-5JIrF",
|
||||
"id": "Prompt-YYjDd",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
|
|
@ -107,12 +107,12 @@
|
|||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ParseData-fXybX{œdataTypeœ:œParseDataœ,œidœ:œParseData-fXybXœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-5JIrF{œfieldNameœ:œcontextœ,œidœ:œPrompt-5JIrFœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-ParseData-KSu0D{œdataTypeœ:œParseDataœ,œidœ:œParseData-KSu0Dœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-YYjDd{œfieldNameœ:œcontextœ,œidœ:œPrompt-YYjDdœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ParseData-fXybX",
|
||||
"sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-fXybXœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-5JIrF",
|
||||
"targetHandle": "{œfieldNameœ: œcontextœ, œidœ: œPrompt-5JIrFœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"source": "ParseData-KSu0D",
|
||||
"sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-KSu0Dœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-YYjDd",
|
||||
"targetHandle": "{œfieldNameœ: œcontextœ, œidœ: œPrompt-YYjDdœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -120,7 +120,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-LeGl1",
|
||||
"id": "ChatInput-vz6Qy",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -128,7 +128,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "question",
|
||||
"id": "Prompt-5JIrF",
|
||||
"id": "Prompt-YYjDd",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
|
|
@ -136,12 +136,12 @@
|
|||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ChatInput-LeGl1{œdataTypeœ:œChatInputœ,œidœ:œChatInput-LeGl1œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-5JIrF{œfieldNameœ:œquestionœ,œidœ:œPrompt-5JIrFœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-ChatInput-vz6Qy{œdataTypeœ:œChatInputœ,œidœ:œChatInput-vz6Qyœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-YYjDd{œfieldNameœ:œquestionœ,œidœ:œPrompt-YYjDdœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-LeGl1",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-LeGl1œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-5JIrF",
|
||||
"targetHandle": "{œfieldNameœ: œquestionœ, œidœ: œPrompt-5JIrFœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"source": "ChatInput-vz6Qy",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-vz6Qyœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-YYjDd",
|
||||
"targetHandle": "{œfieldNameœ: œquestionœ, œidœ: œPrompt-YYjDdœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -149,7 +149,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-5JIrF",
|
||||
"id": "Prompt-YYjDd",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -157,19 +157,19 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-yLcAc",
|
||||
"id": "OpenAIModel-4odsT",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-5JIrF{œdataTypeœ:œPromptœ,œidœ:œPrompt-5JIrFœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-yLcAc{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-yLcAcœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-Prompt-YYjDd{œdataTypeœ:œPromptœ,œidœ:œPrompt-YYjDdœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-4odsT{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-4odsTœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-5JIrF",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-5JIrFœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-yLcAc",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-yLcAcœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"source": "Prompt-YYjDd",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-YYjDdœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-4odsT",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-4odsTœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -177,7 +177,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-yLcAc",
|
||||
"id": "OpenAIModel-4odsT",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -185,19 +185,19 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-uEMmX",
|
||||
"id": "ChatOutput-7mjeM",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-OpenAIModel-yLcAc{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-yLcAcœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-uEMmX{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-uEMmXœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-OpenAIModel-4odsT{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-4odsTœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-7mjeM{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-7mjeMœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-yLcAc",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-yLcAcœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-uEMmX",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-uEMmXœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"source": "OpenAIModel-4odsT",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-4odsTœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-7mjeM",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-7mjeMœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -205,7 +205,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "URL",
|
||||
"id": "URL-KqugB",
|
||||
"id": "URL-jjkEI",
|
||||
"name": "data",
|
||||
"output_types": [
|
||||
"Data"
|
||||
|
|
@ -213,7 +213,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "data_input",
|
||||
"id": "LanguageRecursiveTextSplitter-SCoy7",
|
||||
"id": "LanguageRecursiveTextSplitter-wmtIz",
|
||||
"inputTypes": [
|
||||
"Document",
|
||||
"Data"
|
||||
|
|
@ -221,12 +221,12 @@
|
|||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-URL-KqugB{œdataTypeœ:œURLœ,œidœ:œURL-KqugBœ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-LanguageRecursiveTextSplitter-SCoy7{œfieldNameœ:œdata_inputœ,œidœ:œLanguageRecursiveTextSplitter-SCoy7œ,œinputTypesœ:[œDocumentœ,œDataœ],œtypeœ:œotherœ}",
|
||||
"id": "reactflow__edge-URL-jjkEI{œdataTypeœ:œURLœ,œidœ:œURL-jjkEIœ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-LanguageRecursiveTextSplitter-wmtIz{œfieldNameœ:œdata_inputœ,œidœ:œLanguageRecursiveTextSplitter-wmtIzœ,œinputTypesœ:[œDocumentœ,œDataœ],œtypeœ:œotherœ}",
|
||||
"selected": false,
|
||||
"source": "URL-KqugB",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-KqugBœ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "LanguageRecursiveTextSplitter-SCoy7",
|
||||
"targetHandle": "{œfieldNameœ: œdata_inputœ, œidœ: œLanguageRecursiveTextSplitter-SCoy7œ, œinputTypesœ: [œDocumentœ, œDataœ], œtypeœ: œotherœ}"
|
||||
"source": "URL-jjkEI",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-jjkEIœ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "LanguageRecursiveTextSplitter-wmtIz",
|
||||
"targetHandle": "{œfieldNameœ: œdata_inputœ, œidœ: œLanguageRecursiveTextSplitter-wmtIzœ, œinputTypesœ: [œDocumentœ, œDataœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -234,7 +234,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "LanguageRecursiveTextSplitter",
|
||||
"id": "LanguageRecursiveTextSplitter-SCoy7",
|
||||
"id": "LanguageRecursiveTextSplitter-wmtIz",
|
||||
"name": "data",
|
||||
"output_types": [
|
||||
"Data"
|
||||
|
|
@ -242,7 +242,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "data_input",
|
||||
"id": "HtmlLinkExtractor-mn1rQ",
|
||||
"id": "HtmlLinkExtractor-MyH7H",
|
||||
"inputTypes": [
|
||||
"Document",
|
||||
"Data"
|
||||
|
|
@ -250,12 +250,12 @@
|
|||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-LanguageRecursiveTextSplitter-SCoy7{œdataTypeœ:œLanguageRecursiveTextSplitterœ,œidœ:œLanguageRecursiveTextSplitter-SCoy7œ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-HtmlLinkExtractor-mn1rQ{œfieldNameœ:œdata_inputœ,œidœ:œHtmlLinkExtractor-mn1rQœ,œinputTypesœ:[œDocumentœ,œDataœ],œtypeœ:œotherœ}",
|
||||
"id": "reactflow__edge-LanguageRecursiveTextSplitter-wmtIz{œdataTypeœ:œLanguageRecursiveTextSplitterœ,œidœ:œLanguageRecursiveTextSplitter-wmtIzœ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-HtmlLinkExtractor-MyH7H{œfieldNameœ:œdata_inputœ,œidœ:œHtmlLinkExtractor-MyH7Hœ,œinputTypesœ:[œDocumentœ,œDataœ],œtypeœ:œotherœ}",
|
||||
"selected": false,
|
||||
"source": "LanguageRecursiveTextSplitter-SCoy7",
|
||||
"sourceHandle": "{œdataTypeœ: œLanguageRecursiveTextSplitterœ, œidœ: œLanguageRecursiveTextSplitter-SCoy7œ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "HtmlLinkExtractor-mn1rQ",
|
||||
"targetHandle": "{œfieldNameœ: œdata_inputœ, œidœ: œHtmlLinkExtractor-mn1rQœ, œinputTypesœ: [œDocumentœ, œDataœ], œtypeœ: œotherœ}"
|
||||
"source": "LanguageRecursiveTextSplitter-wmtIz",
|
||||
"sourceHandle": "{œdataTypeœ: œLanguageRecursiveTextSplitterœ, œidœ: œLanguageRecursiveTextSplitter-wmtIzœ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "HtmlLinkExtractor-MyH7H",
|
||||
"targetHandle": "{œfieldNameœ: œdata_inputœ, œidœ: œHtmlLinkExtractor-MyH7Hœ, œinputTypesœ: [œDocumentœ, œDataœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -263,7 +263,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "HtmlLinkExtractor",
|
||||
"id": "HtmlLinkExtractor-mn1rQ",
|
||||
"id": "HtmlLinkExtractor-MyH7H",
|
||||
"name": "data",
|
||||
"output_types": [
|
||||
"Data"
|
||||
|
|
@ -271,19 +271,19 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "ingest_data",
|
||||
"id": "AstraDBGraph-AWG0r",
|
||||
"id": "AstraDBGraph-WPnB7",
|
||||
"inputTypes": [
|
||||
"Data"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-HtmlLinkExtractor-mn1rQ{œdataTypeœ:œHtmlLinkExtractorœ,œidœ:œHtmlLinkExtractor-mn1rQœ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-AstraDBGraph-AWG0r{œfieldNameœ:œingest_dataœ,œidœ:œAstraDBGraph-AWG0rœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"id": "reactflow__edge-HtmlLinkExtractor-MyH7H{œdataTypeœ:œHtmlLinkExtractorœ,œidœ:œHtmlLinkExtractor-MyH7Hœ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-AstraDBGraph-WPnB7{œfieldNameœ:œingest_dataœ,œidœ:œAstraDBGraph-WPnB7œ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"selected": false,
|
||||
"source": "HtmlLinkExtractor-mn1rQ",
|
||||
"sourceHandle": "{œdataTypeœ: œHtmlLinkExtractorœ, œidœ: œHtmlLinkExtractor-mn1rQœ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "AstraDBGraph-AWG0r",
|
||||
"targetHandle": "{œfieldNameœ: œingest_dataœ, œidœ: œAstraDBGraph-AWG0rœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
"source": "HtmlLinkExtractor-MyH7H",
|
||||
"sourceHandle": "{œdataTypeœ: œHtmlLinkExtractorœ, œidœ: œHtmlLinkExtractor-MyH7Hœ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "AstraDBGraph-WPnB7",
|
||||
"targetHandle": "{œfieldNameœ: œingest_dataœ, œidœ: œAstraDBGraph-WPnB7œ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -291,7 +291,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIEmbeddings",
|
||||
"id": "OpenAIEmbeddings-1t24r",
|
||||
"id": "OpenAIEmbeddings-SoMI2",
|
||||
"name": "embeddings",
|
||||
"output_types": [
|
||||
"Embeddings"
|
||||
|
|
@ -299,25 +299,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "embedding_model",
|
||||
"id": "AstraDBGraph-AWG0r",
|
||||
"id": "AstraDBGraph-WPnB7",
|
||||
"inputTypes": [
|
||||
"Embeddings"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-OpenAIEmbeddings-1t24r{œdataTypeœ:œOpenAIEmbeddingsœ,œidœ:œOpenAIEmbeddings-1t24rœ,œnameœ:œembeddingsœ,œoutput_typesœ:[œEmbeddingsœ]}-AstraDBGraph-AWG0r{œfieldNameœ:œembedding_modelœ,œidœ:œAstraDBGraph-AWG0rœ,œinputTypesœ:[œEmbeddingsœ],œtypeœ:œotherœ}",
|
||||
"id": "reactflow__edge-OpenAIEmbeddings-SoMI2{œdataTypeœ:œOpenAIEmbeddingsœ,œidœ:œOpenAIEmbeddings-SoMI2œ,œnameœ:œembeddingsœ,œoutput_typesœ:[œEmbeddingsœ]}-AstraDBGraph-WPnB7{œfieldNameœ:œembedding_modelœ,œidœ:œAstraDBGraph-WPnB7œ,œinputTypesœ:[œEmbeddingsœ],œtypeœ:œotherœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIEmbeddings-1t24r",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIEmbeddingsœ, œidœ: œOpenAIEmbeddings-1t24rœ, œnameœ: œembeddingsœ, œoutput_typesœ: [œEmbeddingsœ]}",
|
||||
"target": "AstraDBGraph-AWG0r",
|
||||
"targetHandle": "{œfieldNameœ: œembedding_modelœ, œidœ: œAstraDBGraph-AWG0rœ, œinputTypesœ: [œEmbeddingsœ], œtypeœ: œotherœ}"
|
||||
"source": "OpenAIEmbeddings-SoMI2",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIEmbeddingsœ, œidœ: œOpenAIEmbeddings-SoMI2œ, œnameœ: œembeddingsœ, œoutput_typesœ: [œEmbeddingsœ]}",
|
||||
"target": "AstraDBGraph-WPnB7",
|
||||
"targetHandle": "{œfieldNameœ: œembedding_modelœ, œidœ: œAstraDBGraph-WPnB7œ, œinputTypesœ: [œEmbeddingsœ], œtypeœ: œotherœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatInput-LeGl1",
|
||||
"id": "ChatInput-vz6Qy",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -598,7 +598,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 233,
|
||||
"id": "ChatInput-LeGl1",
|
||||
"id": "ChatInput-vz6Qy",
|
||||
"measured": {
|
||||
"height": 233,
|
||||
"width": 320
|
||||
|
|
@ -617,7 +617,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIEmbeddings-8ffog",
|
||||
"id": "OpenAIEmbeddings-gwVof",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Embeddings"
|
||||
|
|
@ -1099,7 +1099,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 320,
|
||||
"id": "OpenAIEmbeddings-8ffog",
|
||||
"id": "OpenAIEmbeddings-gwVof",
|
||||
"measured": {
|
||||
"height": 320,
|
||||
"width": 320
|
||||
|
|
@ -1120,7 +1120,7 @@
|
|||
"data": {
|
||||
"description": "Implementation of Graph Vector Store using Astra DB",
|
||||
"display_name": "Astra DB Graph",
|
||||
"id": "AstraDBGraph-utoVt",
|
||||
"id": "AstraDBGraph-LdFgZ",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
|
|
@ -1638,9 +1638,9 @@
|
|||
"type": "AstraDBGraph"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "AstraDBGraph-utoVt",
|
||||
"id": "AstraDBGraph-LdFgZ",
|
||||
"measured": {
|
||||
"height": 610,
|
||||
"height": 634,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -1654,7 +1654,7 @@
|
|||
"data": {
|
||||
"description": "Convert Data into plain text following a specified template.",
|
||||
"display_name": "Parse Data",
|
||||
"id": "ParseData-fXybX",
|
||||
"id": "ParseData-KSu0D",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
|
|
@ -1794,9 +1794,9 @@
|
|||
"type": "ParseData"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "ParseData-fXybX",
|
||||
"id": "ParseData-KSu0D",
|
||||
"measured": {
|
||||
"height": 350,
|
||||
"height": 342,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -1808,7 +1808,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "Prompt-5JIrF",
|
||||
"id": "Prompt-YYjDd",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -1962,9 +1962,9 @@
|
|||
"type": "Prompt"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "Prompt-5JIrF",
|
||||
"id": "Prompt-YYjDd",
|
||||
"measured": {
|
||||
"height": 433,
|
||||
"height": 421,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -1976,7 +1976,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-yLcAc",
|
||||
"id": "OpenAIModel-4odsT",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
|
|
@ -2281,9 +2281,9 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-yLcAc",
|
||||
"id": "OpenAIModel-4odsT",
|
||||
"measured": {
|
||||
"height": 688,
|
||||
"height": 656,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -2295,7 +2295,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatOutput-uEMmX",
|
||||
"id": "ChatOutput-7mjeM",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -2555,9 +2555,9 @@
|
|||
"type": "ChatOutput"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "ChatOutput-uEMmX",
|
||||
"id": "ChatOutput-7mjeM",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"height": 230,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -2569,7 +2569,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "URL-KqugB",
|
||||
"id": "URL-jjkEI",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
|
|
@ -2720,9 +2720,9 @@
|
|||
"type": "URL"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "URL-KqugB",
|
||||
"id": "URL-jjkEI",
|
||||
"measured": {
|
||||
"height": 1018,
|
||||
"height": 1066,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -2734,7 +2734,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "AstraDBGraph-AWG0r",
|
||||
"id": "AstraDBGraph-WPnB7",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
|
|
@ -3252,9 +3252,9 @@
|
|||
"type": "AstraDBGraph"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "AstraDBGraph-AWG0r",
|
||||
"id": "AstraDBGraph-WPnB7",
|
||||
"measured": {
|
||||
"height": 610,
|
||||
"height": 634,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -3266,7 +3266,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "LanguageRecursiveTextSplitter-SCoy7",
|
||||
"id": "LanguageRecursiveTextSplitter-wmtIz",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
|
|
@ -3438,9 +3438,9 @@
|
|||
"type": "LanguageRecursiveTextSplitter"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "LanguageRecursiveTextSplitter-SCoy7",
|
||||
"id": "LanguageRecursiveTextSplitter-wmtIz",
|
||||
"measured": {
|
||||
"height": 475,
|
||||
"height": 459,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -3452,7 +3452,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "HtmlLinkExtractor-mn1rQ",
|
||||
"id": "HtmlLinkExtractor-MyH7H",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
|
|
@ -3579,9 +3579,9 @@
|
|||
"type": "HtmlLinkExtractor"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "HtmlLinkExtractor-mn1rQ",
|
||||
"id": "HtmlLinkExtractor-MyH7H",
|
||||
"measured": {
|
||||
"height": 329,
|
||||
"height": 317,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -3593,7 +3593,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIEmbeddings-1t24r",
|
||||
"id": "OpenAIEmbeddings-SoMI2",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Embeddings"
|
||||
|
|
@ -4087,9 +4087,9 @@
|
|||
"type": "OpenAIEmbeddings"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIEmbeddings-1t24r",
|
||||
"id": "OpenAIEmbeddings-SoMI2",
|
||||
"measured": {
|
||||
"height": 320,
|
||||
"height": 312,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
|
|
@ -4098,18 +4098,96 @@
|
|||
},
|
||||
"selected": false,
|
||||
"type": "genericNode"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-Nby9n",
|
||||
"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. ",
|
||||
"display_name": "",
|
||||
"documentation": "",
|
||||
"template": {}
|
||||
},
|
||||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 695,
|
||||
"id": "note-Nby9n",
|
||||
"measured": {
|
||||
"height": 695,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": -2651.9749287591367,
|
||||
"y": 6278.741596879104
|
||||
},
|
||||
"resizing": false,
|
||||
"selected": false,
|
||||
"type": "noteNode",
|
||||
"width": 477
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-o96q7",
|
||||
"node": {
|
||||
"description": "## 📚 1. Load Data Flow\n\nRun this first! Load data multiple urls, and embed it into the vector database in a graph based format.\n\nClick ▶️ **Run component** on the **Astra DB Graph** 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": "",
|
||||
"documentation": "",
|
||||
"template": {}
|
||||
},
|
||||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 499,
|
||||
"id": "note-o96q7",
|
||||
"measured": {
|
||||
"height": 499,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": -2156.877891666127,
|
||||
"y": 5887.194729165318
|
||||
},
|
||||
"resizing": false,
|
||||
"selected": false,
|
||||
"type": "noteNode",
|
||||
"width": 325
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-Svi05",
|
||||
"node": {
|
||||
"description": "## 🐕 2. Retriever Flow\n\nThis flow answers your questions with contextual data retrieved from your vector database. using graph RAG.\n\nOpen the **Playground** and ask, \n\n```\nhow to create a function in Haskell ?\n```\n",
|
||||
"display_name": "",
|
||||
"documentation": "",
|
||||
"template": {}
|
||||
},
|
||||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "note-Svi05",
|
||||
"measured": {
|
||||
"height": 325,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": -2255.4854518934735,
|
||||
"y": 7190.4854518934735
|
||||
},
|
||||
"selected": false,
|
||||
"type": "noteNode"
|
||||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": 739.8038625592436,
|
||||
"y": -2221.1151988349297,
|
||||
"zoom": 0.3542438656259266
|
||||
"x": 1003.3024895663839,
|
||||
"y": -1906.154829822026,
|
||||
"zoom": 0.35536121365456846
|
||||
}
|
||||
},
|
||||
"description": "Extracts links from web pages and processes the content using Graph RAG Chain with Maximal Marginal Relevance (MMR) traversal.",
|
||||
"endpoint_name": null,
|
||||
"icon": "chartNetwork",
|
||||
"id": "d671259c-c29e-466e-9bbf-622b9dccac38",
|
||||
"id": "73ceae85-141a-42e3-9f41-a0749434ca0e",
|
||||
"is_component": false,
|
||||
"last_tested_version": "1.1.1",
|
||||
"name": "Graph RAG",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,68 +1,12 @@
|
|||
{
|
||||
"data": {
|
||||
"edges": [
|
||||
{
|
||||
"animated": false,
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-4aid4",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-CL8qC",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-OpenAIModel-4aid4{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-4aid4œ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-CL8qC{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-CL8qCœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-4aid4",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-4aid4œ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-CL8qC",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-CL8qCœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-wnAdG",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-4aid4",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ChatInput-wnAdG{œdataTypeœ:œChatInputœ,œidœ:œChatInput-wnAdGœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-4aid4{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-4aid4œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-wnAdG",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-wnAdGœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-4aid4",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-4aid4œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Memory",
|
||||
"id": "Memory-dsJro",
|
||||
"id": "Memory-W1a3k",
|
||||
"name": "messages_text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -70,7 +14,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "memory",
|
||||
"id": "Prompt-JvUF7",
|
||||
"id": "Prompt-q8R26",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
|
|
@ -78,18 +22,42 @@
|
|||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Memory-dsJro{œdataTypeœ:œMemoryœ,œidœ:œMemory-dsJroœ,œnameœ:œmessages_textœ,œoutput_typesœ:[œMessageœ]}-Prompt-JvUF7{œfieldNameœ:œmemoryœ,œidœ:œPrompt-JvUF7œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "Memory-dsJro",
|
||||
"sourceHandle": "{œdataTypeœ: œMemoryœ, œidœ: œMemory-dsJroœ, œnameœ: œmessages_textœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-JvUF7",
|
||||
"targetHandle": "{œfieldNameœ: œmemoryœ, œidœ: œPrompt-JvUF7œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Memory-W1a3k{œdataTypeœ:œMemoryœ,œidœ:œMemory-W1a3kœ,œnameœ:œmessages_textœ,œoutput_typesœ:[œMessageœ]}-Prompt-q8R26{œfieldNameœ:œmemoryœ,œidœ:œPrompt-q8R26œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "Memory-W1a3k",
|
||||
"sourceHandle": "{œdataTypeœ: œMemoryœ, œidœ: œMemory-W1a3kœ, œnameœ: œmessages_textœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-q8R26",
|
||||
"targetHandle": "{œfieldNameœ: œmemoryœ, œidœ: œPrompt-q8R26œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-LrPKe",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__ChatInput-LrPKe{œdataTypeœ:œChatInputœ,œidœ:œChatInput-LrPKeœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-BSFD4{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-BSFD4œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-LrPKe",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-LrPKeœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-BSFD4",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-BSFD4œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-JvUF7",
|
||||
"id": "Prompt-q8R26",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -97,24 +65,49 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-4aid4",
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-JvUF7{œdataTypeœ:œPromptœ,œidœ:œPrompt-JvUF7œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-4aid4{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-4aid4œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-JvUF7",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-JvUF7œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-4aid4",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-4aid4œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "xy-edge__Prompt-q8R26{œdataTypeœ:œPromptœ,œidœ:œPrompt-q8R26œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-BSFD4{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-BSFD4œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-q8R26",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-q8R26œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-BSFD4",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-BSFD4œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-Fk6pf",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-BSFD4{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-BSFD4œ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-Fk6pf{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-Fk6pfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-BSFD4",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-BSFD4œ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-Fk6pf",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-Fk6pfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatInput-wnAdG",
|
||||
"id": "ChatInput-LrPKe",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -395,7 +388,11 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatInput-wnAdG",
|
||||
"id": "ChatInput-LrPKe",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 2321.5543981677606,
|
||||
"y": 374.0457826421628
|
||||
|
|
@ -412,7 +409,7 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-CL8qC",
|
||||
"id": "ChatOutput-Fk6pf",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -671,24 +668,28 @@
|
|||
},
|
||||
"type": "ChatOutput"
|
||||
},
|
||||
"dragging": false,
|
||||
"dragging": true,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-CL8qC",
|
||||
"id": "ChatOutput-Fk6pf",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 3101.965731391458,
|
||||
"y": 776.4408905693839
|
||||
"x": 3113.9880204333917,
|
||||
"y": 769.7618411016429
|
||||
},
|
||||
"positionAbsolute": {
|
||||
"x": 3101.965731391458,
|
||||
"y": 776.4408905693839
|
||||
},
|
||||
"selected": false,
|
||||
"selected": true,
|
||||
"type": "genericNode",
|
||||
"width": 320
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-4FQUh",
|
||||
"id": "note-gj6hj",
|
||||
"node": {
|
||||
"description": "# Memory Chatbot\n\nA flexible chatbot implementation featuring advanced conversation memory capabilities. This serves as a foundational tool for building chat experiences with persistent context.\n\n## Core Components\n\n1. **Chat Input**\n - Accepts user messages\n - Configures conversation storage\n - Tracks session identity\n\n2. **Chat Memory**\n - Stores and retrieves up to 100 previous messages\n - Maintains conversation context\n - Tracks separate chat sessions\n - Preserves sender information and message order\n\n3. **Prompt**\n - Creates dynamic prompt templates\n - Integrates memory into conversation flow\n\n4. **OpenAI**\n - Processes user input with context\n - Accesses conversation history\n - Includes options for model configuration and API key setup\n\n5. **Chat Output**\n - Displays formatted responses\n - Maintains conversation flow\n - Syncs with memory storage\n\n## Memory Features\n\n- Stores message history\n- Plans conversation trajectory\n- Differentiates between chat sessions\n- Preserves sender and message metadata\n\n## Quick Start\n\n1. **Initialize** with a clear session ID\n2. **Enter** message in Chat Input\n3. **AI Processes** with context from memory\n4. **Response** appears in Chat Output\n5. Context remains available for follow-ups\n\nThis robust system demonstrates thorough memory integration with minimal complexity. 🧠💬\n",
|
||||
"display_name": "",
|
||||
|
|
@ -699,7 +700,11 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 736,
|
||||
"id": "note-4FQUh",
|
||||
"id": "note-gj6hj",
|
||||
"measured": {
|
||||
"height": 736,
|
||||
"width": 328
|
||||
},
|
||||
"position": {
|
||||
"x": 1512.8976594415833,
|
||||
"y": 312.9558305744385
|
||||
|
|
@ -719,7 +724,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-5ZvaH",
|
||||
"id": "note-SQs3p",
|
||||
"node": {
|
||||
"description": "## Get Your OpenAI API Key\n\n**Steps**:\n\n1. **Visit** [OpenAI's API Key Page](https://platform.openai.com/api-keys).\n\n2. **Log In/Sign Up**:\n - Log in or create a new OpenAI account.\n\n3. **Generate API Key**:\n - Click \"Create New Secret Key\" to obtain your key.\n\n4. **Store Your Key Securely**:\n - Note it down as it will only display once.\n\n5. **Enter API Key**:\n - Input your key in the OpenAI API Key field within the component setup.\n\nKeep your key safe and manage it responsibly!",
|
||||
"display_name": "",
|
||||
|
|
@ -732,7 +737,11 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 325,
|
||||
"id": "note-5ZvaH",
|
||||
"id": "note-SQs3p",
|
||||
"measured": {
|
||||
"height": 325,
|
||||
"width": 328
|
||||
},
|
||||
"position": {
|
||||
"x": 2727.7060397092964,
|
||||
"y": 115.42518754847691
|
||||
|
|
@ -747,319 +756,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-4aid4",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
"description": "Generates text using OpenAI LLMs.",
|
||||
"display_name": "OpenAI",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"input_value",
|
||||
"system_message",
|
||||
"stream",
|
||||
"max_tokens",
|
||||
"model_kwargs",
|
||||
"json_mode",
|
||||
"output_schema",
|
||||
"model_name",
|
||||
"openai_api_base",
|
||||
"api_key",
|
||||
"temperature",
|
||||
"seed",
|
||||
"output_parser"
|
||||
],
|
||||
"frozen": false,
|
||||
"icon": "OpenAI",
|
||||
"legacy": false,
|
||||
"lf_version": "1.0.19.post2",
|
||||
"metadata": {},
|
||||
"output_types": [],
|
||||
"outputs": [
|
||||
{
|
||||
"allows_loop": false,
|
||||
"cache": true,
|
||||
"display_name": "Message",
|
||||
"method": "text_response",
|
||||
"name": "text_output",
|
||||
"required_inputs": [],
|
||||
"selected": "Message",
|
||||
"types": [
|
||||
"Message"
|
||||
],
|
||||
"value": "__UNDEFINED__"
|
||||
},
|
||||
{
|
||||
"allows_loop": false,
|
||||
"cache": true,
|
||||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [],
|
||||
"selected": "LanguageModel",
|
||||
"types": [
|
||||
"LanguageModel"
|
||||
],
|
||||
"value": "__UNDEFINED__"
|
||||
}
|
||||
],
|
||||
"pinned": false,
|
||||
"template": {
|
||||
"_type": "Component",
|
||||
"api_key": {
|
||||
"_input_type": "SecretStrInput",
|
||||
"advanced": false,
|
||||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
"dynamic": true,
|
||||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
"name": "code",
|
||||
"password": false,
|
||||
"placeholder": "",
|
||||
"required": true,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "code",
|
||||
"value": "from langchain_openai import ChatOpenAI\nfrom pydantic.v1 import SecretStr\n\nfrom langflow.base.models.model import LCModelComponent\nfrom langflow.base.models.openai_constants import OPENAI_MODEL_NAMES\nfrom langflow.field_typing import LanguageModel\nfrom langflow.field_typing.range_spec import RangeSpec\nfrom langflow.inputs import BoolInput, DictInput, DropdownInput, IntInput, SecretStrInput, SliderInput, StrInput\n\n\nclass OpenAIModelComponent(LCModelComponent):\n display_name = \"OpenAI\"\n description = \"Generates text using OpenAI LLMs.\"\n icon = \"OpenAI\"\n name = \"OpenAIModel\"\n\n inputs = [\n *LCModelComponent._base_inputs,\n IntInput(\n name=\"max_tokens\",\n display_name=\"Max Tokens\",\n advanced=True,\n info=\"The maximum number of tokens to generate. Set to 0 for unlimited tokens.\",\n range_spec=RangeSpec(min=0, max=128000),\n ),\n DictInput(\n name=\"model_kwargs\",\n display_name=\"Model Kwargs\",\n advanced=True,\n info=\"Additional keyword arguments to pass to the model.\",\n ),\n BoolInput(\n name=\"json_mode\",\n display_name=\"JSON Mode\",\n advanced=True,\n info=\"If True, it will output JSON regardless of passing a schema.\",\n ),\n DropdownInput(\n name=\"model_name\",\n display_name=\"Model Name\",\n advanced=False,\n options=OPENAI_MODEL_NAMES,\n value=OPENAI_MODEL_NAMES[0],\n ),\n StrInput(\n name=\"openai_api_base\",\n display_name=\"OpenAI API Base\",\n advanced=True,\n info=\"The base URL of the OpenAI API. \"\n \"Defaults to https://api.openai.com/v1. \"\n \"You can change this to use other APIs like JinaChat, LocalAI and Prem.\",\n ),\n SecretStrInput(\n name=\"api_key\",\n display_name=\"OpenAI API Key\",\n info=\"The OpenAI API Key to use for the OpenAI model.\",\n advanced=False,\n value=\"OPENAI_API_KEY\",\n ),\n SliderInput(\n name=\"temperature\", display_name=\"Temperature\", value=0.1, range_spec=RangeSpec(min=0, max=2, step=0.01)\n ),\n IntInput(\n name=\"seed\",\n display_name=\"Seed\",\n info=\"The seed controls the reproducibility of the job.\",\n advanced=True,\n value=1,\n ),\n ]\n\n def build_model(self) -> LanguageModel: # type: ignore[type-var]\n openai_api_key = self.api_key\n temperature = self.temperature\n model_name: str = self.model_name\n max_tokens = self.max_tokens\n model_kwargs = self.model_kwargs or {}\n openai_api_base = self.openai_api_base or \"https://api.openai.com/v1\"\n json_mode = self.json_mode\n seed = self.seed\n\n api_key = SecretStr(openai_api_key).get_secret_value() if openai_api_key else None\n output = ChatOpenAI(\n max_tokens=max_tokens or None,\n model_kwargs=model_kwargs,\n model=model_name,\n base_url=openai_api_base,\n api_key=api_key,\n temperature=temperature if temperature is not None else 0.1,\n seed=seed,\n )\n if json_mode:\n output = output.bind(response_format={\"type\": \"json_object\"})\n\n return output\n\n def _get_exception_message(self, e: Exception):\n \"\"\"Get a message from an OpenAI exception.\n\n Args:\n e (Exception): The exception to get the message from.\n\n Returns:\n str: The message from the exception.\n \"\"\"\n try:\n from openai import BadRequestError\n except ImportError:\n return None\n if isinstance(e, BadRequestError):\n message = e.body.get(\"message\")\n if message:\n return message\n return None\n"
|
||||
},
|
||||
"input_value": {
|
||||
"_input_type": "MessageInput",
|
||||
"advanced": false,
|
||||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"trace_as_input": true,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
},
|
||||
"json_mode": {
|
||||
"_input_type": "BoolInput",
|
||||
"advanced": true,
|
||||
"display_name": "JSON Mode",
|
||||
"dynamic": false,
|
||||
"info": "If True, it will output JSON regardless of passing a schema.",
|
||||
"list": false,
|
||||
"name": "json_mode",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "bool",
|
||||
"value": false
|
||||
},
|
||||
"max_tokens": {
|
||||
"_input_type": "IntInput",
|
||||
"advanced": true,
|
||||
"display_name": "Max Tokens",
|
||||
"dynamic": false,
|
||||
"info": "The maximum number of tokens to generate. Set to 0 for unlimited tokens.",
|
||||
"list": false,
|
||||
"name": "max_tokens",
|
||||
"placeholder": "",
|
||||
"range_spec": {
|
||||
"max": 128000,
|
||||
"min": 0,
|
||||
"step": 0.1,
|
||||
"step_type": "float"
|
||||
},
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "int",
|
||||
"value": ""
|
||||
},
|
||||
"model_kwargs": {
|
||||
"_input_type": "DictInput",
|
||||
"advanced": true,
|
||||
"display_name": "Model Kwargs",
|
||||
"dynamic": false,
|
||||
"info": "Additional keyword arguments to pass to the model.",
|
||||
"list": false,
|
||||
"name": "model_kwargs",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"trace_as_input": true,
|
||||
"type": "dict",
|
||||
"value": {}
|
||||
},
|
||||
"model_name": {
|
||||
"_input_type": "DropdownInput",
|
||||
"advanced": false,
|
||||
"combobox": false,
|
||||
"display_name": "Model Name",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"name": "model_name",
|
||||
"options": [
|
||||
"gpt-4o-mini",
|
||||
"gpt-4o",
|
||||
"gpt-4-turbo",
|
||||
"gpt-4-turbo-preview",
|
||||
"gpt-4",
|
||||
"gpt-3.5-turbo",
|
||||
"gpt-3.5-turbo-0125"
|
||||
],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": "gpt-4o-mini"
|
||||
},
|
||||
"openai_api_base": {
|
||||
"_input_type": "StrInput",
|
||||
"advanced": true,
|
||||
"display_name": "OpenAI API Base",
|
||||
"dynamic": false,
|
||||
"info": "The base URL of the OpenAI API. Defaults to https://api.openai.com/v1. You can change this to use other APIs like JinaChat, LocalAI and Prem.",
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "openai_api_base",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
},
|
||||
"seed": {
|
||||
"_input_type": "IntInput",
|
||||
"advanced": true,
|
||||
"display_name": "Seed",
|
||||
"dynamic": false,
|
||||
"info": "The seed controls the reproducibility of the job.",
|
||||
"list": false,
|
||||
"name": "seed",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "int",
|
||||
"value": 1
|
||||
},
|
||||
"stream": {
|
||||
"_input_type": "BoolInput",
|
||||
"advanced": false,
|
||||
"display_name": "Stream",
|
||||
"dynamic": false,
|
||||
"info": "Stream the response from the model. Streaming works only in Chat.",
|
||||
"list": false,
|
||||
"name": "stream",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "bool",
|
||||
"value": false
|
||||
},
|
||||
"system_message": {
|
||||
"_input_type": "MessageTextInput",
|
||||
"advanced": false,
|
||||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "system_message",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_input": true,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
},
|
||||
"temperature": {
|
||||
"_input_type": "FloatInput",
|
||||
"advanced": false,
|
||||
"display_name": "Temperature",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"list": false,
|
||||
"name": "temperature",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "float",
|
||||
"value": 0.1
|
||||
}
|
||||
},
|
||||
"tool_mode": false
|
||||
},
|
||||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 630,
|
||||
"id": "OpenAIModel-4aid4",
|
||||
"position": {
|
||||
"x": 2730.3374000311414,
|
||||
"y": 465.98757723618604
|
||||
},
|
||||
"positionAbsolute": {
|
||||
"x": 2730.3374000311414,
|
||||
"y": 465.98757723618604
|
||||
},
|
||||
"selected": false,
|
||||
"type": "genericNode",
|
||||
"width": 320
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "Memory-dsJro",
|
||||
"id": "Memory-W1a3k",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
|
|
@ -1286,7 +983,11 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 264,
|
||||
"id": "Memory-dsJro",
|
||||
"id": "Memory-W1a3k",
|
||||
"measured": {
|
||||
"height": 264,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 1947.7805399474369,
|
||||
"y": 766.1115984799474
|
||||
|
|
@ -1301,7 +1002,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "Prompt-JvUF7",
|
||||
"id": "Prompt-q8R26",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -1436,7 +1137,11 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 347,
|
||||
"id": "Prompt-JvUF7",
|
||||
"id": "Prompt-q8R26",
|
||||
"measured": {
|
||||
"height": 347,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 2327.422938009026,
|
||||
"y": 675.992123914672
|
||||
|
|
@ -1448,12 +1153,354 @@
|
|||
"selected": false,
|
||||
"type": "genericNode",
|
||||
"width": 320
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
"description": "Generates text using OpenAI LLMs.",
|
||||
"display_name": "OpenAI",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"input_value",
|
||||
"system_message",
|
||||
"stream",
|
||||
"max_tokens",
|
||||
"model_kwargs",
|
||||
"json_mode",
|
||||
"model_name",
|
||||
"openai_api_base",
|
||||
"api_key",
|
||||
"temperature",
|
||||
"seed"
|
||||
],
|
||||
"frozen": false,
|
||||
"icon": "OpenAI",
|
||||
"key": "OpenAIModel",
|
||||
"legacy": false,
|
||||
"metadata": {},
|
||||
"minimized": false,
|
||||
"output_types": [],
|
||||
"outputs": [
|
||||
{
|
||||
"allows_loop": false,
|
||||
"cache": true,
|
||||
"display_name": "Message",
|
||||
"method": "text_response",
|
||||
"name": "text_output",
|
||||
"required_inputs": [],
|
||||
"selected": "Message",
|
||||
"types": [
|
||||
"Message"
|
||||
],
|
||||
"value": "__UNDEFINED__"
|
||||
},
|
||||
{
|
||||
"allows_loop": false,
|
||||
"cache": true,
|
||||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [],
|
||||
"selected": "LanguageModel",
|
||||
"types": [
|
||||
"LanguageModel"
|
||||
],
|
||||
"value": "__UNDEFINED__"
|
||||
}
|
||||
],
|
||||
"pinned": false,
|
||||
"score": 0.14285714285714285,
|
||||
"template": {
|
||||
"_type": "Component",
|
||||
"api_key": {
|
||||
"_input_type": "SecretStrInput",
|
||||
"advanced": false,
|
||||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
"dynamic": true,
|
||||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
"name": "code",
|
||||
"password": false,
|
||||
"placeholder": "",
|
||||
"required": true,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "code",
|
||||
"value": "from langchain_openai import ChatOpenAI\nfrom pydantic.v1 import SecretStr\n\nfrom langflow.base.models.model import LCModelComponent\nfrom langflow.base.models.openai_constants import OPENAI_MODEL_NAMES\nfrom langflow.field_typing import LanguageModel\nfrom langflow.field_typing.range_spec import RangeSpec\nfrom langflow.inputs import BoolInput, DictInput, DropdownInput, IntInput, SecretStrInput, SliderInput, StrInput\n\n\nclass OpenAIModelComponent(LCModelComponent):\n display_name = \"OpenAI\"\n description = \"Generates text using OpenAI LLMs.\"\n icon = \"OpenAI\"\n name = \"OpenAIModel\"\n\n inputs = [\n *LCModelComponent._base_inputs,\n IntInput(\n name=\"max_tokens\",\n display_name=\"Max Tokens\",\n advanced=True,\n info=\"The maximum number of tokens to generate. Set to 0 for unlimited tokens.\",\n range_spec=RangeSpec(min=0, max=128000),\n ),\n DictInput(\n name=\"model_kwargs\",\n display_name=\"Model Kwargs\",\n advanced=True,\n info=\"Additional keyword arguments to pass to the model.\",\n ),\n BoolInput(\n name=\"json_mode\",\n display_name=\"JSON Mode\",\n advanced=True,\n info=\"If True, it will output JSON regardless of passing a schema.\",\n ),\n DropdownInput(\n name=\"model_name\",\n display_name=\"Model Name\",\n advanced=False,\n options=OPENAI_MODEL_NAMES,\n value=OPENAI_MODEL_NAMES[0],\n ),\n StrInput(\n name=\"openai_api_base\",\n display_name=\"OpenAI API Base\",\n advanced=True,\n info=\"The base URL of the OpenAI API. \"\n \"Defaults to https://api.openai.com/v1. \"\n \"You can change this to use other APIs like JinaChat, LocalAI and Prem.\",\n ),\n SecretStrInput(\n name=\"api_key\",\n display_name=\"OpenAI API Key\",\n info=\"The OpenAI API Key to use for the OpenAI model.\",\n advanced=False,\n value=\"OPENAI_API_KEY\",\n ),\n SliderInput(\n name=\"temperature\", display_name=\"Temperature\", value=0.1, range_spec=RangeSpec(min=0, max=2, step=0.01)\n ),\n IntInput(\n name=\"seed\",\n display_name=\"Seed\",\n info=\"The seed controls the reproducibility of the job.\",\n advanced=True,\n value=1,\n ),\n ]\n\n def build_model(self) -> LanguageModel: # type: ignore[type-var]\n openai_api_key = self.api_key\n temperature = self.temperature\n model_name: str = self.model_name\n max_tokens = self.max_tokens\n model_kwargs = self.model_kwargs or {}\n openai_api_base = self.openai_api_base or \"https://api.openai.com/v1\"\n json_mode = self.json_mode\n seed = self.seed\n\n api_key = SecretStr(openai_api_key).get_secret_value() if openai_api_key else None\n output = ChatOpenAI(\n max_tokens=max_tokens or None,\n model_kwargs=model_kwargs,\n model=model_name,\n base_url=openai_api_base,\n api_key=api_key,\n temperature=temperature if temperature is not None else 0.1,\n seed=seed,\n )\n if json_mode:\n output = output.bind(response_format={\"type\": \"json_object\"})\n\n return output\n\n def _get_exception_message(self, e: Exception):\n \"\"\"Get a message from an OpenAI exception.\n\n Args:\n e (Exception): The exception to get the message from.\n\n Returns:\n str: The message from the exception.\n \"\"\"\n try:\n from openai import BadRequestError\n except ImportError:\n return None\n if isinstance(e, BadRequestError):\n message = e.body.get(\"message\")\n if message:\n return message\n return None\n"
|
||||
},
|
||||
"input_value": {
|
||||
"_input_type": "MessageInput",
|
||||
"advanced": false,
|
||||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_input": true,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
},
|
||||
"json_mode": {
|
||||
"_input_type": "BoolInput",
|
||||
"advanced": true,
|
||||
"display_name": "JSON Mode",
|
||||
"dynamic": false,
|
||||
"info": "If True, it will output JSON regardless of passing a schema.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "json_mode",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "bool",
|
||||
"value": false
|
||||
},
|
||||
"max_tokens": {
|
||||
"_input_type": "IntInput",
|
||||
"advanced": true,
|
||||
"display_name": "Max Tokens",
|
||||
"dynamic": false,
|
||||
"info": "The maximum number of tokens to generate. Set to 0 for unlimited tokens.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "max_tokens",
|
||||
"placeholder": "",
|
||||
"range_spec": {
|
||||
"max": 128000,
|
||||
"min": 0,
|
||||
"step": 0.1,
|
||||
"step_type": "float"
|
||||
},
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "int",
|
||||
"value": ""
|
||||
},
|
||||
"model_kwargs": {
|
||||
"_input_type": "DictInput",
|
||||
"advanced": true,
|
||||
"display_name": "Model Kwargs",
|
||||
"dynamic": false,
|
||||
"info": "Additional keyword arguments to pass to the model.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "model_kwargs",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_input": true,
|
||||
"type": "dict",
|
||||
"value": {}
|
||||
},
|
||||
"model_name": {
|
||||
"_input_type": "DropdownInput",
|
||||
"advanced": false,
|
||||
"combobox": false,
|
||||
"dialog_inputs": {},
|
||||
"display_name": "Model Name",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"name": "model_name",
|
||||
"options": [
|
||||
"gpt-4o-mini",
|
||||
"gpt-4o",
|
||||
"gpt-4-turbo",
|
||||
"gpt-4-turbo-preview",
|
||||
"gpt-4",
|
||||
"gpt-3.5-turbo",
|
||||
"gpt-3.5-turbo-0125"
|
||||
],
|
||||
"options_metadata": [],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": "gpt-4o-mini"
|
||||
},
|
||||
"openai_api_base": {
|
||||
"_input_type": "StrInput",
|
||||
"advanced": true,
|
||||
"display_name": "OpenAI API Base",
|
||||
"dynamic": false,
|
||||
"info": "The base URL of the OpenAI API. Defaults to https://api.openai.com/v1. You can change this to use other APIs like JinaChat, LocalAI and Prem.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
"name": "openai_api_base",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
},
|
||||
"seed": {
|
||||
"_input_type": "IntInput",
|
||||
"advanced": true,
|
||||
"display_name": "Seed",
|
||||
"dynamic": false,
|
||||
"info": "The seed controls the reproducibility of the job.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "seed",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "int",
|
||||
"value": 1
|
||||
},
|
||||
"stream": {
|
||||
"_input_type": "BoolInput",
|
||||
"advanced": false,
|
||||
"display_name": "Stream",
|
||||
"dynamic": false,
|
||||
"info": "Stream the response from the model. Streaming works only in Chat.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "stream",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "bool",
|
||||
"value": false
|
||||
},
|
||||
"system_message": {
|
||||
"_input_type": "MultilineInput",
|
||||
"advanced": false,
|
||||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
"name": "system_message",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_input": true,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
},
|
||||
"temperature": {
|
||||
"_input_type": "SliderInput",
|
||||
"advanced": false,
|
||||
"display_name": "Temperature",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"max_label": "",
|
||||
"max_label_icon": "",
|
||||
"min_label": "",
|
||||
"min_label_icon": "",
|
||||
"name": "temperature",
|
||||
"placeholder": "",
|
||||
"range_spec": {
|
||||
"max": 2,
|
||||
"min": 0,
|
||||
"step": 0.01,
|
||||
"step_type": "float"
|
||||
},
|
||||
"required": false,
|
||||
"show": true,
|
||||
"slider_buttons": false,
|
||||
"slider_buttons_options": [],
|
||||
"slider_input": false,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"type": "slider",
|
||||
"value": 0.1
|
||||
}
|
||||
},
|
||||
"tool_mode": false
|
||||
},
|
||||
"showNode": true,
|
||||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 2726.7429097065215,
|
||||
"y": 460.96432586131795
|
||||
},
|
||||
"selected": false,
|
||||
"type": "genericNode"
|
||||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": -982.1139274661589,
|
||||
"y": -37.00115573852611,
|
||||
"zoom": 0.6716071677128489
|
||||
"x": -1173.6150415418488,
|
||||
"y": -168.93756272342318,
|
||||
"zoom": 0.7486095175892006
|
||||
}
|
||||
},
|
||||
"description": "Create a chatbot that saves and references previous messages, enabling the model to maintain context throughout the conversation.",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -2,40 +2,10 @@
|
|||
"data": {
|
||||
"edges": [
|
||||
{
|
||||
"animated": false,
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-FXOhu",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-E96kR",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-FXOhu{œdataTypeœ:œPromptœ,œidœ:œPrompt-FXOhuœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-E96kR{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-E96kRœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-FXOhu",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-FXOhuœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-E96kR",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-E96kRœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-aMAQ2",
|
||||
"id": "Prompt-QFfcl",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -43,27 +13,49 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-E96kR",
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-aMAQ2{œdataTypeœ:œPromptœ,œidœ:œPrompt-aMAQ2œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-E96kR{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-E96kRœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-aMAQ2",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-aMAQ2œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-E96kR",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-E96kRœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "xy-edge__Prompt-QFfcl{œdataTypeœ:œPromptœ,œidœ:œPrompt-QFfclœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-3mbCD{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-3mbCDœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-QFfcl",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-QFfclœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-3mbCD",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-3mbCDœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-RpVoN",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-RpVoN{œdataTypeœ:œPromptœ,œidœ:œPrompt-RpVoNœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-3mbCD{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-3mbCDœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-RpVoN",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-RpVoNœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-3mbCD",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-3mbCDœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-E96kR",
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -71,19 +63,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-aCpBy",
|
||||
"id": "ChatOutput-vBbvi",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-OpenAIModel-E96kR{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-E96kRœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-aCpBy{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-aCpByœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-E96kR",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-E96kRœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-aCpBy",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-aCpByœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "xy-edge__OpenAIModel-3mbCD{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-3mbCDœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-vBbvi{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-vBbviœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-3mbCD",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-3mbCDœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-vBbvi",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-vBbviœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -91,7 +82,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-FXOhu",
|
||||
"id": "Prompt-RpVoN",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -341,7 +332,11 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 779,
|
||||
"id": "Prompt-FXOhu",
|
||||
"id": "Prompt-RpVoN",
|
||||
"measured": {
|
||||
"height": 779,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 816.9328565352126,
|
||||
"y": 189.70442453076902
|
||||
|
|
@ -356,7 +351,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-5yMAo",
|
||||
"id": "note-bzlUs",
|
||||
"node": {
|
||||
"description": "# SEO Keyword Generator\nWelcome to the SEO Keywords Generator - an AI tool to create strategic keywords based on your product and audience profile!\n\n## Instructions\n\n1. **Fill Product Information**\n - Enter your product name and description\n - Keep it clear and specific\n - Highlight unique features and benefits\n\n2. **Define Pain Points**\n - List customer problems and challenges\n - Be specific about what frustrations they face\n - Include both practical and emotional pain points\n\n3. **Set Goals & Solutions**\n - Specify customer objectives\n - Detail how they currently solve problems\n - Outline desired outcomes\n\n4. **Target Audience Details**\n - Define demographics and characteristics\n - Include expertise level\n - Describe behavior patterns and preferences\n\n5. **Review Output**\n - Examine generated keywords\n - Check relevance and search intent\n - Use insights for SEO strategy planning\n\nRemember: The more detailed your input, the more targeted and effective your keywords will be! 🎯🔍✨",
|
||||
"display_name": "",
|
||||
|
|
@ -367,7 +362,11 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 607,
|
||||
"id": "note-5yMAo",
|
||||
"id": "note-bzlUs",
|
||||
"measured": {
|
||||
"height": 607,
|
||||
"width": 328
|
||||
},
|
||||
"position": {
|
||||
"x": 221.74248905040588,
|
||||
"y": 363.5469410934121
|
||||
|
|
@ -389,7 +388,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-aMAQ2",
|
||||
"id": "Prompt-QFfcl",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -494,7 +493,11 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-aMAQ2",
|
||||
"id": "Prompt-QFfcl",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 813.5727530934735,
|
||||
"y": 991.0702563306074
|
||||
|
|
@ -511,7 +514,7 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-aCpBy",
|
||||
"id": "ChatOutput-vBbvi",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -772,7 +775,11 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-aCpBy",
|
||||
"id": "ChatOutput-vBbvi",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 1598.2529634286327,
|
||||
"y": 623.4799714496987
|
||||
|
|
@ -787,15 +794,44 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"description": "Generates text using OpenAI LLMs.",
|
||||
"display_name": "OpenAI",
|
||||
"id": "OpenAIModel-E96kR",
|
||||
"id": "note-BWTHt",
|
||||
"node": {
|
||||
"description": "## Make sure to add your OpenAI API key from [platform.openai.com](https://platform.openai.com). ",
|
||||
"display_name": "",
|
||||
"documentation": "",
|
||||
"template": {}
|
||||
},
|
||||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 325,
|
||||
"id": "note-BWTHt",
|
||||
"measured": {
|
||||
"height": 325,
|
||||
"width": 328
|
||||
},
|
||||
"position": {
|
||||
"x": 1207.1996899547116,
|
||||
"y": 260.0148704431837
|
||||
},
|
||||
"positionAbsolute": {
|
||||
"x": 1207.1996899547116,
|
||||
"y": 260.0148704431837
|
||||
},
|
||||
"selected": false,
|
||||
"type": "noteNode",
|
||||
"width": 325
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
"description": "Generates text using OpenAI LLMs.",
|
||||
|
|
@ -809,19 +845,18 @@
|
|||
"max_tokens",
|
||||
"model_kwargs",
|
||||
"json_mode",
|
||||
"output_schema",
|
||||
"model_name",
|
||||
"openai_api_base",
|
||||
"api_key",
|
||||
"temperature",
|
||||
"seed",
|
||||
"output_parser"
|
||||
"seed"
|
||||
],
|
||||
"frozen": false,
|
||||
"icon": "OpenAI",
|
||||
"key": "OpenAIModel",
|
||||
"legacy": false,
|
||||
"lf_version": "1.0.19.post2",
|
||||
"metadata": {},
|
||||
"minimized": false,
|
||||
"output_types": [],
|
||||
"outputs": [
|
||||
{
|
||||
|
|
@ -852,6 +887,7 @@
|
|||
}
|
||||
],
|
||||
"pinned": false,
|
||||
"score": 2.220446049250313e-16,
|
||||
"template": {
|
||||
"_type": "Component",
|
||||
"api_key": {
|
||||
|
|
@ -901,12 +937,14 @@
|
|||
"Message"
|
||||
],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_input": true,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
|
|
@ -919,11 +957,13 @@
|
|||
"dynamic": false,
|
||||
"info": "If True, it will output JSON regardless of passing a schema.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "json_mode",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "bool",
|
||||
"value": false
|
||||
|
|
@ -935,6 +975,7 @@
|
|||
"dynamic": false,
|
||||
"info": "The maximum number of tokens to generate. Set to 0 for unlimited tokens.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "max_tokens",
|
||||
"placeholder": "",
|
||||
"range_spec": {
|
||||
|
|
@ -946,6 +987,7 @@
|
|||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "int",
|
||||
"value": ""
|
||||
|
|
@ -957,11 +999,13 @@
|
|||
"dynamic": false,
|
||||
"info": "Additional keyword arguments to pass to the model.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "model_kwargs",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_input": true,
|
||||
"type": "dict",
|
||||
"value": {}
|
||||
|
|
@ -970,6 +1014,7 @@
|
|||
"_input_type": "DropdownInput",
|
||||
"advanced": false,
|
||||
"combobox": false,
|
||||
"dialog_inputs": {},
|
||||
"display_name": "Model Name",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
|
|
@ -983,6 +1028,7 @@
|
|||
"gpt-3.5-turbo",
|
||||
"gpt-3.5-turbo-0125"
|
||||
],
|
||||
"options_metadata": [],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -999,12 +1045,14 @@
|
|||
"dynamic": false,
|
||||
"info": "The base URL of the OpenAI API. Defaults to https://api.openai.com/v1. You can change this to use other APIs like JinaChat, LocalAI and Prem.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
"name": "openai_api_base",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
|
|
@ -1016,11 +1064,13 @@
|
|||
"dynamic": false,
|
||||
"info": "The seed controls the reproducibility of the job.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "seed",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "int",
|
||||
"value": 1
|
||||
|
|
@ -1032,17 +1082,19 @@
|
|||
"dynamic": false,
|
||||
"info": "Stream the response from the model. Streaming works only in Chat.",
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"name": "stream",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
"title_case": false,
|
||||
"tool_mode": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "bool",
|
||||
"value": false
|
||||
},
|
||||
"system_message": {
|
||||
"_input_type": "MessageTextInput",
|
||||
"_input_type": "MultilineInput",
|
||||
"advanced": false,
|
||||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
|
|
@ -1051,7 +1103,9 @@
|
|||
"Message"
|
||||
],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
"name": "system_message",
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
|
|
@ -1064,72 +1118,57 @@
|
|||
"value": ""
|
||||
},
|
||||
"temperature": {
|
||||
"_input_type": "FloatInput",
|
||||
"_input_type": "SliderInput",
|
||||
"advanced": false,
|
||||
"display_name": "Temperature",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"list": false,
|
||||
"max_label": "",
|
||||
"max_label_icon": "",
|
||||
"min_label": "",
|
||||
"min_label_icon": "",
|
||||
"name": "temperature",
|
||||
"placeholder": "",
|
||||
"range_spec": {
|
||||
"max": 2,
|
||||
"min": 0,
|
||||
"step": 0.01,
|
||||
"step_type": "float"
|
||||
},
|
||||
"required": false,
|
||||
"show": true,
|
||||
"slider_buttons": false,
|
||||
"slider_buttons_options": [],
|
||||
"slider_input": false,
|
||||
"title_case": false,
|
||||
"trace_as_metadata": true,
|
||||
"type": "float",
|
||||
"tool_mode": false,
|
||||
"type": "slider",
|
||||
"value": 0.1
|
||||
}
|
||||
},
|
||||
"tool_mode": false
|
||||
},
|
||||
"showNode": true,
|
||||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 543,
|
||||
"id": "OpenAIModel-E96kR",
|
||||
"position": {
|
||||
"x": 1207.6180121002271,
|
||||
"y": 400.34849438035565
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
},
|
||||
"positionAbsolute": {
|
||||
"x": 1207.6180121002271,
|
||||
"y": 400.34849438035565
|
||||
"position": {
|
||||
"x": 1211.6745177781336,
|
||||
"y": 389.1200512413449
|
||||
},
|
||||
"selected": false,
|
||||
"type": "genericNode",
|
||||
"width": 320
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-qiq3C",
|
||||
"node": {
|
||||
"description": "## Make sure to add your OpenAI API key from [platform.openai.com](https://platform.openai.com). ",
|
||||
"display_name": "",
|
||||
"documentation": "",
|
||||
"template": {}
|
||||
},
|
||||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 325,
|
||||
"id": "note-qiq3C",
|
||||
"position": {
|
||||
"x": 1207.1996899547116,
|
||||
"y": 260.0148704431837
|
||||
},
|
||||
"positionAbsolute": {
|
||||
"x": 1207.1996899547116,
|
||||
"y": 260.0148704431837
|
||||
},
|
||||
"selected": false,
|
||||
"type": "noteNode",
|
||||
"width": 325
|
||||
"type": "genericNode"
|
||||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": -106.23719516361678,
|
||||
"y": -93.96601486484758,
|
||||
"zoom": 0.7759242611491008
|
||||
"x": -34.95262355945238,
|
||||
"y": -104.978464862529,
|
||||
"zoom": 0.7683067619311971
|
||||
}
|
||||
},
|
||||
"description": "Generates targeted SEO keywords based on product information, pain points, and customer profiles for strategic marketing.",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Agent",
|
||||
"id": "Agent-LDhCf",
|
||||
"id": "Agent-wKeIr",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -15,18 +15,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-YQ7Vi",
|
||||
"id": "ChatOutput-BabAw",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Agent-LDhCf{œdataTypeœ:œAgentœ,œidœ:œAgent-LDhCfœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-YQ7Vi{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-YQ7Viœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-LDhCf",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-LDhCfœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-YQ7Vi",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-YQ7Viœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Agent-wKeIr{œdataTypeœ:œAgentœ,œidœ:œAgent-wKeIrœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-BabAw{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-BabAwœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-wKeIr",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-wKeIrœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-BabAw",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-BabAwœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-Pe4nO",
|
||||
"id": "Prompt-TXNvz",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -42,24 +42,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "Agent-LDhCf",
|
||||
"id": "Agent-wKeIr",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-Pe4nO{œdataTypeœ:œPromptœ,œidœ:œPrompt-Pe4nOœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-LDhCf{œfieldNameœ:œinput_valueœ,œidœ:œAgent-LDhCfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-Pe4nO",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-Pe4nOœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-LDhCf",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-LDhCfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-TXNvz{œdataTypeœ:œPromptœ,œidœ:œPrompt-TXNvzœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-wKeIr{œfieldNameœ:œinput_valueœ,œidœ:œAgent-wKeIrœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-TXNvz",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-TXNvzœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-wKeIr",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-wKeIrœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "CalculatorComponent",
|
||||
"id": "CalculatorComponent-unDLj",
|
||||
"id": "CalculatorComponent-btXJ9",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
|
|
@ -67,18 +68,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-LDhCf",
|
||||
"id": "Agent-wKeIr",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__CalculatorComponent-unDLj{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-unDLjœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-LDhCf{œfieldNameœ:œtoolsœ,œidœ:œAgent-LDhCfœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-unDLj",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-unDLjœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-LDhCf",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-LDhCfœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-CalculatorComponent-btXJ9{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-btXJ9œ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-wKeIr{œfieldNameœ:œtoolsœ,œidœ:œAgent-wKeIrœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-btXJ9",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-btXJ9œ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-wKeIr",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-wKeIrœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -86,7 +87,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-Pe4nO",
|
||||
"id": "Prompt-TXNvz",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -312,10 +313,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 693,
|
||||
"id": "Prompt-Pe4nO",
|
||||
"id": "Prompt-TXNvz",
|
||||
"measured": {
|
||||
"height": 693,
|
||||
"width": 320
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 1349.861745038984,
|
||||
|
|
@ -333,7 +334,7 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-YQ7Vi",
|
||||
"id": "ChatOutput-BabAw",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -594,10 +595,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-YQ7Vi",
|
||||
"id": "ChatOutput-BabAw",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 320
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 2240.3625274769397,
|
||||
|
|
@ -613,7 +614,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-o7ebV",
|
||||
"id": "note-ux8AH",
|
||||
"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": "",
|
||||
|
|
@ -624,10 +625,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 800,
|
||||
"id": "note-o7ebV",
|
||||
"id": "note-ux8AH",
|
||||
"measured": {
|
||||
"height": 800,
|
||||
"width": 325
|
||||
"width": 328
|
||||
},
|
||||
"position": {
|
||||
"x": 689.7659055360411,
|
||||
|
|
@ -650,7 +651,7 @@
|
|||
"data": {
|
||||
"description": "Define the agent's instructions, then enter a task to complete using tools.",
|
||||
"display_name": "Agent",
|
||||
"id": "Agent-LDhCf",
|
||||
"id": "Agent-wKeIr",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -790,7 +791,7 @@
|
|||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": false,
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
|
|
@ -798,7 +799,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
"value": "OPENAI_API_KEY"
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1211,10 +1212,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 650,
|
||||
"id": "Agent-LDhCf",
|
||||
"id": "Agent-wKeIr",
|
||||
"measured": {
|
||||
"height": 650,
|
||||
"width": 320
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 1819.2633856623966,
|
||||
|
|
@ -1224,13 +1225,13 @@
|
|||
"x": 1819.2633856623966,
|
||||
"y": 138.32023808479687
|
||||
},
|
||||
"selected": false,
|
||||
"selected": true,
|
||||
"type": "genericNode",
|
||||
"width": 320
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "CalculatorComponent-unDLj",
|
||||
"id": "CalculatorComponent-btXJ9",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
|
|
@ -1255,6 +1256,7 @@
|
|||
"output_types": [],
|
||||
"outputs": [
|
||||
{
|
||||
"allows_loop": false,
|
||||
"cache": true,
|
||||
"display_name": "Toolset",
|
||||
"hidden": null,
|
||||
|
|
@ -1405,23 +1407,23 @@
|
|||
"type": "CalculatorComponent"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "CalculatorComponent-unDLj",
|
||||
"id": "CalculatorComponent-btXJ9",
|
||||
"measured": {
|
||||
"height": 333,
|
||||
"width": 320
|
||||
"height": 374,
|
||||
"width": 360
|
||||
},
|
||||
"position": {
|
||||
"x": 1350.9477037257504,
|
||||
"y": -45.351578570289234
|
||||
},
|
||||
"selected": true,
|
||||
"selected": false,
|
||||
"type": "genericNode"
|
||||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": -412.6248764419154,
|
||||
"y": 239.5139629945674,
|
||||
"zoom": 0.6920494987327928
|
||||
"x": -432.45261318505345,
|
||||
"y": 74.8182374148081,
|
||||
"zoom": 0.7507017664074155
|
||||
}
|
||||
},
|
||||
"description": "Calculate SaaS subscription price based on costs, profit margin, and subscribers using step-by-step method and Chain-of-Thought prompting. ",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-h73y0",
|
||||
"id": "Prompt-xirI8",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -15,18 +15,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_prompt",
|
||||
"id": "Agent-uuZ76",
|
||||
"id": "Agent-9YXRo",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-h73y0{œdataTypeœ:œPromptœ,œidœ:œPrompt-h73y0œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-uuZ76{œfieldNameœ:œsystem_promptœ,œidœ:œAgent-uuZ76œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-h73y0",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-h73y0œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-uuZ76",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_promptœ, œidœ: œAgent-uuZ76œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-xirI8{œdataTypeœ:œPromptœ,œidœ:œPrompt-xirI8œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-9YXRo{œfieldNameœ:œsystem_promptœ,œidœ:œAgent-9YXRoœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-xirI8",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-xirI8œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-9YXRo",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_promptœ, œidœ: œAgent-9YXRoœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-kaNRB",
|
||||
"id": "Prompt-f4paU",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -42,18 +42,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_prompt",
|
||||
"id": "Agent-9kiKa",
|
||||
"id": "Agent-RmOB2",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-kaNRB{œdataTypeœ:œPromptœ,œidœ:œPrompt-kaNRBœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-9kiKa{œfieldNameœ:œsystem_promptœ,œidœ:œAgent-9kiKaœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-kaNRB",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-kaNRBœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-9kiKa",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_promptœ, œidœ: œAgent-9kiKaœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-f4paU{œdataTypeœ:œPromptœ,œidœ:œPrompt-f4paUœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-RmOB2{œfieldNameœ:œsystem_promptœ,œidœ:œAgent-RmOB2œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-f4paU",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-f4paUœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-RmOB2",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_promptœ, œidœ: œAgent-RmOB2œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -61,7 +61,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Agent",
|
||||
"id": "Agent-uuZ76",
|
||||
"id": "Agent-9YXRo",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -69,18 +69,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-r9E97",
|
||||
"id": "ChatOutput-DqyyQ",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Agent-uuZ76{œdataTypeœ:œAgentœ,œidœ:œAgent-uuZ76œ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-r9E97{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-r9E97œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-uuZ76",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-uuZ76œ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-r9E97",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-r9E97œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Agent-9YXRo{œdataTypeœ:œAgentœ,œidœ:œAgent-9YXRoœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-DqyyQ{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-DqyyQœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-9YXRo",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-9YXRoœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-DqyyQ",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-DqyyQœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -88,7 +88,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Agent",
|
||||
"id": "Agent-9kiKa",
|
||||
"id": "Agent-RmOB2",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -96,7 +96,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "finance_agent_output",
|
||||
"id": "Prompt-h73y0",
|
||||
"id": "Prompt-xirI8",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
|
|
@ -104,11 +104,11 @@
|
|||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Agent-9kiKa{œdataTypeœ:œAgentœ,œidœ:œAgent-9kiKaœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Prompt-h73y0{œfieldNameœ:œfinance_agent_outputœ,œidœ:œPrompt-h73y0œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-9kiKa",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-9kiKaœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-h73y0",
|
||||
"targetHandle": "{œfieldNameœ: œfinance_agent_outputœ, œidœ: œPrompt-h73y0œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Agent-RmOB2{œdataTypeœ:œAgentœ,œidœ:œAgent-RmOB2œ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Prompt-xirI8{œfieldNameœ:œfinance_agent_outputœ,œidœ:œPrompt-xirI8œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-RmOB2",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-RmOB2œ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-xirI8",
|
||||
"targetHandle": "{œfieldNameœ: œfinance_agent_outputœ, œidœ: œPrompt-xirI8œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -116,7 +116,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-udfr5",
|
||||
"id": "ChatInput-TQ1li",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -124,18 +124,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "Agent-i5i7H",
|
||||
"id": "Agent-TmQ5O",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ChatInput-udfr5{œdataTypeœ:œChatInputœ,œidœ:œChatInput-udfr5œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-i5i7H{œfieldNameœ:œinput_valueœ,œidœ:œAgent-i5i7Hœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-udfr5",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-udfr5œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-i5i7H",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-i5i7Hœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ChatInput-TQ1li{œdataTypeœ:œChatInputœ,œidœ:œChatInput-TQ1liœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-TmQ5O{œfieldNameœ:œinput_valueœ,œidœ:œAgent-TmQ5Oœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-TQ1li",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-TQ1liœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-TmQ5O",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-TmQ5Oœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -143,7 +143,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-62kjh",
|
||||
"id": "Prompt-3fyqW",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -151,18 +151,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_prompt",
|
||||
"id": "Agent-i5i7H",
|
||||
"id": "Agent-TmQ5O",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-62kjh{œdataTypeœ:œPromptœ,œidœ:œPrompt-62kjhœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-i5i7H{œfieldNameœ:œsystem_promptœ,œidœ:œAgent-i5i7Hœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-62kjh",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-62kjhœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-i5i7H",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_promptœ, œidœ: œAgent-i5i7Hœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-3fyqW{œdataTypeœ:œPromptœ,œidœ:œPrompt-3fyqWœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-TmQ5O{œfieldNameœ:œsystem_promptœ,œidœ:œAgent-TmQ5Oœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-3fyqW",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-3fyqWœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-TmQ5O",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_promptœ, œidœ: œAgent-TmQ5Oœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -170,7 +170,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Agent",
|
||||
"id": "Agent-i5i7H",
|
||||
"id": "Agent-TmQ5O",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -178,18 +178,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "Agent-9kiKa",
|
||||
"id": "Agent-RmOB2",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Agent-i5i7H{œdataTypeœ:œAgentœ,œidœ:œAgent-i5i7Hœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Agent-9kiKa{œfieldNameœ:œinput_valueœ,œidœ:œAgent-9kiKaœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-i5i7H",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-i5i7Hœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-9kiKa",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-9kiKaœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Agent-TmQ5O{œdataTypeœ:œAgentœ,œidœ:œAgent-TmQ5Oœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Agent-RmOB2{œfieldNameœ:œinput_valueœ,œidœ:œAgent-RmOB2œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-TmQ5O",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-TmQ5Oœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-RmOB2",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-RmOB2œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -197,7 +197,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Agent",
|
||||
"id": "Agent-i5i7H",
|
||||
"id": "Agent-TmQ5O",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -205,7 +205,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "research_agent_output",
|
||||
"id": "Prompt-h73y0",
|
||||
"id": "Prompt-xirI8",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
|
|
@ -213,18 +213,18 @@
|
|||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Agent-i5i7H{œdataTypeœ:œAgentœ,œidœ:œAgent-i5i7Hœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Prompt-h73y0{œfieldNameœ:œresearch_agent_outputœ,œidœ:œPrompt-h73y0œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-i5i7H",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-i5i7Hœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-h73y0",
|
||||
"targetHandle": "{œfieldNameœ: œresearch_agent_outputœ, œidœ: œPrompt-h73y0œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Agent-TmQ5O{œdataTypeœ:œAgentœ,œidœ:œAgent-TmQ5Oœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Prompt-xirI8{œfieldNameœ:œresearch_agent_outputœ,œidœ:œPrompt-xirI8œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-TmQ5O",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-TmQ5Oœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-xirI8",
|
||||
"targetHandle": "{œfieldNameœ: œresearch_agent_outputœ, œidœ: œPrompt-xirI8œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "CalculatorComponent",
|
||||
"id": "CalculatorComponent-RNHql",
|
||||
"id": "CalculatorComponent-82dCo",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
|
|
@ -232,25 +232,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-uuZ76",
|
||||
"id": "Agent-9YXRo",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-CalculatorComponent-RNHql{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-RNHqlœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-uuZ76{œfieldNameœ:œtoolsœ,œidœ:œAgent-uuZ76œ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-RNHql",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-RNHqlœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-uuZ76",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-uuZ76œ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-CalculatorComponent-82dCo{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-82dCoœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-9YXRo{œfieldNameœ:œtoolsœ,œidœ:œAgent-9YXRoœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-82dCo",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-82dCoœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-9YXRo",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-9YXRoœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "YfinanceComponent",
|
||||
"id": "YfinanceComponent-FS7QO",
|
||||
"id": "YfinanceComponent-P0VBm",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
|
|
@ -258,24 +258,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-9kiKa",
|
||||
"id": "Agent-RmOB2",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-YfinanceComponent-FS7QO{œdataTypeœ:œYfinanceComponentœ,œidœ:œYfinanceComponent-FS7QOœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-9kiKa{œfieldNameœ:œtoolsœ,œidœ:œAgent-9kiKaœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "YfinanceComponent-FS7QO",
|
||||
"sourceHandle": "{œdataTypeœ: œYfinanceComponentœ, œidœ: œYfinanceComponent-FS7QOœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-9kiKa",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-9kiKaœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-YfinanceComponent-P0VBm{œdataTypeœ:œYfinanceComponentœ,œidœ:œYfinanceComponent-P0VBmœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-RmOB2{œfieldNameœ:œtoolsœ,œidœ:œAgent-RmOB2œ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "YfinanceComponent-P0VBm",
|
||||
"sourceHandle": "{œdataTypeœ: œYfinanceComponentœ, œidœ: œYfinanceComponent-P0VBmœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-RmOB2",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-RmOB2œ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "TavilySearchComponent",
|
||||
"id": "TavilySearchComponent-uLUDV",
|
||||
"id": "TavilySearchComponent-ZgS55",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
|
|
@ -283,18 +284,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-i5i7H",
|
||||
"id": "Agent-TmQ5O",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__TavilySearchComponent-uLUDV{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-uLUDVœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-i5i7H{œfieldNameœ:œtoolsœ,œidœ:œAgent-i5i7Hœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "TavilySearchComponent-uLUDV",
|
||||
"sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-uLUDVœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-i5i7H",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-i5i7Hœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-TavilySearchComponent-ZgS55{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-ZgS55œ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-TmQ5O{œfieldNameœ:œtoolsœ,œidœ:œAgent-TmQ5Oœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "TavilySearchComponent-ZgS55",
|
||||
"sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-ZgS55œ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-TmQ5O",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-TmQ5Oœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -302,7 +303,7 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-r9E97",
|
||||
"id": "ChatOutput-DqyyQ",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -563,7 +564,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-r9E97",
|
||||
"id": "ChatOutput-DqyyQ",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
|
|
@ -584,7 +585,7 @@
|
|||
"data": {
|
||||
"description": "Define the agent's instructions, then enter a task to complete using tools.",
|
||||
"display_name": "Finance Agent",
|
||||
"id": "Agent-9kiKa",
|
||||
"id": "Agent-RmOB2",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -724,7 +725,7 @@
|
|||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": false,
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
|
|
@ -732,7 +733,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
"value": "OPENAI_API_KEY"
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1145,7 +1146,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 650,
|
||||
"id": "Agent-9kiKa",
|
||||
"id": "Agent-RmOB2",
|
||||
"measured": {
|
||||
"height": 650,
|
||||
"width": 360
|
||||
|
|
@ -1166,7 +1167,7 @@
|
|||
"data": {
|
||||
"description": "Define the agent's instructions, then enter a task to complete using tools.",
|
||||
"display_name": "Analysis & Editor Agent",
|
||||
"id": "Agent-uuZ76",
|
||||
"id": "Agent-9YXRo",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -1306,7 +1307,7 @@
|
|||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": false,
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
|
|
@ -1314,7 +1315,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
"value": "OPENAI_API_KEY"
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1727,7 +1728,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 650,
|
||||
"id": "Agent-uuZ76",
|
||||
"id": "Agent-9YXRo",
|
||||
"measured": {
|
||||
"height": 650,
|
||||
"width": 360
|
||||
|
|
@ -1748,7 +1749,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-62kjh",
|
||||
"id": "Prompt-3fyqW",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -1859,7 +1860,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-62kjh",
|
||||
"id": "Prompt-3fyqW",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
|
|
@ -1880,7 +1881,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-kaNRB",
|
||||
"id": "Prompt-f4paU",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -1991,7 +1992,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-kaNRB",
|
||||
"id": "Prompt-f4paU",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
|
|
@ -2012,7 +2013,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-h73y0",
|
||||
"id": "Prompt-xirI8",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -2172,7 +2173,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 433,
|
||||
"id": "Prompt-h73y0",
|
||||
"id": "Prompt-xirI8",
|
||||
"measured": {
|
||||
"height": 433,
|
||||
"width": 360
|
||||
|
|
@ -2191,7 +2192,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatInput-udfr5",
|
||||
"id": "ChatInput-TQ1li",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -2472,7 +2473,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatInput-udfr5",
|
||||
"id": "ChatInput-TQ1li",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
|
|
@ -2491,7 +2492,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-rwLko",
|
||||
"id": "note-j0zav",
|
||||
"node": {
|
||||
"description": "# Sequential Tasks Agents\n\n## Overview\nThis flow demonstrates how to chain multiple AI agents for comprehensive research and analysis. Each agent specializes in different aspects of the research process, building upon the previous agent's work.\n\n## How to Use the Flow\n\n1. **Input Your Query** 🎯\n - Be specific and clear\n - Include key aspects you want analyzed\n - Examples:\n ```\n Good: \"Should I invest in Tesla (TSLA)? Focus on AI development impact\"\n Bad: \"Tell me about Tesla\"\n ```\n\n2. **Research Agent Process** 🔍\n - Utilizes Tavily Search for comprehensive research\n\n\n3. **Specialized Analysis** 📊\n - Each agent adds unique value:\n ```\n Research Agent → Deep Research & Context\n ↓\n Finance Agent → Data Analysis & Metrics\n ↓\n Editor Agent → Final Synthesis & Report\n ```\n\n4. **Output Format** 📝\n - Structured report\n - Embedded images and charts\n - Data-backed insights\n - Clear recommendations\n\n## Pro Tips\n\n### Query Construction\n- Include specific points of interest\n- Mention required metrics or data points\n- Specify time frames if relevant\n\n### Flow Customization\n- Modify agent prompts for different use cases\n- Add or remove tools as needed\n\n## Common Applications\n- Investment Research\n- Market Analysis\n- Competitive Intelligence\n- Industry Reports\n- Technology Impact Studies\n\n⚡ **Best Practice**: Start with a test query to understand the flow's capabilities before running complex analyses.\n\n---\n*Note: This flow template uses financial analysis as an example but can be adapted for any research-intensive task requiring multiple perspectives and data sources.*",
|
||||
"display_name": "",
|
||||
|
|
@ -2502,7 +2503,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 800,
|
||||
"id": "note-rwLko",
|
||||
"id": "note-j0zav",
|
||||
"measured": {
|
||||
"height": 800,
|
||||
"width": 328
|
||||
|
|
@ -2526,7 +2527,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-f0wVd",
|
||||
"id": "note-pUC9D",
|
||||
"node": {
|
||||
"description": "## What Are Sequential Task Agents?\nA system where multiple AI agents work in sequence, each specializing in specific tasks and passing their output to the next agent in the chain. Think of it as an assembly line where each agent adds value to the final result.\n\n## How It Works\n1. **First Agent** → **Second Agent** → **Third Agent** → **Final Output**\n - Each agent receives input from the previous one\n - Processes and enhances the information\n - Passes refined output forward\n\n## Key Benefits\n- **Specialization**: Each agent focuses on specific tasks\n- **Progressive Refinement**: Information gets enhanced at each step\n- **Structured Output**: Final result combines multiple perspectives\n- **Quality Control**: Each agent validates and improves previous work\n\n## Building Your Own Sequence\n1. **Plan Your Chain**\n - Identify distinct tasks\n - Determine logical order\n - Define input/output requirements\n\n2. **Configure Agents**\n - Give each agent clear instructions\n - Ensure compatible outputs/inputs\n - Set appropriate tools for each agent\n\n3. **Connect the Flow**\n - Link agents in proper order\n - Test data flow between agents\n - Verify final output format\n\n## Example Applications\n- Research → Analysis → Report Writing\n- Data Collection → Processing → Visualization\n- Content Research → Writing → Editing\n- Market Analysis → Financial Review → Investment Advice\n\n⭐ **Pro Tip**: The strength of sequential agents comes from how well they complement each other's capabilities.\n\nThis template uses financial analysis as an example, but you can adapt it for any multi-step process requiring different expertise at each stage.",
|
||||
"display_name": "",
|
||||
|
|
@ -2539,7 +2540,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 800,
|
||||
"id": "note-f0wVd",
|
||||
"id": "note-pUC9D",
|
||||
"measured": {
|
||||
"height": 800,
|
||||
"width": 328
|
||||
|
|
@ -2565,7 +2566,7 @@
|
|||
"data": {
|
||||
"description": "Define the agent's instructions, then enter a task to complete using tools.",
|
||||
"display_name": "Researcher Agent",
|
||||
"id": "Agent-i5i7H",
|
||||
"id": "Agent-TmQ5O",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -2705,7 +2706,7 @@
|
|||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": false,
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
|
|
@ -2713,7 +2714,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
"value": "OPENAI_API_KEY"
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -3126,7 +3127,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 650,
|
||||
"id": "Agent-i5i7H",
|
||||
"id": "Agent-TmQ5O",
|
||||
"measured": {
|
||||
"height": 650,
|
||||
"width": 360
|
||||
|
|
@ -3145,7 +3146,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-MGiP3",
|
||||
"id": "note-NgTrE",
|
||||
"node": {
|
||||
"description": "## Get your API key at [https://tavily.com](https://tavily.com)\n",
|
||||
"display_name": "",
|
||||
|
|
@ -3158,7 +3159,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 324,
|
||||
"id": "note-MGiP3",
|
||||
"id": "note-NgTrE",
|
||||
"measured": {
|
||||
"height": 324,
|
||||
"width": 328
|
||||
|
|
@ -3182,7 +3183,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-Luc39",
|
||||
"id": "note-7I7gz",
|
||||
"node": {
|
||||
"description": "## Configure the agent by obtaining your OpenAI API key from [platform.openai.com](https://platform.openai.com). Under \"Model Provider\", choose:\n- OpenAI: Default, requires only API key\n- Anthropic/Azure/Groq/NVIDIA: Each requires their own API keys\n- Custom: Use your own model endpoint + authentication\n\nSelect model and input API key before running the flow.",
|
||||
"display_name": "",
|
||||
|
|
@ -3195,7 +3196,7 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 324,
|
||||
"id": "note-Luc39",
|
||||
"id": "note-7I7gz",
|
||||
"measured": {
|
||||
"height": 324,
|
||||
"width": 328
|
||||
|
|
@ -3219,7 +3220,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "YfinanceComponent-FS7QO",
|
||||
"id": "YfinanceComponent-P0VBm",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
|
|
@ -3466,7 +3467,7 @@
|
|||
"type": "YfinanceComponent"
|
||||
},
|
||||
"dragging": true,
|
||||
"id": "YfinanceComponent-FS7QO",
|
||||
"id": "YfinanceComponent-P0VBm",
|
||||
"measured": {
|
||||
"height": 581,
|
||||
"width": 360
|
||||
|
|
@ -3480,7 +3481,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "CalculatorComponent-RNHql",
|
||||
"id": "CalculatorComponent-82dCo",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
|
|
@ -3655,7 +3656,7 @@
|
|||
"type": "CalculatorComponent"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "CalculatorComponent-RNHql",
|
||||
"id": "CalculatorComponent-82dCo",
|
||||
"measured": {
|
||||
"height": 374,
|
||||
"width": 360
|
||||
|
|
@ -3669,7 +3670,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "TavilySearchComponent-uLUDV",
|
||||
"id": "TavilySearchComponent-ZgS55",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
|
|
@ -3701,6 +3702,7 @@
|
|||
"output_types": [],
|
||||
"outputs": [
|
||||
{
|
||||
"allows_loop": false,
|
||||
"cache": true,
|
||||
"display_name": "Toolset",
|
||||
"hidden": null,
|
||||
|
|
@ -3727,7 +3729,7 @@
|
|||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": false,
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
|
|
@ -3973,7 +3975,7 @@
|
|||
"type": "TavilySearchComponent"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "TavilySearchComponent-uLUDV",
|
||||
"id": "TavilySearchComponent-ZgS55",
|
||||
"measured": {
|
||||
"height": 489,
|
||||
"width": 360
|
||||
|
|
@ -3987,9 +3989,9 @@
|
|||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": 1043.611076363603,
|
||||
"y": 930.7679466669072,
|
||||
"zoom": 0.5467702171368981
|
||||
"x": 905.1150074113123,
|
||||
"y": 872.5950106358109,
|
||||
"zoom": 0.3920220111611041
|
||||
}
|
||||
},
|
||||
"description": "This Agent is designed to systematically execute a series of tasks following a meticulously predefined sequence. By adhering to this structured order, the Agent ensures that each task is completed efficiently and effectively, optimizing overall performance and maintaining a high level of accuracy.",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-GnVa9",
|
||||
"id": "ChatInput-Kdh0W",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -15,19 +15,19 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "Agent-3ilRg",
|
||||
"id": "Agent-3NhNI",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ChatInput-GnVa9{œdataTypeœ:œChatInputœ,œidœ:œChatInput-GnVa9œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-3ilRg{œfieldNameœ:œinput_valueœ,œidœ:œAgent-3ilRgœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-ChatInput-Kdh0W{œdataTypeœ:œChatInputœ,œidœ:œChatInput-Kdh0Wœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-3NhNI{œfieldNameœ:œinput_valueœ,œidœ:œAgent-3NhNIœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-GnVa9",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-GnVa9œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-3ilRg",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-3ilRgœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"source": "ChatInput-Kdh0W",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-Kdh0Wœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-3NhNI",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-3NhNIœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Agent",
|
||||
"id": "Agent-3ilRg",
|
||||
"id": "Agent-3NhNI",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -43,26 +43,26 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-KeRVx",
|
||||
"id": "ChatOutput-SzD3j",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Agent-3ilRg{œdataTypeœ:œAgentœ,œidœ:œAgent-3ilRgœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-KeRVx{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-KeRVxœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-Agent-3NhNI{œdataTypeœ:œAgentœ,œidœ:œAgent-3NhNIœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-SzD3j{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-SzD3jœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Agent-3ilRg",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-3ilRgœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-KeRVx",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-KeRVxœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"source": "Agent-3NhNI",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-3NhNIœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-SzD3j",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-SzD3jœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "CalculatorComponent",
|
||||
"id": "CalculatorComponent-sh2uy",
|
||||
"id": "CalculatorComponent-F89Ck",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
|
|
@ -70,24 +70,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-3ilRg",
|
||||
"id": "Agent-3NhNI",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-CalculatorComponent-sh2uy{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-sh2uyœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-3ilRg{œfieldNameœ:œtoolsœ,œidœ:œAgent-3ilRgœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-sh2uy",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-sh2uyœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-3ilRg",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-3ilRgœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-CalculatorComponent-F89Ck{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-F89Ckœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-3NhNI{œfieldNameœ:œtoolsœ,œidœ:œAgent-3NhNIœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-F89Ck",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-F89Ckœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-3NhNI",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-3NhNIœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "URL",
|
||||
"id": "URL-fbsLh",
|
||||
"id": "URL-4Q2PI",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
|
|
@ -95,18 +96,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-3ilRg",
|
||||
"id": "Agent-3NhNI",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__URL-fbsLh{œdataTypeœ:œURLœ,œidœ:œURL-fbsLhœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-3ilRg{œfieldNameœ:œtoolsœ,œidœ:œAgent-3ilRgœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "URL-fbsLh",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-fbsLhœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-3ilRg",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-3ilRgœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-URL-4Q2PI{œdataTypeœ:œURLœ,œidœ:œURL-4Q2PIœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-3NhNI{œfieldNameœ:œtoolsœ,œidœ:œAgent-3NhNIœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "URL-4Q2PI",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-4Q2PIœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-3NhNI",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-3NhNIœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -114,7 +115,7 @@
|
|||
"data": {
|
||||
"description": "Define the agent's instructions, then enter a task to complete using tools.",
|
||||
"display_name": "Agent",
|
||||
"id": "Agent-3ilRg",
|
||||
"id": "Agent-3NhNI",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -254,7 +255,7 @@
|
|||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": false,
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
|
|
@ -262,7 +263,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
"value": "OPENAI_API_KEY"
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -674,7 +675,7 @@
|
|||
"type": "Agent"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "Agent-3ilRg",
|
||||
"id": "Agent-3NhNI",
|
||||
"measured": {
|
||||
"height": 698,
|
||||
"width": 360
|
||||
|
|
@ -683,12 +684,12 @@
|
|||
"x": 1652.2479633316434,
|
||||
"y": 297.9085084144251
|
||||
},
|
||||
"selected": false,
|
||||
"selected": true,
|
||||
"type": "genericNode"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatInput-GnVa9",
|
||||
"id": "ChatInput-Kdh0W",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -968,7 +969,7 @@
|
|||
"type": "ChatInput"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "ChatInput-GnVa9",
|
||||
"id": "ChatInput-Kdh0W",
|
||||
"measured": {
|
||||
"height": 257,
|
||||
"width": 360
|
||||
|
|
@ -984,7 +985,7 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-KeRVx",
|
||||
"id": "ChatOutput-SzD3j",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -1243,7 +1244,7 @@
|
|||
},
|
||||
"type": "ChatOutput"
|
||||
},
|
||||
"id": "ChatOutput-KeRVx",
|
||||
"id": "ChatOutput-SzD3j",
|
||||
"measured": {
|
||||
"height": 257,
|
||||
"width": 360
|
||||
|
|
@ -1259,7 +1260,7 @@
|
|||
"data": {
|
||||
"description": "Load and retrive data from specified URLs.",
|
||||
"display_name": "URL",
|
||||
"id": "URL-fbsLh",
|
||||
"id": "URL-4Q2PI",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
|
|
@ -1468,7 +1469,7 @@
|
|||
"type": "URL"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "URL-fbsLh",
|
||||
"id": "URL-4Q2PI",
|
||||
"measured": {
|
||||
"height": 453,
|
||||
"width": 360
|
||||
|
|
@ -1482,7 +1483,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-159PR",
|
||||
"id": "note-MeseW",
|
||||
"node": {
|
||||
"description": "# 📖 README\nRun an Agent with URL and Calculator tools available for its use. \nThe Agent decides which tool to use to solve a problem.\n## Quick start\n\n1. Add your OpenAI API key to the Agent.\n2. Open the Playground and chat with the Agent. Request some information about a recipe, and then ask to add two numbers together. In the responses, the Agent will use different tools to solve different problems.\n\n## Next steps\nConnect more tools to the Agent to create your perfect assistant.\n\nFor more, see the [Langflow docs](https://docs.langflow.org/agents-tool-calling-agent-component).",
|
||||
"display_name": "",
|
||||
|
|
@ -1494,7 +1495,7 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "note-159PR",
|
||||
"id": "note-MeseW",
|
||||
"measured": {
|
||||
"height": 328,
|
||||
"width": 328
|
||||
|
|
@ -1508,7 +1509,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-ELRXf",
|
||||
"id": "note-yfpyo",
|
||||
"node": {
|
||||
"description": "### 💡 Add your OpenAI API key here👇",
|
||||
"display_name": "",
|
||||
|
|
@ -1519,7 +1520,7 @@
|
|||
},
|
||||
"type": "note"
|
||||
},
|
||||
"id": "note-ELRXf",
|
||||
"id": "note-yfpyo",
|
||||
"measured": {
|
||||
"height": 326,
|
||||
"width": 326
|
||||
|
|
@ -1533,7 +1534,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "CalculatorComponent-sh2uy",
|
||||
"id": "CalculatorComponent-F89Ck",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
|
|
@ -1559,6 +1560,7 @@
|
|||
"output_types": [],
|
||||
"outputs": [
|
||||
{
|
||||
"allows_loop": false,
|
||||
"cache": true,
|
||||
"display_name": "Toolset",
|
||||
"hidden": null,
|
||||
|
|
@ -1709,7 +1711,7 @@
|
|||
"type": "CalculatorComponent"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "CalculatorComponent-sh2uy",
|
||||
"id": "CalculatorComponent-F89Ck",
|
||||
"measured": {
|
||||
"height": 374,
|
||||
"width": 360
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue