{ "name": "New Flow ", "id": "0", "data": { "nodes": [ { "width": 384, "height": 391, "id": "dndnode_1", "type": "genericNode", "position": { "x": 644, "y": 348 }, "data": { "type": "LLMChain", "node": { "template": { "_type": "llm_chain", "memory": { "type": "BaseMemory", "required": false, "placeholder": "", "list": false, "show": true, "password": false, "multiline": false, "value": null }, "verbose": { "type": "bool", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": false }, "prompt": { "type": "BasePromptTemplate", "required": true, "placeholder": "", "list": false, "show": true, "password": false, "multiline": false }, "llm": { "type": "BaseLanguageModel", "required": true, "placeholder": "", "list": false, "show": true, "password": false, "multiline": false }, "output_key": { "type": "str", "required": false, "placeholder": "", "list": false, "show": false, "password": true, "multiline": false, "value": "text" } }, "description": "Chain to run queries against LLMs.", "base_classes": [ "Chain" ] }, "id": "dndnode_1", "value": null }, "positionAbsolute": { "x": 644, "y": 348 } }, { "width": 384, "height": 351, "id": "dndnode_4", "type": "genericNode", "position": { "x": 1236, "y": 39.59999999999957 }, "data": { "type": "ZeroShotAgent", "node": { "template": { "_type": "zero-shot-react-description", "llm_chain": { "type": "LLMChain", "required": true, "placeholder": "", "list": false, "show": true, "password": false, "multiline": false }, "allowed_tools": { "type": "Tool", "required": false, "placeholder": "", "list": true, "show": true, "password": false, "multiline": false, "value": null }, "return_values": { "type": "str", "required": false, "placeholder": "", "list": true, "show": false, "password": false, "multiline": false, "value": [ "output" ] } }, "description": "Agent for the MRKL chain.", "base_classes": [ "Agent" ] }, "id": "dndnode_4", "value": null }, "positionAbsolute": { "x": 1236, "y": 39.59999999999957 } }, { "width": 384, "height": 529, "id": "dndnode_5", "type": "genericNode", "position": { "x": 96, "y": -299.2000000000003 }, "data": { "type": "ZeroShotPrompt", "node": { "template": { "_type": "zero_shot", "prefix": { "type": "str", "required": false, "placeholder": "", "list": false, "show": true, "multiline": true, "value": "Answer the following questions as best you can. You have access to the following tools:" }, "suffix": { "type": "str", "required": true, "placeholder": "", "list": false, "show": true, "multiline": true, "value": "Begin!\n\nQuestion: {input}\nThought:{agent_scratchpad}" }, "format_instructions": { "type": "str", "required": false, "placeholder": "", "list": false, "show": true, "multiline": true, "value": "Use the following format:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction: the action to take, should be one of [{tool_names}]\nAction Input: the input to the action\nObservation: the result of the action\n... (this Thought/Action/Action Input/Observation can repeat N times)\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question" } }, "description": "Prompt template for Zero Shot Agent.", "base_classes": [ "BasePromptTemplate" ] }, "id": "dndnode_5", "value": null }, "selected": false, "positionAbsolute": { "x": 96, "y": -299.2000000000003 }, "dragging": false }, { "width": 384, "height": 477, "id": "dndnode_8", "type": "genericNode", "position": { "x": 75, "y": 328 }, "data": { "type": "OpenAI", "node": { "template": { "_type": "openai", "cache": { "type": "bool", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": null }, "verbose": { "type": "bool", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": null }, "client": { "type": "Any", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": null }, "model_name": { "type": "str", "required": false, "placeholder": "", "list": false, "show": true, "password": false, "multiline": false, "value": "text-davinci-003", "options": [ "text-davinci-003", "text-davinci-002" ] }, "temperature": { "type": "float", "required": false, "placeholder": "", "list": false, "show": true, "password": false, "multiline": false, "value": 0.7 }, "max_tokens": { "type": "int", "required": false, "placeholder": "", "list": false, "show": false, "password": true, "multiline": false, "value": 256 }, "top_p": { "type": "float", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": 1 }, "frequency_penalty": { "type": "float", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": 0 }, "presence_penalty": { "type": "float", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": 0 }, "n": { "type": "int", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": 1 }, "best_of": { "type": "int", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": 1 }, "model_kwargs": { "type": "dict[str, Any]", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": null }, "openai_api_key": { "type": "str", "required": false, "placeholder": "", "list": false, "show": true, "password": true, "multiline": false, "value": "sk-" }, "batch_size": { "type": "int", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": 20 }, "request_timeout": { "type": "Union[float, Tuple[float, float], NoneType]", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": null }, "logit_bias": { "type": "dict[str, float]", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": null }, "max_retries": { "type": "int", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": 6 }, "streaming": { "type": "bool", "required": false, "placeholder": "", "list": false, "show": false, "password": false, "multiline": false, "value": false } }, "description": "Generic OpenAI class that uses model name.", "base_classes": [ "BaseOpenAI", "BaseLLM", "BaseLanguageModel" ] }, "id": "dndnode_8", "value": null }, "selected": false, "positionAbsolute": { "x": 75, "y": 328 }, "dragging": false }, { "width": 384, "height": 397, "id": "dndnode_9", "type": "genericNode", "position": { "x": 643, "y": 824 }, "data": { "type": "Serper Search", "node": { "template": { "serper_api_key": { "type": "str", "required": true, "list": false, "show": true, "placeholder": "", "value": "---" }, "_type": "google-serper" }, "name": "Serper Search", "description": "A low-cost Google Search API. Useful for when you need to answer questions about current events. Input should be a search query.", "base_classes": [ "Tool" ] }, "id": "dndnode_9", "value": null }, "selected": true, "positionAbsolute": { "x": 643, "y": 824 }, "dragging": false } ], "edges": [ { "source": "dndnode_5", "sourceHandle": "ZeroShotPrompt|dndnode_5|BasePromptTemplate", "target": "dndnode_1", "targetHandle": "BasePromptTemplate|prompt|dndnode_1", "className": "animate-pulse", "id": "reactflow__edge-dndnode_5ZeroShotPrompt|dndnode_5|BasePromptTemplate-dndnode_1BasePromptTemplate|prompt|dndnode_1" }, { "source": "dndnode_1", "sourceHandle": "LLMChain|dndnode_1|Chain", "target": "dndnode_4", "targetHandle": "LLMChain|llm_chain|dndnode_4", "className": "animate-pulse", "id": "reactflow__edge-dndnode_1LLMChain|dndnode_1|Chain-dndnode_4LLMChain|llm_chain|dndnode_4" }, { "source": "dndnode_8", "sourceHandle": "OpenAI|dndnode_8|BaseOpenAI|BaseLLM|BaseLanguageModel", "target": "dndnode_1", "targetHandle": "BaseLanguageModel|llm|dndnode_1", "className": "animate-pulse", "id": "reactflow__edge-dndnode_8OpenAI|dndnode_8|BaseOpenAI|BaseLLM|BaseLanguageModel-dndnode_1BaseLanguageModel|llm|dndnode_1" }, { "source": "dndnode_9", "sourceHandle": "Serper Search|dndnode_9|Tool", "target": "dndnode_4", "targetHandle": "Tool|allowed_tools|dndnode_4", "className": "animate-pulse", "id": "reactflow__edge-dndnode_9Serper Search|dndnode_9|Tool-dndnode_4Tool|allowed_tools|dndnode_4" } ], "viewport": { "x": 22.5, "y": 42, "zoom": 0.5 } }, "chat": [ { "message": "Langflow. What is it?", "isSend": true }, { "message": "Langflow is a GUI for LangChain, designed with react-flow to provide an effortless way to experiment and prototype flows with drag-and-drop components and a chrome extension powered by GPT-3.", "isSend": false, "thought": "> Entering new AgentExecutor chain...\n I need to research what Langflow is.\nAction: Serper Search\nAction Input: \"What is Langflow?\"\nObservation: Researchers introduce LangFlow, a graphical user interface (GUI) for LangChain that simplifies testing and creation of smart applications. The drag-and-drop feature provides a quick and effortless way to experiment and prototype, and the built-in chat interface enables real-time ... LangFlow is a GUI for LangChain, designed with react-flow to provide an effortless way to experiment and prototype flows with drag-and-drop ... LangFlow is a GUI for LangChain, designed with react-flow to provide an effortless way to experiment and prototype flows with drag-and-drop components and a ... an open-source chrome extension powered by GPT-3 to get the explanation of a piece of code on any site (Stackoverflow, Github, etc). ChatGPT correctly identified Mona Lisa but failed to guess the cartoon character Michael was thinking of, suggesting Bugs Bunny holding a ... Introducing LangFlow! An open-source UI for. @LangChainAI. that enables seamless combination of multiple deep learning models to perform ... See student reviews, school photos, Chinese Mandarin courses, and housing options available at Langflow Education Centre (Macau, Macau) - Reviews - Language ... Longfellow Elementary students play on the playground during recess. Longfellow Elementary students pause for a photo during class.\nThought: Langflow is a GUI for LangChain, designed with react-flow to provide an effortless way to experiment and prototype flows with drag-and-drop components and a chrome extension powered by GPT-3.\nFinal Answer: Langflow is a GUI for LangChain, designed with react-flow to provide an effortless way to experiment and prototype flows with drag-and-drop components and a chrome extension powered by GPT-3.\n\n> Finished chain." } ] }