diff --git a/examples/Github Issue Parser.json b/examples/Github Issue Parser.json index c78b161..4091a70 100644 --- a/examples/Github Issue Parser.json +++ b/examples/Github Issue Parser.json @@ -1 +1 @@ -{"description":"Gets Issues from Langflow repo and output them as JSON objects.","name":"Github Issue Parser","data":{"nodes":[{"width":384,"height":307,"id":"LLMChain-QzkmA","type":"genericNode","position":{"x":2186,"y":544.28125},"data":{"type":"LLMChain","node":{"template":{"callbacks":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"callbacks","advanced":false,"info":"","type":"langchain.callbacks.base.BaseCallbackHandler","list":true},"llm":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"llm","advanced":false,"info":"","type":"BaseLanguageModel","list":false},"memory":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"memory","advanced":false,"info":"","type":"BaseMemory","list":false},"output_parser":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"output_parser","advanced":false,"info":"","type":"BaseLLMOutputParser","list":false},"prompt":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"prompt","advanced":false,"info":"","type":"BasePromptTemplate","list":false},"llm_kwargs":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"llm_kwargs","advanced":false,"info":"","type":"code","list":false},"metadata":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"metadata","advanced":false,"info":"","type":"code","list":false},"output_key":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"text","password":false,"name":"output_key","advanced":true,"info":"","type":"str","list":false},"return_final_only":{"required":false,"placeholder":"","show":false,"multiline":false,"value":true,"password":false,"name":"return_final_only","advanced":false,"info":"","type":"bool","list":false},"tags":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"tags","advanced":false,"info":"","type":"str","list":true},"verbose":{"required":false,"placeholder":"","show":true,"multiline":false,"value":false,"password":false,"name":"verbose","advanced":true,"info":"","type":"bool","list":false},"_type":"LLMChain"},"description":"Chain to run queries against LLMs.","base_classes":["LLMChain","Chain","function"],"display_name":"LLMChain","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/chains/foundational/llm_chain"},"id":"LLMChain-QzkmA","value":null},"selected":false,"positionAbsolute":{"x":2186,"y":544.28125},"dragging":false},{"width":384,"height":617,"id":"PromptTemplate-y4OEo","type":"genericNode","position":{"x":1487.7550031104279,"y":10.572381253849244},"data":{"type":"PromptTemplate","node":{"template":{"output_parser":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"output_parser","advanced":false,"info":"","type":"BaseOutputParser","list":false},"input_variables":{"required":true,"placeholder":"","show":false,"multiline":false,"password":false,"name":"input_variables","advanced":false,"info":"","type":"str","list":true,"value":["repo_url","number_of_issues","issues","format_instructions"]},"partial_variables":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"partial_variables","advanced":false,"info":"","type":"code","list":false},"template":{"required":true,"placeholder":"","show":true,"multiline":true,"password":false,"name":"template","advanced":false,"info":"","type":"prompt","list":false,"value":"In the text below, there will be a list of issues from the Langflow repo({repo_url}).\nThe task is to extract the title, author and last_updated for {number_of_issues} issues.\n\n{issues}\n\n{format_instructions}\n\n- If you can't find one of the information, just pass an empty string like ''. \n- If there's more than one issue, create a list of JSON objects.\n"},"template_format":{"required":false,"placeholder":"","show":false,"multiline":false,"value":"f-string","password":false,"name":"template_format","advanced":false,"info":"","type":"str","list":false},"validate_template":{"required":false,"placeholder":"","show":false,"multiline":false,"value":true,"password":false,"name":"validate_template","advanced":false,"info":"","type":"bool","list":false},"_type":"PromptTemplate","repo_url":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"https://github.com/logspace-ai/langflow","password":false,"name":"repo_url","display_name":"repo_url","advanced":false,"input_types":["Document","BaseOutputParser"],"info":"","type":"str","list":false},"number_of_issues":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"number_of_issues","display_name":"number_of_issues","advanced":false,"input_types":["Document","BaseOutputParser"],"info":"","type":"str","list":false},"issues":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"issues","display_name":"issues","advanced":false,"input_types":["Document","BaseOutputParser"],"info":"","type":"str","list":false},"format_instructions":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"format_instructions","display_name":"format_instructions","advanced":false,"input_types":["Document","BaseOutputParser"],"info":"","type":"str","list":false}},"description":"Schema to represent a prompt for an LLM.","base_classes":["StringPromptTemplate","PromptTemplate","BasePromptTemplate"],"name":"","display_name":"PromptTemplate","documentation":"https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/","custom_fields":{"":["repo_url","number_of_issues","issues","format_instructions"]},"output_types":[],"field_formatters":{"formatters":{"openai_api_key":{}},"base_formatters":{"kwargs":{},"optional":{},"list":{},"dict":{},"union":{},"multiline":{},"show":{},"password":{},"default":{},"headers":{},"dict_code_file":{},"model_fields":{"MODEL_DICT":{"OpenAI":["text-davinci-003","text-davinci-002","text-curie-001","text-babbage-001","text-ada-001"],"ChatOpenAI":["gpt-3.5-turbo-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k-0613","gpt-3.5-turbo-16k","gpt-4-0613","gpt-4-32k-0613","gpt-4","gpt-4-32k"],"Anthropic":["claude-v1","claude-v1-100k","claude-instant-v1","claude-instant-v1-100k","claude-v1.3","claude-v1.3-100k","claude-v1.2","claude-v1.0","claude-instant-v1.1","claude-instant-v1.1-100k","claude-instant-v1.0"],"ChatAnthropic":["claude-v1","claude-v1-100k","claude-instant-v1","claude-instant-v1-100k","claude-v1.3","claude-v1.3-100k","claude-v1.2","claude-v1.0","claude-instant-v1.1","claude-instant-v1.1-100k","claude-instant-v1.0"]}}}}},"id":"PromptTemplate-y4OEo","value":null},"selected":false,"dragging":false,"positionAbsolute":{"x":1487.7550031104279,"y":10.572381253849244}},{"width":384,"height":621,"id":"ChatOpenAI-29u2P","type":"genericNode","position":{"x":1483.7239975266027,"y":669.3971466143861},"data":{"type":"ChatOpenAI","node":{"template":{"callbacks":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"callbacks","advanced":false,"info":"","type":"langchain.callbacks.base.BaseCallbackHandler","list":true},"cache":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"cache","advanced":false,"info":"","type":"bool","list":false},"client":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"client","advanced":false,"info":"","type":"Any","list":false},"max_retries":{"required":false,"placeholder":"","show":false,"multiline":false,"value":6,"password":false,"name":"max_retries","advanced":false,"info":"","type":"int","list":false},"max_tokens":{"required":false,"placeholder":"","show":true,"multiline":false,"password":true,"name":"max_tokens","advanced":false,"info":"","type":"int","list":false,"value":""},"metadata":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"metadata","advanced":false,"info":"","type":"code","list":false},"model_kwargs":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"model_kwargs","advanced":true,"info":"","type":"code","list":false},"model_name":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"gpt-3.5-turbo-0613","password":false,"options":["gpt-3.5-turbo-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k-0613","gpt-3.5-turbo-16k","gpt-4-0613","gpt-4-32k-0613","gpt-4","gpt-4-32k"],"name":"model_name","advanced":false,"info":"","type":"str","list":true},"n":{"required":false,"placeholder":"","show":false,"multiline":false,"value":1,"password":false,"name":"n","advanced":false,"info":"","type":"int","list":false},"openai_api_base":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"openai_api_base","display_name":"OpenAI API Base","advanced":false,"info":"\nThe base URL of the OpenAI API. Defaults to https://api.openai.com/v1.\n\nYou can change this to use other APIs like JinaChat, LocalAI and Prem.\n","type":"str","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,"info":"","type":"str","list":false},"openai_organization":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"openai_organization","display_name":"OpenAI Organization","advanced":false,"info":"","type":"str","list":false},"openai_proxy":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"openai_proxy","display_name":"OpenAI Proxy","advanced":false,"info":"","type":"str","list":false},"request_timeout":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"request_timeout","advanced":false,"info":"","type":"float","list":false},"streaming":{"required":false,"placeholder":"","show":false,"multiline":false,"value":false,"password":false,"name":"streaming","advanced":false,"info":"","type":"bool","list":false},"tags":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"tags","advanced":false,"info":"","type":"str","list":true},"temperature":{"required":false,"placeholder":"","show":true,"multiline":false,"value":0.7,"password":false,"name":"temperature","advanced":false,"info":"","type":"float","list":false},"tiktoken_model_name":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"tiktoken_model_name","advanced":false,"info":"","type":"str","list":false},"verbose":{"required":false,"placeholder":"","show":false,"multiline":false,"value":false,"password":false,"name":"verbose","advanced":false,"info":"","type":"bool","list":false},"_type":"ChatOpenAI"},"description":"Wrapper around OpenAI Chat large language models.","base_classes":["ChatOpenAI","BaseLanguageModel","BaseChatModel","BaseLLM"],"display_name":"ChatOpenAI","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/models/chat/integrations/openai"},"id":"ChatOpenAI-29u2P","value":null},"selected":false,"positionAbsolute":{"x":1483.7239975266027,"y":669.3971466143861},"dragging":false},{"width":384,"height":379,"id":"WebBaseLoader-zknYj","type":"genericNode","position":{"x":769.255740690712,"y":-66.92435295205902},"data":{"type":"WebBaseLoader","node":{"template":{"metadata":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"{}","password":false,"name":"metadata","display_name":"Metadata","advanced":false,"info":"","type":"code","list":false},"web_path":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"https://github.com/logspace-ai/langflow/issues?q=is:issue+is:open+sort:updated-desc","password":false,"name":"web_path","display_name":"Web Page","advanced":false,"info":"","type":"str","list":false},"_type":"WebBaseLoader"},"description":"Loader that uses urllib and beautiful soup to load webpages.","base_classes":["Document"],"display_name":"WebBaseLoader","custom_fields":{},"output_types":["Document"],"documentation":"https://python.langchain.com/docs/modules/data_connection/document_loaders/integrations/web_base"},"id":"WebBaseLoader-zknYj","value":null},"selected":false,"positionAbsolute":{"x":769.255740690712,"y":-66.92435295205902},"dragging":false},{"width":384,"height":207,"id":"StructuredOutputParser-k2ui8","type":"genericNode","position":{"x":784.4425371799673,"y":369.3130308646057},"data":{"type":"StructuredOutputParser","node":{"template":{"response_schemas":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"response_schemas","advanced":false,"info":"","type":"ResponseSchema","list":true},"_type":"StructuredOutputParser"},"description":"","base_classes":["Generic","StructuredOutputParser","BaseLLMOutputParser","BaseOutputParser"],"display_name":"StructuredOutputParser","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/output_parsers/structured"},"id":"StructuredOutputParser-k2ui8","value":null},"selected":false,"positionAbsolute":{"x":784.4425371799673,"y":369.3130308646057},"dragging":false},{"width":384,"height":425,"id":"ResponseSchema-gLjtt","type":"genericNode","position":{"x":216.1189209515943,"y":204.9292111664579},"data":{"type":"ResponseSchema","node":{"template":{"description":{"required":true,"placeholder":"","show":true,"multiline":true,"password":false,"name":"description","advanced":false,"info":"","type":"str","list":false,"value":"tittle of the issue"},"name":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"name","advanced":false,"info":"","type":"str","list":false,"value":"title"},"type":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"string","password":false,"name":"type","advanced":false,"info":"","type":"str","list":false},"_type":"ResponseSchema"},"description":"","base_classes":["ResponseSchema"],"display_name":"ResponseSchema","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/output_parsers/structured"},"id":"ResponseSchema-gLjtt","value":null},"selected":false,"positionAbsolute":{"x":216.1189209515943,"y":204.9292111664579},"dragging":false},{"width":384,"height":425,"id":"ResponseSchema-xgtN9","type":"genericNode","position":{"x":202.35985494557065,"y":672.782962772499},"data":{"type":"ResponseSchema","node":{"template":{"description":{"required":true,"placeholder":"","show":true,"multiline":true,"password":false,"name":"description","advanced":false,"info":"","type":"str","list":false,"value":"author of the issue"},"name":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"name","advanced":false,"info":"","type":"str","list":false,"value":"author"},"type":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"string","password":false,"name":"type","advanced":false,"info":"","type":"str","list":false},"_type":"ResponseSchema"},"description":"","base_classes":["ResponseSchema"],"display_name":"ResponseSchema","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/output_parsers/structured"},"id":"ResponseSchema-xgtN9","value":null},"selected":false,"positionAbsolute":{"x":202.35985494557065,"y":672.782962772499},"dragging":false},{"width":384,"height":425,"id":"ResponseSchema-GUuNL","type":"genericNode","position":{"x":208.95930511608958,"y":1143.2299735204035},"data":{"type":"ResponseSchema","node":{"template":{"description":{"required":true,"placeholder":"","show":true,"multiline":true,"password":false,"name":"description","advanced":false,"info":"","type":"str","list":false,"value":"last updated date"},"name":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"name","advanced":false,"info":"","type":"str","list":false,"value":"last_updated"},"type":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"string","password":false,"name":"type","advanced":false,"info":"","type":"str","list":false},"_type":"ResponseSchema"},"description":"","base_classes":["ResponseSchema"],"display_name":"ResponseSchema","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/output_parsers/structured"},"id":"ResponseSchema-GUuNL","value":null},"selected":false,"positionAbsolute":{"x":208.95930511608958,"y":1143.2299735204035},"dragging":false}],"edges":[{"source":"ChatOpenAI-29u2P","sourceHandle":"ChatOpenAI|ChatOpenAI-29u2P|ChatOpenAI|BaseLanguageModel|BaseChatModel|BaseLLM","target":"LLMChain-QzkmA","targetHandle":"BaseLanguageModel|llm|LLMChain-QzkmA","style":{"stroke":"inherit"},"className":"stroke-foreground ","animated":false,"id":"reactflow__edge-ChatOpenAI-29u2PChatOpenAI|ChatOpenAI-29u2P|ChatOpenAI|BaseLanguageModel|BaseChatModel|BaseLLM-LLMChain-QzkmABaseLanguageModel|llm|LLMChain-QzkmA","selected":false},{"source":"PromptTemplate-y4OEo","sourceHandle":"PromptTemplate|PromptTemplate-y4OEo|StringPromptTemplate|PromptTemplate|BasePromptTemplate","target":"LLMChain-QzkmA","targetHandle":"BasePromptTemplate|prompt|LLMChain-QzkmA","style":{"stroke":"inherit"},"className":"stroke-foreground ","animated":false,"id":"reactflow__edge-PromptTemplate-y4OEoPromptTemplate|PromptTemplate-y4OEo|StringPromptTemplate|PromptTemplate|BasePromptTemplate-LLMChain-QzkmABasePromptTemplate|prompt|LLMChain-QzkmA","selected":false},{"source":"WebBaseLoader-zknYj","sourceHandle":"WebBaseLoader|WebBaseLoader-zknYj|Document","target":"PromptTemplate-y4OEo","targetHandle":"Document;BaseOutputParser|issues|PromptTemplate-y4OEo","style":{"stroke":"inherit"},"className":"stroke-foreground ","animated":false,"id":"reactflow__edge-WebBaseLoader-zknYjWebBaseLoader|WebBaseLoader-zknYj|Document-PromptTemplate-y4OEoDocument;BaseOutputParser|issues|PromptTemplate-y4OEo","selected":false},{"source":"StructuredOutputParser-k2ui8","sourceHandle":"StructuredOutputParser|StructuredOutputParser-k2ui8|Generic|StructuredOutputParser|BaseLLMOutputParser|BaseOutputParser","target":"PromptTemplate-y4OEo","targetHandle":"Document;BaseOutputParser|format_instructions|PromptTemplate-y4OEo","style":{"stroke":"inherit"},"className":"stroke-foreground ","animated":false,"id":"reactflow__edge-StructuredOutputParser-k2ui8StructuredOutputParser|StructuredOutputParser-k2ui8|Generic|StructuredOutputParser|BaseLLMOutputParser|BaseOutputParser-PromptTemplate-y4OEoDocument;BaseOutputParser|format_instructions|PromptTemplate-y4OEo","selected":false},{"source":"ResponseSchema-GUuNL","sourceHandle":"ResponseSchema|ResponseSchema-GUuNL|ResponseSchema","target":"StructuredOutputParser-k2ui8","targetHandle":"ResponseSchema|response_schemas|StructuredOutputParser-k2ui8","style":{"stroke":"inherit"},"className":"stroke-foreground ","animated":false,"id":"reactflow__edge-ResponseSchema-GUuNLResponseSchema|ResponseSchema-GUuNL|ResponseSchema-StructuredOutputParser-k2ui8ResponseSchema|response_schemas|StructuredOutputParser-k2ui8","selected":false},{"source":"ResponseSchema-xgtN9","sourceHandle":"ResponseSchema|ResponseSchema-xgtN9|ResponseSchema","target":"StructuredOutputParser-k2ui8","targetHandle":"ResponseSchema|response_schemas|StructuredOutputParser-k2ui8","style":{"stroke":"inherit"},"className":"stroke-foreground ","animated":false,"id":"reactflow__edge-ResponseSchema-xgtN9ResponseSchema|ResponseSchema-xgtN9|ResponseSchema-StructuredOutputParser-k2ui8ResponseSchema|response_schemas|StructuredOutputParser-k2ui8","selected":false},{"source":"ResponseSchema-gLjtt","sourceHandle":"ResponseSchema|ResponseSchema-gLjtt|ResponseSchema","target":"StructuredOutputParser-k2ui8","targetHandle":"ResponseSchema|response_schemas|StructuredOutputParser-k2ui8","style":{"stroke":"inherit"},"className":"stroke-foreground ","animated":false,"id":"reactflow__edge-ResponseSchema-gLjttResponseSchema|ResponseSchema-gLjtt|ResponseSchema-StructuredOutputParser-k2ui8ResponseSchema|response_schemas|StructuredOutputParser-k2ui8","selected":false}],"viewport":{"x":-30.215275897131164,"y":144.8852511141646,"zoom":0.7017796311458808}},"id":"4060dd60-6a89-4cb6-9a7f-a071eca30378"} \ No newline at end of file +{"name":"Github Issue Parser","description":"Gets Issues from Langflow repo and output them as JSON objects.","data":{"nodes":[{"width":384,"height":339,"id":"LLMChain-hPAAZ","type":"genericNode","position":{"x":2186,"y":544.28125},"data":{"type":"LLMChain","node":{"template":{"callbacks":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"callbacks","advanced":false,"dynamic":false,"info":"","type":"langchain.callbacks.base.BaseCallbackHandler","list":true},"llm":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"llm","advanced":false,"dynamic":false,"info":"","type":"BaseLanguageModel","list":false},"memory":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"memory","advanced":false,"dynamic":false,"info":"","type":"BaseMemory","list":false},"output_parser":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"output_parser","advanced":false,"dynamic":false,"info":"","type":"BaseLLMOutputParser","list":false},"prompt":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"prompt","advanced":false,"dynamic":false,"info":"","type":"BasePromptTemplate","list":false},"llm_kwargs":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"llm_kwargs","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"metadata":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"metadata","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"output_key":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"text","password":false,"name":"output_key","advanced":true,"dynamic":false,"info":"","type":"str","list":false},"return_final_only":{"required":false,"placeholder":"","show":false,"multiline":false,"value":true,"password":false,"name":"return_final_only","advanced":false,"dynamic":false,"info":"","type":"bool","list":false},"tags":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"tags","advanced":false,"dynamic":false,"info":"","type":"str","list":true},"verbose":{"required":false,"placeholder":"","show":false,"multiline":false,"value":false,"password":false,"name":"verbose","advanced":true,"dynamic":false,"info":"","type":"bool","list":false},"_type":"LLMChain"},"description":"Chain to run queries against LLMs.","base_classes":["LLMChain","Chain","function"],"display_name":"LLMChain","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/chains/foundational/llm_chain"},"id":"LLMChain-hPAAZ","value":null},"selected":false,"positionAbsolute":{"x":2186,"y":544.28125},"dragging":false},{"width":384,"height":658,"id":"PromptTemplate-pq4uZ","type":"genericNode","position":{"x":1528.325062605035,"y":-90.85276748266875},"data":{"type":"PromptTemplate","node":{"template":{"output_parser":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"output_parser","advanced":false,"dynamic":false,"info":"","type":"BaseOutputParser","list":false},"input_variables":{"required":true,"placeholder":"","show":false,"multiline":false,"password":false,"name":"input_variables","advanced":false,"dynamic":false,"info":"","type":"str","list":true,"value":["repo_url","number_of_issues","issues","format_instructions"]},"partial_variables":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"partial_variables","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"template":{"required":true,"placeholder":"","show":true,"multiline":true,"password":false,"name":"template","advanced":false,"dynamic":false,"info":"","type":"prompt","list":false,"value":"In the text below, there will be a list of issues from the Langflow repo({repo_url}).\nThe task is to extract the title, author and last_updated for {number_of_issues} issues.\n\n{issues}\n\n{format_instructions}\n\n- If you can't find one of the information, just pass an empty string like ''. \n- If there's more than one issue, create a list of JSON objects.\n"},"template_format":{"required":false,"placeholder":"","show":false,"multiline":false,"value":"f-string","password":false,"name":"template_format","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"validate_template":{"required":false,"placeholder":"","show":false,"multiline":false,"value":true,"password":false,"name":"validate_template","advanced":false,"dynamic":false,"info":"","type":"bool","list":false},"_type":"PromptTemplate","repo_url":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"repo_url","display_name":"repo_url","advanced":false,"input_types":["Document","BaseOutputParser"],"dynamic":false,"info":"","type":"str","list":false},"number_of_issues":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"number_of_issues","display_name":"number_of_issues","advanced":false,"input_types":["Document","BaseOutputParser"],"dynamic":false,"info":"","type":"str","list":false},"issues":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"issues","display_name":"issues","advanced":false,"input_types":["Document","BaseOutputParser"],"dynamic":false,"info":"","type":"str","list":false},"format_instructions":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"format_instructions","display_name":"format_instructions","advanced":false,"input_types":["Document","BaseOutputParser"],"dynamic":false,"info":"","type":"str","list":false}},"description":"A prompt template for a language model.","base_classes":["StringPromptTemplate","PromptTemplate","BasePromptTemplate"],"name":"","display_name":"PromptTemplate","documentation":"https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/","custom_fields":{"":["repo_url","number_of_issues","issues","format_instructions"],"template":["repo_url","number_of_issues","issues","format_instructions"]},"output_types":[],"field_formatters":{"formatters":{"openai_api_key":{}},"base_formatters":{"kwargs":{},"optional":{},"list":{},"dict":{},"union":{},"multiline":{},"show":{},"password":{},"default":{},"headers":{},"dict_code_file":{},"model_fields":{"MODEL_DICT":{"OpenAI":["text-davinci-003","text-davinci-002","text-curie-001","text-babbage-001","text-ada-001"],"ChatOpenAI":["gpt-3.5-turbo-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k-0613","gpt-3.5-turbo-16k","gpt-4-0613","gpt-4-32k-0613","gpt-4","gpt-4-32k"],"Anthropic":["claude-v1","claude-v1-100k","claude-instant-v1","claude-instant-v1-100k","claude-v1.3","claude-v1.3-100k","claude-v1.2","claude-v1.0","claude-instant-v1.1","claude-instant-v1.1-100k","claude-instant-v1.0"],"ChatAnthropic":["claude-v1","claude-v1-100k","claude-instant-v1","claude-instant-v1-100k","claude-v1.3","claude-v1.3-100k","claude-v1.2","claude-v1.0","claude-instant-v1.1","claude-instant-v1.1-100k","claude-instant-v1.0"]}}}},"beta":false,"error":null},"id":"PromptTemplate-pq4uZ","value":null},"selected":true,"dragging":false,"positionAbsolute":{"x":1528.325062605035,"y":-90.85276748266875}},{"width":384,"height":630,"id":"ChatOpenAI-cqGLq","type":"genericNode","position":{"x":1498.7361464926273,"y":691.9153700634232},"data":{"type":"ChatOpenAI","node":{"template":{"callbacks":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"callbacks","advanced":false,"dynamic":false,"info":"","type":"langchain.callbacks.base.BaseCallbackHandler","list":true},"cache":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"cache","advanced":false,"dynamic":false,"info":"","type":"bool","list":false},"client":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"client","advanced":false,"dynamic":false,"info":"","type":"Any","list":false},"max_retries":{"required":false,"placeholder":"","show":false,"multiline":false,"value":6,"password":false,"name":"max_retries","advanced":false,"dynamic":false,"info":"","type":"int","list":false},"max_tokens":{"required":false,"placeholder":"","show":true,"multiline":false,"password":true,"name":"max_tokens","advanced":false,"dynamic":false,"info":"","type":"int","list":false,"value":""},"metadata":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"metadata","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"model_kwargs":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"model_kwargs","advanced":true,"dynamic":false,"info":"","type":"dict","list":false},"model_name":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"gpt-3.5-turbo-0613","password":false,"options":["gpt-3.5-turbo-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k-0613","gpt-3.5-turbo-16k","gpt-4-0613","gpt-4-32k-0613","gpt-4","gpt-4-32k"],"name":"model_name","advanced":false,"dynamic":false,"info":"","type":"str","list":true},"n":{"required":false,"placeholder":"","show":false,"multiline":false,"value":1,"password":false,"name":"n","advanced":false,"dynamic":false,"info":"","type":"int","list":false},"openai_api_base":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"openai_api_base","display_name":"OpenAI API Base","advanced":false,"dynamic":false,"info":"\nThe base URL of the OpenAI API. Defaults to https://api.openai.com/v1.\n\nYou can change this to use other APIs like JinaChat, LocalAI and Prem.\n","type":"str","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,"dynamic":false,"info":"","type":"str","list":false},"openai_organization":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"openai_organization","display_name":"OpenAI Organization","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"openai_proxy":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"openai_proxy","display_name":"OpenAI Proxy","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"request_timeout":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"request_timeout","advanced":false,"dynamic":false,"info":"","type":"float","list":false},"streaming":{"required":false,"placeholder":"","show":false,"multiline":false,"value":false,"password":false,"name":"streaming","advanced":false,"dynamic":false,"info":"","type":"bool","list":false},"tags":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"tags","advanced":false,"dynamic":false,"info":"","type":"str","list":true},"temperature":{"required":false,"placeholder":"","show":true,"multiline":false,"value":0.7,"password":false,"name":"temperature","advanced":false,"dynamic":false,"info":"","type":"float","list":false},"tiktoken_model_name":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"tiktoken_model_name","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"verbose":{"required":false,"placeholder":"","show":false,"multiline":false,"value":false,"password":false,"name":"verbose","advanced":false,"dynamic":false,"info":"","type":"bool","list":false},"_type":"ChatOpenAI"},"description":"`OpenAI` Chat large language models API.","base_classes":["BaseLanguageModel","BaseChatModel","ChatOpenAI","BaseLLM"],"display_name":"ChatOpenAI","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/models/chat/integrations/openai"},"id":"ChatOpenAI-cqGLq","value":null},"selected":false,"positionAbsolute":{"x":1498.7361464926273,"y":691.9153700634232},"dragging":false},{"width":384,"height":388,"id":"WebBaseLoader-UVsKp","type":"genericNode","position":{"x":769.255740690712,"y":-66.92435295205902},"data":{"type":"WebBaseLoader","node":{"template":{"metadata":{"required":false,"placeholder":"","show":true,"multiline":false,"value":[{"":""}],"password":false,"name":"metadata","display_name":"Metadata","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"web_path":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"https://github.com/logspace-ai/langflow/issues?q=is:issue+is:open+sort:updated-desc","password":false,"name":"web_path","display_name":"Web Page","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"_type":"WebBaseLoader"},"description":"Load HTML pages using `urllib` and parse them with `BeautifulSoup'.","base_classes":["Document"],"display_name":"WebBaseLoader","custom_fields":{},"output_types":["Document"],"documentation":"https://python.langchain.com/docs/modules/data_connection/document_loaders/integrations/web_base"},"id":"WebBaseLoader-UVsKp","value":null},"selected":false,"positionAbsolute":{"x":769.255740690712,"y":-66.92435295205902},"dragging":false},{"width":384,"height":191,"id":"StructuredOutputParser-CTrMG","type":"genericNode","position":{"x":784.4425371799673,"y":369.3130308646057},"data":{"type":"StructuredOutputParser","node":{"template":{"response_schemas":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"response_schemas","advanced":false,"dynamic":false,"info":"","type":"ResponseSchema","list":true},"_type":"StructuredOutputParser"},"description":"","base_classes":["StructuredOutputParser","BaseLLMOutputParser","BaseOutputParser"],"display_name":"StructuredOutputParser","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/output_parsers/structured"},"id":"StructuredOutputParser-CTrMG","value":null},"selected":false,"positionAbsolute":{"x":784.4425371799673,"y":369.3130308646057},"dragging":false},{"width":384,"height":474,"id":"ResponseSchema-YysF7","type":"genericNode","position":{"x":216.1189209515943,"y":204.9292111664579},"data":{"type":"ResponseSchema","node":{"template":{"description":{"required":true,"placeholder":"","show":true,"multiline":true,"password":false,"name":"description","advanced":false,"dynamic":false,"info":"","type":"str","list":false,"value":"tittle of the issue"},"name":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"name","advanced":false,"dynamic":false,"info":"","type":"str","list":false,"value":"title"},"type":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"string","password":false,"name":"type","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"_type":"ResponseSchema"},"description":"A schema for a response from a structured output parser.","base_classes":["ResponseSchema"],"display_name":"ResponseSchema","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/output_parsers/structured"},"id":"ResponseSchema-YysF7","value":null},"selected":false,"positionAbsolute":{"x":216.1189209515943,"y":204.9292111664579},"dragging":false},{"width":384,"height":474,"id":"ResponseSchema-ZeO3d","type":"genericNode","position":{"x":202.35985494557065,"y":672.782962772499},"data":{"type":"ResponseSchema","node":{"template":{"description":{"required":true,"placeholder":"","show":true,"multiline":true,"password":false,"name":"description","advanced":false,"dynamic":false,"info":"","type":"str","list":false,"value":"author of the issue"},"name":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"name","advanced":false,"dynamic":false,"info":"","type":"str","list":false,"value":"author"},"type":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"string","password":false,"name":"type","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"_type":"ResponseSchema"},"description":"A schema for a response from a structured output parser.","base_classes":["ResponseSchema"],"display_name":"ResponseSchema","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/output_parsers/structured"},"id":"ResponseSchema-ZeO3d","value":null},"selected":false,"positionAbsolute":{"x":202.35985494557065,"y":672.782962772499},"dragging":false},{"width":384,"height":474,"id":"ResponseSchema-5h2c8","type":"genericNode","position":{"x":208.95930511608958,"y":1143.2299735204035},"data":{"type":"ResponseSchema","node":{"template":{"description":{"required":true,"placeholder":"","show":true,"multiline":true,"password":false,"name":"description","advanced":false,"dynamic":false,"info":"","type":"str","list":false,"value":"last updated date"},"name":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"name","advanced":false,"dynamic":false,"info":"","type":"str","list":false,"value":"last_updated"},"type":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"string","password":false,"name":"type","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"_type":"ResponseSchema"},"description":"A schema for a response from a structured output parser.","base_classes":["ResponseSchema"],"display_name":"ResponseSchema","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/output_parsers/structured"},"id":"ResponseSchema-5h2c8","value":null},"selected":false,"positionAbsolute":{"x":208.95930511608958,"y":1143.2299735204035},"dragging":false}],"edges":[{"source":"ChatOpenAI-cqGLq","sourceHandle":"ChatOpenAI|ChatOpenAI-cqGLq|BaseLanguageModel|BaseChatModel|ChatOpenAI|BaseLLM","target":"LLMChain-hPAAZ","targetHandle":"BaseLanguageModel|llm|LLMChain-hPAAZ","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-ChatOpenAI-cqGLqChatOpenAI|ChatOpenAI-cqGLq|BaseLanguageModel|BaseChatModel|ChatOpenAI|BaseLLM-LLMChain-hPAAZBaseLanguageModel|llm|LLMChain-hPAAZ","selected":false},{"source":"PromptTemplate-pq4uZ","sourceHandle":"PromptTemplate|PromptTemplate-pq4uZ|StringPromptTemplate|PromptTemplate|BasePromptTemplate","target":"LLMChain-hPAAZ","targetHandle":"BasePromptTemplate|prompt|LLMChain-hPAAZ","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-PromptTemplate-pq4uZPromptTemplate|PromptTemplate-pq4uZ|StringPromptTemplate|PromptTemplate|BasePromptTemplate-LLMChain-hPAAZBasePromptTemplate|prompt|LLMChain-hPAAZ","selected":false},{"source":"WebBaseLoader-UVsKp","sourceHandle":"WebBaseLoader|WebBaseLoader-UVsKp|Document","target":"PromptTemplate-pq4uZ","targetHandle":"Document;BaseOutputParser|issues|PromptTemplate-pq4uZ","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-WebBaseLoader-UVsKpWebBaseLoader|WebBaseLoader-UVsKp|Document-PromptTemplate-pq4uZDocument;BaseOutputParser|issues|PromptTemplate-pq4uZ","selected":false},{"source":"StructuredOutputParser-CTrMG","sourceHandle":"StructuredOutputParser|StructuredOutputParser-CTrMG|StructuredOutputParser|BaseLLMOutputParser|BaseOutputParser","target":"PromptTemplate-pq4uZ","targetHandle":"Document;BaseOutputParser|format_instructions|PromptTemplate-pq4uZ","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-StructuredOutputParser-CTrMGStructuredOutputParser|StructuredOutputParser-CTrMG|StructuredOutputParser|BaseLLMOutputParser|BaseOutputParser-PromptTemplate-pq4uZDocument;BaseOutputParser|format_instructions|PromptTemplate-pq4uZ","selected":false},{"source":"ResponseSchema-5h2c8","sourceHandle":"ResponseSchema|ResponseSchema-5h2c8|ResponseSchema","target":"StructuredOutputParser-CTrMG","targetHandle":"ResponseSchema|response_schemas|StructuredOutputParser-CTrMG","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-ResponseSchema-5h2c8ResponseSchema|ResponseSchema-5h2c8|ResponseSchema-StructuredOutputParser-CTrMGResponseSchema|response_schemas|StructuredOutputParser-CTrMG","selected":false},{"source":"ResponseSchema-ZeO3d","sourceHandle":"ResponseSchema|ResponseSchema-ZeO3d|ResponseSchema","target":"StructuredOutputParser-CTrMG","targetHandle":"ResponseSchema|response_schemas|StructuredOutputParser-CTrMG","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-ResponseSchema-ZeO3dResponseSchema|ResponseSchema-ZeO3d|ResponseSchema-StructuredOutputParser-CTrMGResponseSchema|response_schemas|StructuredOutputParser-CTrMG","selected":false},{"source":"ResponseSchema-YysF7","sourceHandle":"ResponseSchema|ResponseSchema-YysF7|ResponseSchema","target":"StructuredOutputParser-CTrMG","targetHandle":"ResponseSchema|response_schemas|StructuredOutputParser-CTrMG","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-ResponseSchema-YysF7ResponseSchema|ResponseSchema-YysF7|ResponseSchema-StructuredOutputParser-CTrMGResponseSchema|response_schemas|StructuredOutputParser-CTrMG","selected":false}],"viewport":{"x":143.7288927262312,"y":65.00964337972812,"zoom":0.36883459148473813}},"id":"18df0520-51e4-4a67-b3eb-d3be0245ee33","user_id":"dc912b7a-d54a-49c7-b783-b51c20388859"} \ No newline at end of file diff --git a/examples/SystemMessage Example.json b/examples/SystemMessage Example.json index c0acfc9..3088878 100644 --- a/examples/SystemMessage Example.json +++ b/examples/SystemMessage Example.json @@ -1,991 +1 @@ -{ - "name": "SystemMessage Example", - "description": "This example showcases the use of SystemMessage and HumanMessage components to build a ChatPromptTemplate. A WebBaseLoader is used to pass a random word to a SystemMessage variable.", - "data": { - "nodes": [ - { - "width": 384, - "height": 425, - "id": "SystemMessagePromptTemplate-kIj8J", - "type": "genericNode", - "position": { - "x": 481.58711153746583, - "y": 370.2294992017135 - }, - "data": { - "type": "SystemMessagePromptTemplate", - "node": { - "template": { - "additional_kwargs": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "additional_kwargs", - "advanced": false, - "info": "", - "type": "code", - "list": false - }, - "prompt": { - "required": true, - "placeholder": "", - "show": true, - "multiline": true, - "value": "\nYou are a {type_of_assistant} that {behavior}\n", - "password": false, - "name": "prompt", - "advanced": false, - "info": "", - "type": "prompt", - "list": false - }, - "_type": "SystemMessagePromptTemplate", - "type_of_assistant": { - "required": false, - "placeholder": "", - "show": true, - "multiline": true, - "value": "", - "password": false, - "name": "type_of_assistant", - "display_name": "type_of_assistant", - "advanced": false, - "input_types": [ - "Document", - "BaseOutputParser" - ], - "info": "", - "type": "str", - "list": false - }, - "behavior": { - "required": false, - "placeholder": "", - "show": true, - "multiline": true, - "value": "", - "password": false, - "name": "behavior", - "display_name": "behavior", - "advanced": false, - "input_types": [ - "Document", - "BaseOutputParser" - ], - "info": "", - "type": "str", - "list": false - } - }, - "description": "", - "base_classes": [ - "BaseStringMessagePromptTemplate", - "SystemMessagePromptTemplate", - "BaseMessagePromptTemplate" - ], - "name": "", - "display_name": "SystemMessagePromptTemplate", - "documentation": "https://python.langchain.com/docs/modules/model_io/models/chat/how_to/prompts", - "custom_fields": { - "prompt": [ - "type_of_assistant", - "behavior" - ], - "": [ - "type_of_assistant", - "behavior" - ] - }, - "output_types": [], - "field_formatters": { - "formatters": { - "openai_api_key": {} - }, - "base_formatters": { - "kwargs": {}, - "optional": {}, - "list": {}, - "dict": {}, - "union": {}, - "multiline": {}, - "show": {}, - "password": {}, - "default": {}, - "headers": {}, - "dict_code_file": {}, - "model_fields": { - "MODEL_DICT": { - "OpenAI": [ - "text-davinci-003", - "text-davinci-002", - "text-curie-001", - "text-babbage-001", - "text-ada-001" - ], - "ChatOpenAI": [ - "gpt-3.5-turbo-0613", - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k-0613", - "gpt-3.5-turbo-16k", - "gpt-4-0613", - "gpt-4-32k-0613", - "gpt-4", - "gpt-4-32k" - ], - "Anthropic": [ - "claude-v1", - "claude-v1-100k", - "claude-instant-v1", - "claude-instant-v1-100k", - "claude-v1.3", - "claude-v1.3-100k", - "claude-v1.2", - "claude-v1.0", - "claude-instant-v1.1", - "claude-instant-v1.1-100k", - "claude-instant-v1.0" - ], - "ChatAnthropic": [ - "claude-v1", - "claude-v1-100k", - "claude-instant-v1", - "claude-instant-v1-100k", - "claude-v1.3", - "claude-v1.3-100k", - "claude-v1.2", - "claude-v1.0", - "claude-instant-v1.1", - "claude-instant-v1.1-100k", - "claude-instant-v1.0" - ] - } - } - } - } - }, - "id": "SystemMessagePromptTemplate-kIj8J", - "value": null - }, - "selected": false, - "positionAbsolute": { - "x": 481.58711153746583, - "y": 370.2294992017135 - }, - "dragging": false - }, - { - "width": 384, - "height": 253, - "id": "HumanMessagePromptTemplate-mMv6B", - "type": "genericNode", - "position": { - "x": 467.9464914249562, - "y": 828.1160630276088 - }, - "data": { - "type": "HumanMessagePromptTemplate", - "node": { - "template": { - "additional_kwargs": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "additional_kwargs", - "advanced": false, - "info": "", - "type": "code", - "list": false - }, - "prompt": { - "required": true, - "placeholder": "", - "show": true, - "multiline": true, - "value": "Human: {input}\nAssistant:", - "password": false, - "name": "prompt", - "advanced": false, - "info": "", - "type": "prompt", - "list": false - }, - "_type": "HumanMessagePromptTemplate" - }, - "description": "", - "base_classes": [ - "BaseStringMessagePromptTemplate", - "HumanMessagePromptTemplate", - "BaseMessagePromptTemplate" - ], - "name": "", - "display_name": "HumanMessagePromptTemplate", - "documentation": "https://python.langchain.com/docs/modules/model_io/models/chat/how_to/prompts", - "custom_fields": { - "prompt": [], - "": [ - "input" - ] - }, - "output_types": [], - "field_formatters": { - "formatters": { - "openai_api_key": {} - }, - "base_formatters": { - "kwargs": {}, - "optional": {}, - "list": {}, - "dict": {}, - "union": {}, - "multiline": {}, - "show": {}, - "password": {}, - "default": {}, - "headers": {}, - "dict_code_file": {}, - "model_fields": { - "MODEL_DICT": { - "OpenAI": [ - "text-davinci-003", - "text-davinci-002", - "text-curie-001", - "text-babbage-001", - "text-ada-001" - ], - "ChatOpenAI": [ - "gpt-3.5-turbo-0613", - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k-0613", - "gpt-3.5-turbo-16k", - "gpt-4-0613", - "gpt-4-32k-0613", - "gpt-4", - "gpt-4-32k" - ], - "Anthropic": [ - "claude-v1", - "claude-v1-100k", - "claude-instant-v1", - "claude-instant-v1-100k", - "claude-v1.3", - "claude-v1.3-100k", - "claude-v1.2", - "claude-v1.0", - "claude-instant-v1.1", - "claude-instant-v1.1-100k", - "claude-instant-v1.0" - ], - "ChatAnthropic": [ - "claude-v1", - "claude-v1-100k", - "claude-instant-v1", - "claude-instant-v1-100k", - "claude-v1.3", - "claude-v1.3-100k", - "claude-v1.2", - "claude-v1.0", - "claude-instant-v1.1", - "claude-instant-v1.1-100k", - "claude-instant-v1.0" - ] - } - } - } - } - }, - "id": "HumanMessagePromptTemplate-mMv6B", - "value": null - }, - "selected": false, - "positionAbsolute": { - "x": 467.9464914249562, - "y": 828.1160630276088 - }, - "dragging": false - }, - { - "width": 384, - "height": 207, - "id": "ChatPromptTemplate-PZUD8", - "type": "genericNode", - "position": { - "x": 921.018231417185, - "y": 598.9805680311384 - }, - "data": { - "type": "ChatPromptTemplate", - "node": { - "template": { - "messages": { - "required": true, - "placeholder": "", - "show": true, - "multiline": false, - "password": false, - "name": "messages", - "advanced": false, - "info": "", - "type": "BaseMessagePromptTemplate", - "list": true - }, - "output_parser": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "output_parser", - "advanced": false, - "info": "", - "type": "BaseOutputParser", - "list": false - }, - "input_variables": { - "required": true, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "input_variables", - "advanced": false, - "info": "", - "type": "str", - "list": true - }, - "partial_variables": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "partial_variables", - "advanced": false, - "info": "", - "type": "code", - "list": false - }, - "_type": "ChatPromptTemplate" - }, - "description": "", - "base_classes": [ - "ChatPromptTemplate", - "BaseChatPromptTemplate", - "BasePromptTemplate" - ], - "display_name": "ChatPromptTemplate", - "custom_fields": {}, - "output_types": [], - "documentation": "https://python.langchain.com/docs/modules/model_io/models/chat/how_to/prompts" - }, - "id": "ChatPromptTemplate-PZUD8", - "value": null - }, - "selected": false, - "positionAbsolute": { - "x": 921.018231417185, - "y": 598.9805680311384 - }, - "dragging": false - }, - { - "width": 384, - "height": 307, - "id": "LLMChain-bcX6V", - "type": "genericNode", - "position": { - "x": 1421.0914439092537, - "y": 507.58787747224306 - }, - "data": { - "type": "LLMChain", - "node": { - "template": { - "callbacks": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "callbacks", - "advanced": false, - "info": "", - "type": "langchain.callbacks.base.BaseCallbackHandler", - "list": true - }, - "llm": { - "required": true, - "placeholder": "", - "show": true, - "multiline": false, - "password": false, - "name": "llm", - "advanced": false, - "info": "", - "type": "BaseLanguageModel", - "list": false - }, - "memory": { - "required": false, - "placeholder": "", - "show": true, - "multiline": false, - "password": false, - "name": "memory", - "advanced": false, - "info": "", - "type": "BaseMemory", - "list": false - }, - "output_parser": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "output_parser", - "advanced": false, - "info": "", - "type": "BaseLLMOutputParser", - "list": false - }, - "prompt": { - "required": true, - "placeholder": "", - "show": true, - "multiline": false, - "password": false, - "name": "prompt", - "advanced": false, - "info": "", - "type": "BasePromptTemplate", - "list": false - }, - "llm_kwargs": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "llm_kwargs", - "advanced": false, - "info": "", - "type": "code", - "list": false - }, - "metadata": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "metadata", - "advanced": false, - "info": "", - "type": "code", - "list": false - }, - "output_key": { - "required": true, - "placeholder": "", - "show": true, - "multiline": false, - "value": "text", - "password": false, - "name": "output_key", - "advanced": true, - "info": "", - "type": "str", - "list": false - }, - "return_final_only": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "value": true, - "password": false, - "name": "return_final_only", - "advanced": false, - "info": "", - "type": "bool", - "list": false - }, - "tags": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "tags", - "advanced": false, - "info": "", - "type": "str", - "list": true - }, - "verbose": { - "required": false, - "placeholder": "", - "show": true, - "multiline": false, - "value": false, - "password": false, - "name": "verbose", - "advanced": true, - "info": "", - "type": "bool", - "list": false - }, - "_type": "LLMChain" - }, - "description": "Chain to run queries against LLMs.", - "base_classes": [ - "LLMChain", - "Chain", - "function" - ], - "display_name": "LLMChain", - "custom_fields": {}, - "output_types": [], - "documentation": "https://python.langchain.com/docs/modules/chains/foundational/llm_chain" - }, - "id": "LLMChain-bcX6V", - "value": null - }, - "selected": false, - "positionAbsolute": { - "x": 1421.0914439092537, - "y": 507.58787747224306 - } - }, - { - "width": 384, - "height": 641, - "id": "ChatOpenAI-uItND", - "type": "genericNode", - "position": { - "x": 894.4553556077062, - "y": 1222.7148725684212 - }, - "data": { - "type": "ChatOpenAI", - "node": { - "template": { - "callbacks": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "callbacks", - "advanced": false, - "info": "", - "type": "langchain.callbacks.base.BaseCallbackHandler", - "list": true - }, - "cache": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "cache", - "advanced": false, - "info": "", - "type": "bool", - "list": false - }, - "client": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "client", - "advanced": false, - "info": "", - "type": "Any", - "list": false - }, - "max_retries": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "value": 6, - "password": false, - "name": "max_retries", - "advanced": false, - "info": "", - "type": "int", - "list": false - }, - "max_tokens": { - "required": false, - "placeholder": "", - "show": true, - "multiline": false, - "password": true, - "name": "max_tokens", - "advanced": false, - "info": "", - "type": "int", - "list": false, - "value": "" - }, - "metadata": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "metadata", - "advanced": false, - "info": "", - "type": "code", - "list": false - }, - "model_kwargs": { - "required": false, - "placeholder": "", - "show": true, - "multiline": false, - "password": false, - "name": "model_kwargs", - "advanced": true, - "info": "", - "type": "code", - "list": false - }, - "model_name": { - "required": false, - "placeholder": "", - "show": true, - "multiline": false, - "value": "gpt-3.5-turbo-0613", - "password": false, - "options": [ - "gpt-3.5-turbo-0613", - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k-0613", - "gpt-3.5-turbo-16k", - "gpt-4-0613", - "gpt-4-32k-0613", - "gpt-4", - "gpt-4-32k" - ], - "name": "model_name", - "advanced": false, - "info": "", - "type": "str", - "list": true - }, - "n": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "value": 1, - "password": false, - "name": "n", - "advanced": false, - "info": "", - "type": "int", - "list": false - }, - "openai_api_base": { - "required": false, - "placeholder": "", - "show": true, - "multiline": false, - "password": false, - "name": "openai_api_base", - "display_name": "OpenAI API Base", - "advanced": false, - "info": "\nThe base URL of the OpenAI API. Defaults to https://api.openai.com/v1.\n\nYou can change this to use other APIs like JinaChat, LocalAI and Prem.\n", - "type": "str", - "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, - "info": "", - "type": "str", - "list": false - }, - "openai_organization": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "openai_organization", - "display_name": "OpenAI Organization", - "advanced": false, - "info": "", - "type": "str", - "list": false - }, - "openai_proxy": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "openai_proxy", - "display_name": "OpenAI Proxy", - "advanced": false, - "info": "", - "type": "str", - "list": false - }, - "request_timeout": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "request_timeout", - "advanced": false, - "info": "", - "type": "float", - "list": false - }, - "streaming": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "value": false, - "password": false, - "name": "streaming", - "advanced": false, - "info": "", - "type": "bool", - "list": false - }, - "tags": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "tags", - "advanced": false, - "info": "", - "type": "str", - "list": true - }, - "temperature": { - "required": false, - "placeholder": "", - "show": true, - "multiline": false, - "value": 0.7, - "password": false, - "name": "temperature", - "advanced": false, - "info": "", - "type": "float", - "list": false - }, - "tiktoken_model_name": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "password": false, - "name": "tiktoken_model_name", - "advanced": false, - "info": "", - "type": "str", - "list": false - }, - "verbose": { - "required": false, - "placeholder": "", - "show": false, - "multiline": false, - "value": false, - "password": false, - "name": "verbose", - "advanced": false, - "info": "", - "type": "bool", - "list": false - }, - "_type": "ChatOpenAI" - }, - "description": "Wrapper around OpenAI Chat large language models.", - "base_classes": [ - "BaseLanguageModel", - "ChatOpenAI", - "BaseChatModel", - "BaseLLM" - ], - "display_name": "ChatOpenAI", - "custom_fields": {}, - "output_types": [], - "documentation": "https://python.langchain.com/docs/modules/model_io/models/chat/integrations/openai" - }, - "id": "ChatOpenAI-uItND", - "value": null - }, - "selected": false, - "positionAbsolute": { - "x": 894.4553556077062, - "y": 1222.7148725684212 - }, - "dragging": false - }, - { - "width": 384, - "height": 379, - "id": "WebBaseLoader-opJSn", - "type": "genericNode", - "position": { - "x": -128.07242459332258, - "y": 402.7212726799363 - }, - "data": { - "type": "WebBaseLoader", - "node": { - "template": { - "metadata": { - "required": true, - "placeholder": "", - "show": true, - "multiline": false, - "value": "{}", - "password": false, - "name": "metadata", - "display_name": "Metadata", - "advanced": false, - "info": "", - "type": "code", - "list": false - }, - "web_path": { - "required": true, - "placeholder": "", - "show": true, - "multiline": false, - "value": "https://random-word-api.herokuapp.com/word", - "password": false, - "name": "web_path", - "display_name": "Web Page", - "advanced": false, - "info": "", - "type": "str", - "list": false - }, - "_type": "WebBaseLoader" - }, - "description": "Loader that uses urllib and beautiful soup to load webpages.", - "base_classes": [ - "Document" - ], - "display_name": "WebBaseLoader", - "custom_fields": {}, - "output_types": [ - "Document" - ], - "documentation": "https://python.langchain.com/docs/modules/data_connection/document_loaders/integrations/web_base" - }, - "id": "WebBaseLoader-opJSn", - "value": null - }, - "selected": false, - "positionAbsolute": { - "x": -128.07242459332258, - "y": 402.7212726799363 - }, - "dragging": false - } - ], - "edges": [ - { - "source": "HumanMessagePromptTemplate-mMv6B", - "sourceHandle": "HumanMessagePromptTemplate|HumanMessagePromptTemplate-mMv6B|BaseStringMessagePromptTemplate|HumanMessagePromptTemplate|BaseMessagePromptTemplate", - "target": "ChatPromptTemplate-PZUD8", - "targetHandle": "BaseMessagePromptTemplate|messages|ChatPromptTemplate-PZUD8", - "style": { - "stroke": "#555555" - }, - "className": "", - "animated": false, - "id": "reactflow__edge-HumanMessagePromptTemplate-mMv6BHumanMessagePromptTemplate|HumanMessagePromptTemplate-mMv6B|BaseMessagePromptTemplate|BaseStringMessagePromptTemplate|HumanMessagePromptTemplate-ChatPromptTemplate-PZUD8BaseMessagePromptTemplate|messages|ChatPromptTemplate-PZUD8", - "selected": false - }, - { - "source": "SystemMessagePromptTemplate-kIj8J", - "sourceHandle": "SystemMessagePromptTemplate|SystemMessagePromptTemplate-kIj8J|BaseStringMessagePromptTemplate|SystemMessagePromptTemplate|BaseMessagePromptTemplate", - "target": "ChatPromptTemplate-PZUD8", - "targetHandle": "BaseMessagePromptTemplate|messages|ChatPromptTemplate-PZUD8", - "style": { - "stroke": "#555555" - }, - "className": "", - "animated": false, - "id": "reactflow__edge-SystemMessagePromptTemplate-kIj8JSystemMessagePromptTemplate|SystemMessagePromptTemplate-kIj8J|SystemMessagePromptTemplate|BaseMessagePromptTemplate|BaseStringMessagePromptTemplate-ChatPromptTemplate-PZUD8BaseMessagePromptTemplate|messages|ChatPromptTemplate-PZUD8", - "selected": false - }, - { - "source": "ChatPromptTemplate-PZUD8", - "sourceHandle": "ChatPromptTemplate|ChatPromptTemplate-PZUD8|ChatPromptTemplate|BaseChatPromptTemplate|BasePromptTemplate", - "target": "LLMChain-bcX6V", - "targetHandle": "BasePromptTemplate|prompt|LLMChain-bcX6V", - "style": { - "stroke": "#555555" - }, - "className": "", - "animated": false, - "id": "reactflow__edge-ChatPromptTemplate-PZUD8ChatPromptTemplate|ChatPromptTemplate-PZUD8|ChatPromptTemplate|BaseChatPromptTemplate|BasePromptTemplate-LLMChain-bcX6VBasePromptTemplate|prompt|LLMChain-bcX6V", - "selected": false - }, - { - "source": "ChatOpenAI-uItND", - "sourceHandle": "ChatOpenAI|ChatOpenAI-uItND|BaseLanguageModel|ChatOpenAI|BaseChatModel|BaseLLM", - "target": "LLMChain-bcX6V", - "targetHandle": "BaseLanguageModel|llm|LLMChain-bcX6V", - "style": { - "stroke": "#555555" - }, - "className": "", - "animated": false, - "id": "reactflow__edge-ChatOpenAI-uItNDChatOpenAI|ChatOpenAI-uItND|BaseLanguageModel|BaseChatModel|ChatOpenAI|BaseLLM-LLMChain-bcX6VBaseLanguageModel|llm|LLMChain-bcX6V", - "selected": false - }, - { - "source": "WebBaseLoader-opJSn", - "sourceHandle": "WebBaseLoader|WebBaseLoader-opJSn|Document", - "target": "SystemMessagePromptTemplate-kIj8J", - "targetHandle": "Document;BaseOutputParser|type_of_assistant|SystemMessagePromptTemplate-kIj8J", - "style": { - "stroke": "#555555" - }, - "className": "", - "animated": false, - "id": "reactflow__edge-WebBaseLoader-opJSnWebBaseLoader|WebBaseLoader-opJSn|Document-SystemMessagePromptTemplate-kIj8JDocument;BaseOutputParser|type_of_assistant|SystemMessagePromptTemplate-kIj8J", - "selected": false - } - ], - "viewport": { - "x": 120.56985618341992, - "y": -181.38675798627423, - "zoom": 0.6776803408627091 - } - }, - "id": "24bf6330-1d24-43bb-a93f-2da64badfb67", - "style": null -} \ No newline at end of file +{"description":"This example showcases the use of SystemMessage and HumanMessage components to build a ChatPromptTemplate. A WebBaseLoader is used to pass a random word to a SystemMessage variable.","name":"SystemMessage Example","data":{"nodes":[{"width":384,"height":469,"id":"SystemMessagePromptTemplate-CgmeT","type":"genericNode","position":{"x":481.58711153746583,"y":370.2294992017135},"data":{"type":"SystemMessagePromptTemplate","node":{"template":{"additional_kwargs":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"additional_kwargs","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"prompt":{"required":true,"placeholder":"","show":true,"multiline":true,"value":"\nYou are a {type_of_assistant} that {behavior}\n","password":false,"name":"prompt","advanced":false,"dynamic":false,"info":"","type":"prompt","list":false},"_type":"SystemMessagePromptTemplate","type_of_assistant":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"type_of_assistant","display_name":"type_of_assistant","advanced":false,"input_types":["Document","BaseOutputParser"],"dynamic":false,"info":"","type":"str","list":false},"behavior":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"behavior","display_name":"behavior","advanced":false,"input_types":["Document","BaseOutputParser"],"dynamic":false,"info":"","type":"str","list":false}},"description":"System message prompt template.","base_classes":["SystemMessagePromptTemplate","BaseStringMessagePromptTemplate","BaseMessagePromptTemplate"],"name":"","display_name":"SystemMessagePromptTemplate","documentation":"https://python.langchain.com/docs/modules/model_io/models/chat/how_to/prompts","custom_fields":{"prompt":["type_of_assistant","behavior"],"":["type_of_assistant","behavior"]},"output_types":[],"field_formatters":{"formatters":{"openai_api_key":{}},"base_formatters":{"kwargs":{},"optional":{},"list":{},"dict":{},"union":{},"multiline":{},"show":{},"password":{},"default":{},"headers":{},"dict_code_file":{},"model_fields":{"MODEL_DICT":{"OpenAI":["text-davinci-003","text-davinci-002","text-curie-001","text-babbage-001","text-ada-001"],"ChatOpenAI":["gpt-3.5-turbo-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k-0613","gpt-3.5-turbo-16k","gpt-4-0613","gpt-4-32k-0613","gpt-4","gpt-4-32k"],"Anthropic":["claude-v1","claude-v1-100k","claude-instant-v1","claude-instant-v1-100k","claude-v1.3","claude-v1.3-100k","claude-v1.2","claude-v1.0","claude-instant-v1.1","claude-instant-v1.1-100k","claude-instant-v1.0"],"ChatAnthropic":["claude-v1","claude-v1-100k","claude-instant-v1","claude-instant-v1-100k","claude-v1.3","claude-v1.3-100k","claude-v1.2","claude-v1.0","claude-instant-v1.1","claude-instant-v1.1-100k","claude-instant-v1.0"]}}}},"beta":false,"error":null},"id":"SystemMessagePromptTemplate-CgmeT","value":null},"selected":false,"positionAbsolute":{"x":481.58711153746583,"y":370.2294992017135},"dragging":false},{"width":384,"height":395,"id":"HumanMessagePromptTemplate-a88V3","type":"genericNode","position":{"x":496.3774003836203,"y":867.5569603085166},"data":{"type":"HumanMessagePromptTemplate","node":{"template":{"additional_kwargs":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"additional_kwargs","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"prompt":{"required":true,"placeholder":"","show":true,"multiline":true,"value":"Human: {input}\nAssistant:","password":false,"name":"prompt","advanced":false,"dynamic":false,"info":"","type":"prompt","list":false},"_type":"HumanMessagePromptTemplate","input":{"required":false,"placeholder":"","show":true,"multiline":true,"value":"","password":false,"name":"input","display_name":"input","advanced":false,"input_types":["Document","BaseOutputParser"],"dynamic":false,"info":"","type":"str","list":false}},"description":"Human message prompt template. This is a message that is sent to the user.","base_classes":["BaseStringMessagePromptTemplate","BaseMessagePromptTemplate","HumanMessagePromptTemplate"],"name":"","display_name":"HumanMessagePromptTemplate","documentation":"https://python.langchain.com/docs/modules/model_io/models/chat/how_to/prompts","custom_fields":{"prompt":["input"],"":["input"]},"output_types":[],"field_formatters":{"formatters":{"openai_api_key":{}},"base_formatters":{"kwargs":{},"optional":{},"list":{},"dict":{},"union":{},"multiline":{},"show":{},"password":{},"default":{},"headers":{},"dict_code_file":{},"model_fields":{"MODEL_DICT":{"OpenAI":["text-davinci-003","text-davinci-002","text-curie-001","text-babbage-001","text-ada-001"],"ChatOpenAI":["gpt-3.5-turbo-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k-0613","gpt-3.5-turbo-16k","gpt-4-0613","gpt-4-32k-0613","gpt-4","gpt-4-32k"],"Anthropic":["claude-v1","claude-v1-100k","claude-instant-v1","claude-instant-v1-100k","claude-v1.3","claude-v1.3-100k","claude-v1.2","claude-v1.0","claude-instant-v1.1","claude-instant-v1.1-100k","claude-instant-v1.0"],"ChatAnthropic":["claude-v1","claude-v1-100k","claude-instant-v1","claude-instant-v1-100k","claude-v1.3","claude-v1.3-100k","claude-v1.2","claude-v1.0","claude-instant-v1.1","claude-instant-v1.1-100k","claude-instant-v1.0"]}}}},"beta":false,"error":null},"id":"HumanMessagePromptTemplate-a88V3","value":null},"selected":true,"positionAbsolute":{"x":496.3774003836203,"y":867.5569603085166},"dragging":false},{"width":384,"height":243,"id":"ChatPromptTemplate-LzD9S","type":"genericNode","position":{"x":921.018231417185,"y":598.9805680311384},"data":{"type":"ChatPromptTemplate","node":{"template":{"messages":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"messages","advanced":false,"dynamic":false,"info":"","type":"BaseMessagePromptTemplate","list":true},"output_parser":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"output_parser","advanced":false,"dynamic":false,"info":"","type":"BaseOutputParser","list":false},"input_variables":{"required":true,"placeholder":"","show":false,"multiline":false,"password":false,"name":"input_variables","advanced":false,"dynamic":false,"info":"","type":"str","list":true},"partial_variables":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"partial_variables","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"_type":"ChatPromptTemplate"},"description":"A prompt template for chat models.","base_classes":["ChatPromptTemplate","BaseChatPromptTemplate","BasePromptTemplate"],"display_name":"ChatPromptTemplate","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/models/chat/how_to/prompts"},"id":"ChatPromptTemplate-LzD9S","value":null},"selected":false,"positionAbsolute":{"x":921.018231417185,"y":598.9805680311384},"dragging":false},{"width":384,"height":339,"id":"LLMChain-T0qkT","type":"genericNode","position":{"x":1421.0914439092537,"y":507.58787747224306},"data":{"type":"LLMChain","node":{"template":{"callbacks":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"callbacks","advanced":false,"dynamic":false,"info":"","type":"langchain.callbacks.base.BaseCallbackHandler","list":true},"llm":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"llm","advanced":false,"dynamic":false,"info":"","type":"BaseLanguageModel","list":false},"memory":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"memory","advanced":false,"dynamic":false,"info":"","type":"BaseMemory","list":false},"output_parser":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"output_parser","advanced":false,"dynamic":false,"info":"","type":"BaseLLMOutputParser","list":false},"prompt":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"prompt","advanced":false,"dynamic":false,"info":"","type":"BasePromptTemplate","list":false},"llm_kwargs":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"llm_kwargs","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"metadata":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"metadata","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"output_key":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"text","password":false,"name":"output_key","advanced":true,"dynamic":false,"info":"","type":"str","list":false},"return_final_only":{"required":false,"placeholder":"","show":false,"multiline":false,"value":true,"password":false,"name":"return_final_only","advanced":false,"dynamic":false,"info":"","type":"bool","list":false},"tags":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"tags","advanced":false,"dynamic":false,"info":"","type":"str","list":true},"verbose":{"required":false,"placeholder":"","show":false,"multiline":false,"value":false,"password":false,"name":"verbose","advanced":true,"dynamic":false,"info":"","type":"bool","list":false},"_type":"LLMChain"},"description":"Chain to run queries against LLMs.","base_classes":["LLMChain","Chain","function"],"display_name":"LLMChain","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/chains/foundational/llm_chain"},"id":"LLMChain-T0qkT","value":null},"selected":false,"positionAbsolute":{"x":1421.0914439092537,"y":507.58787747224306}},{"width":384,"height":629,"id":"ChatOpenAI-oe8Cu","type":"genericNode","position":{"x":894.4553556077062,"y":1222.7148725684212},"data":{"type":"ChatOpenAI","node":{"template":{"callbacks":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"callbacks","advanced":false,"dynamic":false,"info":"","type":"langchain.callbacks.base.BaseCallbackHandler","list":true},"cache":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"cache","advanced":false,"dynamic":false,"info":"","type":"bool","list":false},"client":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"client","advanced":false,"dynamic":false,"info":"","type":"Any","list":false},"max_retries":{"required":false,"placeholder":"","show":false,"multiline":false,"value":6,"password":false,"name":"max_retries","advanced":false,"dynamic":false,"info":"","type":"int","list":false},"max_tokens":{"required":false,"placeholder":"","show":true,"multiline":false,"password":true,"name":"max_tokens","advanced":false,"dynamic":false,"info":"","type":"int","list":false,"value":""},"metadata":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"metadata","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"model_kwargs":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"model_kwargs","advanced":true,"dynamic":false,"info":"","type":"dict","list":false},"model_name":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"gpt-3.5-turbo-0613","password":false,"options":["gpt-3.5-turbo-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k-0613","gpt-3.5-turbo-16k","gpt-4-0613","gpt-4-32k-0613","gpt-4","gpt-4-32k"],"name":"model_name","advanced":false,"dynamic":false,"info":"","type":"str","list":true},"n":{"required":false,"placeholder":"","show":false,"multiline":false,"value":1,"password":false,"name":"n","advanced":false,"dynamic":false,"info":"","type":"int","list":false},"openai_api_base":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"openai_api_base","display_name":"OpenAI API Base","advanced":false,"dynamic":false,"info":"\nThe base URL of the OpenAI API. Defaults to https://api.openai.com/v1.\n\nYou can change this to use other APIs like JinaChat, LocalAI and Prem.\n","type":"str","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,"dynamic":false,"info":"","type":"str","list":false},"openai_organization":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"openai_organization","display_name":"OpenAI Organization","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"openai_proxy":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"openai_proxy","display_name":"OpenAI Proxy","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"request_timeout":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"request_timeout","advanced":false,"dynamic":false,"info":"","type":"float","list":false},"streaming":{"required":false,"placeholder":"","show":false,"multiline":false,"value":false,"password":false,"name":"streaming","advanced":false,"dynamic":false,"info":"","type":"bool","list":false},"tags":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"tags","advanced":false,"dynamic":false,"info":"","type":"str","list":true},"temperature":{"required":false,"placeholder":"","show":true,"multiline":false,"value":0.7,"password":false,"name":"temperature","advanced":false,"dynamic":false,"info":"","type":"float","list":false},"tiktoken_model_name":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"tiktoken_model_name","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"verbose":{"required":false,"placeholder":"","show":false,"multiline":false,"value":false,"password":false,"name":"verbose","advanced":false,"dynamic":false,"info":"","type":"bool","list":false},"_type":"ChatOpenAI"},"description":"`OpenAI` Chat large language models API.","base_classes":["BaseLanguageModel","BaseChatModel","ChatOpenAI","BaseLLM"],"display_name":"ChatOpenAI","custom_fields":{},"output_types":[],"documentation":"https://python.langchain.com/docs/modules/model_io/models/chat/integrations/openai"},"id":"ChatOpenAI-oe8Cu","value":null},"selected":false,"positionAbsolute":{"x":894.4553556077062,"y":1222.7148725684212},"dragging":false},{"width":384,"height":387,"id":"WebBaseLoader-F9By5","type":"genericNode","position":{"x":-131.97888013945914,"y":438.39785141786376},"data":{"type":"WebBaseLoader","node":{"template":{"metadata":{"required":false,"placeholder":"","show":true,"multiline":false,"value":[{"":""}],"password":false,"name":"metadata","display_name":"Metadata","advanced":false,"dynamic":false,"info":"","type":"dict","list":false},"web_path":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"https://random-word-api.herokuapp.com/word","password":false,"name":"web_path","display_name":"Web Page","advanced":false,"dynamic":false,"info":"","type":"str","list":false},"_type":"WebBaseLoader"},"description":"Load HTML pages using `urllib` and parse them with `BeautifulSoup'.","base_classes":["Document"],"display_name":"WebBaseLoader","custom_fields":{},"output_types":["Document"],"documentation":"https://python.langchain.com/docs/modules/data_connection/document_loaders/integrations/web_base"},"id":"WebBaseLoader-F9By5","value":null},"selected":false,"positionAbsolute":{"x":-131.97888013945914,"y":438.39785141786376},"dragging":false}],"edges":[{"source":"HumanMessagePromptTemplate-a88V3","sourceHandle":"HumanMessagePromptTemplate|HumanMessagePromptTemplate-a88V3|BaseStringMessagePromptTemplate|BaseMessagePromptTemplate|HumanMessagePromptTemplate","target":"ChatPromptTemplate-LzD9S","targetHandle":"BaseMessagePromptTemplate|messages|ChatPromptTemplate-LzD9S","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-HumanMessagePromptTemplate-a88V3HumanMessagePromptTemplate|HumanMessagePromptTemplate-a88V3|BaseStringMessagePromptTemplate|BaseMessagePromptTemplate|HumanMessagePromptTemplate-ChatPromptTemplate-LzD9SBaseMessagePromptTemplate|messages|ChatPromptTemplate-LzD9S","selected":false},{"source":"SystemMessagePromptTemplate-CgmeT","sourceHandle":"SystemMessagePromptTemplate|SystemMessagePromptTemplate-CgmeT|SystemMessagePromptTemplate|BaseStringMessagePromptTemplate|BaseMessagePromptTemplate","target":"ChatPromptTemplate-LzD9S","targetHandle":"BaseMessagePromptTemplate|messages|ChatPromptTemplate-LzD9S","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-SystemMessagePromptTemplate-CgmeTSystemMessagePromptTemplate|SystemMessagePromptTemplate-CgmeT|SystemMessagePromptTemplate|BaseStringMessagePromptTemplate|BaseMessagePromptTemplate-ChatPromptTemplate-LzD9SBaseMessagePromptTemplate|messages|ChatPromptTemplate-LzD9S","selected":false},{"source":"ChatPromptTemplate-LzD9S","sourceHandle":"ChatPromptTemplate|ChatPromptTemplate-LzD9S|ChatPromptTemplate|BaseChatPromptTemplate|BasePromptTemplate","target":"LLMChain-T0qkT","targetHandle":"BasePromptTemplate|prompt|LLMChain-T0qkT","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-ChatPromptTemplate-LzD9SChatPromptTemplate|ChatPromptTemplate-LzD9S|ChatPromptTemplate|BaseChatPromptTemplate|BasePromptTemplate-LLMChain-T0qkTBasePromptTemplate|prompt|LLMChain-T0qkT","selected":false},{"source":"ChatOpenAI-oe8Cu","sourceHandle":"ChatOpenAI|ChatOpenAI-oe8Cu|BaseLanguageModel|BaseChatModel|ChatOpenAI|BaseLLM","target":"LLMChain-T0qkT","targetHandle":"BaseLanguageModel|llm|LLMChain-T0qkT","style":{"stroke":"#555"},"className":"","animated":false,"id":"reactflow__edge-ChatOpenAI-oe8CuChatOpenAI|ChatOpenAI-oe8Cu|BaseLanguageModel|BaseChatModel|ChatOpenAI|BaseLLM-LLMChain-T0qkTBaseLanguageModel|llm|LLMChain-T0qkT","selected":false},{"source":"WebBaseLoader-F9By5","sourceHandle":"WebBaseLoader|WebBaseLoader-F9By5|Document","target":"SystemMessagePromptTemplate-CgmeT","targetHandle":"Document;BaseOutputParser|type_of_assistant|SystemMessagePromptTemplate-CgmeT","style":{"stroke":"#555"},"className":"stroke-foreground stroke-connection","animated":false,"id":"reactflow__edge-WebBaseLoader-F9By5WebBaseLoader|WebBaseLoader-F9By5|Document-SystemMessagePromptTemplate-CgmeTDocument;BaseOutputParser|type_of_assistant|SystemMessagePromptTemplate-CgmeT"}],"viewport":{"x":95.74623388390322,"y":-187.09106068475103,"zoom":0.49658325770708633}},"id":"695cb3c7-fe81-4a48-85a8-9ecd39fad43f"} \ No newline at end of file