-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50aa10e
commit 63ee583
Showing
21 changed files
with
10,760 additions
and
7,157 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,362 @@ | ||
{ | ||
"description": "Simplest possible chat model", | ||
"name": "Basic Chat", | ||
"id": "64b0e4e3-2f4d-41b2-9c71-a214bd0e77bf", | ||
"data": { | ||
"nodes": [ | ||
{ | ||
"width": 384, | ||
"height": 597, | ||
"id": "dndnode_24", | ||
"type": "genericNode", | ||
"position": { | ||
"x": 228.87326389541306, | ||
"y": 465.8628482073749 | ||
}, | ||
"data": { | ||
"type": "ChatOpenAI", | ||
"node": { | ||
"template": { | ||
"verbose": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"value": false, | ||
"password": false, | ||
"name": "verbose", | ||
"advanced": false, | ||
"type": "bool", | ||
"list": false | ||
}, | ||
"callbacks": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"password": false, | ||
"name": "callbacks", | ||
"advanced": false, | ||
"type": "langchain.callbacks.base.BaseCallbackHandler", | ||
"list": true | ||
}, | ||
"client": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"password": false, | ||
"name": "client", | ||
"advanced": false, | ||
"type": "Any", | ||
"list": false | ||
}, | ||
"model_name": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"value": "gpt-3.5-turbo", | ||
"password": false, | ||
"options": [ | ||
"gpt-3.5-turbo", | ||
"gpt-4", | ||
"gpt-4-32k" | ||
], | ||
"name": "model_name", | ||
"advanced": false, | ||
"type": "str", | ||
"list": true | ||
}, | ||
"temperature": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"value": 0.7, | ||
"password": false, | ||
"name": "temperature", | ||
"advanced": false, | ||
"type": "float", | ||
"list": false | ||
}, | ||
"model_kwargs": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"password": false, | ||
"name": "model_kwargs", | ||
"advanced": true, | ||
"type": "code", | ||
"list": false | ||
}, | ||
"openai_api_key": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"value": "", | ||
"password": true, | ||
"name": "openai_api_key", | ||
"display_name": "OpenAI API Key", | ||
"advanced": false, | ||
"type": "str", | ||
"list": false | ||
}, | ||
"openai_api_base": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"password": true, | ||
"name": "openai_api_base", | ||
"display_name": "OpenAI API Base", | ||
"advanced": false, | ||
"type": "str", | ||
"list": false, | ||
"value": "" | ||
}, | ||
"openai_organization": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"password": false, | ||
"name": "openai_organization", | ||
"display_name": "OpenAI Organization", | ||
"advanced": false, | ||
"type": "str", | ||
"list": false | ||
}, | ||
"openai_proxy": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"password": false, | ||
"name": "openai_proxy", | ||
"display_name": "OpenAI Proxy", | ||
"advanced": false, | ||
"type": "str", | ||
"list": false | ||
}, | ||
"request_timeout": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"password": false, | ||
"name": "request_timeout", | ||
"advanced": false, | ||
"type": "float", | ||
"list": false, | ||
"value": 60 | ||
}, | ||
"max_retries": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"value": 6, | ||
"password": false, | ||
"name": "max_retries", | ||
"advanced": false, | ||
"type": "int", | ||
"list": false | ||
}, | ||
"streaming": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"value": false, | ||
"password": false, | ||
"name": "streaming", | ||
"advanced": false, | ||
"type": "bool", | ||
"list": false | ||
}, | ||
"n": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"value": 1, | ||
"password": false, | ||
"name": "n", | ||
"advanced": false, | ||
"type": "int", | ||
"list": false | ||
}, | ||
"max_tokens": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"password": true, | ||
"name": "max_tokens", | ||
"advanced": false, | ||
"type": "int", | ||
"list": false | ||
}, | ||
"_type": "ChatOpenAI" | ||
}, | ||
"description": "Wrapper around OpenAI Chat large language models.", | ||
"base_classes": [ | ||
"BaseChatModel", | ||
"ChatOpenAI", | ||
"BaseLanguageModel" | ||
] | ||
}, | ||
"id": "dndnode_24", | ||
"value": null | ||
}, | ||
"selected": false, | ||
"dragging": false, | ||
"positionAbsolute": { | ||
"x": 228.87326389541306, | ||
"y": 465.8628482073749 | ||
} | ||
}, | ||
{ | ||
"width": 384, | ||
"height": 287, | ||
"id": "dndnode_28", | ||
"type": "genericNode", | ||
"position": { | ||
"x": 806, | ||
"y": 554 | ||
}, | ||
"data": { | ||
"type": "ConversationChain", | ||
"node": { | ||
"template": { | ||
"memory": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"password": false, | ||
"name": "memory", | ||
"advanced": false, | ||
"type": "BaseMemory", | ||
"list": false | ||
}, | ||
"callbacks": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"password": false, | ||
"name": "callbacks", | ||
"advanced": false, | ||
"type": "langchain.callbacks.base.BaseCallbackHandler", | ||
"list": true | ||
}, | ||
"verbose": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"password": false, | ||
"name": "verbose", | ||
"advanced": true, | ||
"type": "bool", | ||
"list": false | ||
}, | ||
"prompt": { | ||
"required": false, | ||
"placeholder": "", | ||
"show": false, | ||
"multiline": false, | ||
"value": { | ||
"input_variables": [ | ||
"history", | ||
"input" | ||
], | ||
"output_parser": null, | ||
"partial_variables": {}, | ||
"template": "The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\n{history}\nHuman: {input}\nAI:", | ||
"template_format": "f-string", | ||
"validate_template": true, | ||
"_type": "prompt" | ||
}, | ||
"password": false, | ||
"name": "prompt", | ||
"advanced": false, | ||
"type": "BasePromptTemplate", | ||
"list": false | ||
}, | ||
"llm": { | ||
"required": true, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"password": false, | ||
"name": "llm", | ||
"advanced": false, | ||
"type": "BaseLanguageModel", | ||
"list": false | ||
}, | ||
"output_key": { | ||
"required": true, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"value": "response", | ||
"password": false, | ||
"name": "output_key", | ||
"advanced": true, | ||
"type": "str", | ||
"list": false | ||
}, | ||
"input_key": { | ||
"required": true, | ||
"placeholder": "", | ||
"show": true, | ||
"multiline": false, | ||
"value": "input", | ||
"password": false, | ||
"name": "input_key", | ||
"advanced": true, | ||
"type": "str", | ||
"list": false | ||
}, | ||
"_type": "ConversationChain" | ||
}, | ||
"description": "Chain to have a conversation and load context from memory.", | ||
"base_classes": [ | ||
"LLMChain", | ||
"Chain", | ||
"ConversationChain" | ||
] | ||
}, | ||
"id": "dndnode_28", | ||
"value": null | ||
}, | ||
"selected": true, | ||
"dragging": false, | ||
"positionAbsolute": { | ||
"x": 806, | ||
"y": 554 | ||
} | ||
} | ||
], | ||
"edges": [ | ||
{ | ||
"source": "dndnode_24", | ||
"sourceHandle": "ChatOpenAI|dndnode_24|BaseChatModel|ChatOpenAI|BaseLanguageModel", | ||
"target": "dndnode_28", | ||
"targetHandle": "BaseLanguageModel|llm|dndnode_28", | ||
"className": "animate-pulse", | ||
"id": "reactflow__edge-dndnode_24ChatOpenAI|dndnode_24|BaseChatModel|ChatOpenAI|BaseLanguageModel-dndnode_28BaseLanguageModel|llm|dndnode_28" | ||
} | ||
], | ||
"viewport": { | ||
"x": 389.9096775910921, | ||
"y": 0.7671274465648139, | ||
"zoom": 0.5 | ||
} | ||
} | ||
} |
Oops, something went wrong.