update marketplace

This commit is contained in:
Henry 2023-05-17 16:04:55 +01:00
parent fef3d11cb6
commit 66872797a0
8 changed files with 737 additions and 765 deletions

View File

@ -3,7 +3,7 @@
"nodes": [ "nodes": [
{ {
"width": 300, "width": 300,
"height": 378, "height": 376,
"id": "recursiveCharacterTextSplitter_1", "id": "recursiveCharacterTextSplitter_1",
"position": { "position": {
"x": 422.81091375202413, "x": 422.81091375202413,
@ -60,7 +60,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 361, "height": 392,
"id": "textFile_1", "id": "textFile_1",
"position": { "position": {
"x": 810.6456923854021, "x": 810.6456923854021,
@ -124,152 +124,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 526, "height": 330,
"id": "openAI_1",
"position": {
"x": 1195.6182217299724,
"y": -12.958591115085468
},
"type": "customNode",
"data": {
"id": "openAI_1",
"label": "OpenAI",
"name": "openAI",
"type": "OpenAI",
"baseClasses": ["OpenAI", "BaseLLM", "BaseLanguageModel", "BaseLangChain"],
"category": "LLMs",
"description": "Wrapper around OpenAI large language models",
"inputParams": [
{
"label": "OpenAI Api Key",
"name": "openAIApiKey",
"type": "password",
"id": "openAI_1-input-openAIApiKey-password"
},
{
"label": "Model Name",
"name": "modelName",
"type": "options",
"options": [
{
"label": "text-davinci-003",
"name": "text-davinci-003"
},
{
"label": "text-davinci-002",
"name": "text-davinci-002"
},
{
"label": "text-curie-001",
"name": "text-curie-001"
},
{
"label": "text-babbage-001",
"name": "text-babbage-001"
}
],
"default": "text-davinci-003",
"optional": true,
"id": "openAI_1-input-modelName-options"
},
{
"label": "Temperature",
"name": "temperature",
"type": "number",
"default": 0.7,
"optional": true,
"id": "openAI_1-input-temperature-number"
},
{
"label": "Max Tokens",
"name": "maxTokens",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-maxTokens-number"
},
{
"label": "Top Probability",
"name": "topP",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-topP-number"
},
{
"label": "Best Of",
"name": "bestOf",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-bestOf-number"
},
{
"label": "Frequency Penalty",
"name": "frequencyPenalty",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-frequencyPenalty-number"
},
{
"label": "Presence Penalty",
"name": "presencePenalty",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-presencePenalty-number"
},
{
"label": "Batch Size",
"name": "batchSize",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-batchSize-number"
},
{
"label": "Timeout",
"name": "timeout",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-timeout-number"
}
],
"inputAnchors": [],
"inputs": {
"modelName": "text-davinci-003",
"temperature": 0.7,
"maxTokens": "",
"topP": "",
"bestOf": "",
"frequencyPenalty": "",
"presencePenalty": "",
"batchSize": "",
"timeout": ""
},
"outputAnchors": [
{
"id": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"name": "openAI",
"label": "OpenAI",
"type": "OpenAI | BaseLLM | BaseLanguageModel | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"positionAbsolute": {
"x": 1195.6182217299724,
"y": -12.958591115085468
},
"selected": false,
"dragging": false
},
{
"width": 300,
"height": 331,
"id": "openAIEmbeddings_1", "id": "openAIEmbeddings_1",
"position": { "position": {
"x": 817.2208258595176, "x": 817.2208258595176,
@ -342,7 +197,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 703, "height": 702,
"id": "pineconeUpsert_1", "id": "pineconeUpsert_1",
"position": { "position": {
"x": 1201.3427203075867, "x": 1201.3427203075867,
@ -404,8 +259,8 @@
"document": ["{{textFile_1.data.instance}}"], "document": ["{{textFile_1.data.instance}}"],
"embeddings": "{{openAIEmbeddings_1.data.instance}}", "embeddings": "{{openAIEmbeddings_1.data.instance}}",
"pineconeEnv": "us-west4-gcp", "pineconeEnv": "us-west4-gcp",
"pineconeIndex": "", "pineconeIndex": "myindex",
"pineconeNamespace": "" "pineconeNamespace": "mynamespace"
}, },
"outputAnchors": [ "outputAnchors": [
{ {
@ -443,15 +298,146 @@
}, },
{ {
"width": 300, "width": 300,
"height": 281, "height": 524,
"id": "conversationalRetrievalQAChain_1", "id": "chatOpenAI_0",
"position": { "position": {
"x": 1672.1827283163739, "x": 1200.565568471151,
"y": 297.5954567204975 "y": -33.648143275380406
}, },
"type": "customNode", "type": "customNode",
"data": { "data": {
"id": "conversationalRetrievalQAChain_1", "id": "chatOpenAI_0",
"label": "ChatOpenAI",
"name": "chatOpenAI",
"type": "ChatOpenAI",
"baseClasses": ["ChatOpenAI", "BaseChatModel", "BaseLanguageModel", "BaseLangChain"],
"category": "Chat Models",
"description": "Wrapper around OpenAI large language models that use the Chat endpoint",
"inputParams": [
{
"label": "OpenAI Api Key",
"name": "openAIApiKey",
"type": "password",
"id": "chatOpenAI_0-input-openAIApiKey-password"
},
{
"label": "Model Name",
"name": "modelName",
"type": "options",
"options": [
{
"label": "gpt-4",
"name": "gpt-4"
},
{
"label": "gpt-4-0314",
"name": "gpt-4-0314"
},
{
"label": "gpt-4-32k-0314",
"name": "gpt-4-32k-0314"
},
{
"label": "gpt-3.5-turbo",
"name": "gpt-3.5-turbo"
},
{
"label": "gpt-3.5-turbo-0301",
"name": "gpt-3.5-turbo-0301"
}
],
"default": "gpt-3.5-turbo",
"optional": true,
"id": "chatOpenAI_0-input-modelName-options"
},
{
"label": "Temperature",
"name": "temperature",
"type": "number",
"default": 0.9,
"optional": true,
"id": "chatOpenAI_0-input-temperature-number"
},
{
"label": "Max Tokens",
"name": "maxTokens",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-maxTokens-number"
},
{
"label": "Top Probability",
"name": "topP",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-topP-number"
},
{
"label": "Frequency Penalty",
"name": "frequencyPenalty",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-frequencyPenalty-number"
},
{
"label": "Presence Penalty",
"name": "presencePenalty",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-presencePenalty-number"
},
{
"label": "Timeout",
"name": "timeout",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-timeout-number"
}
],
"inputAnchors": [],
"inputs": {
"modelName": "gpt-3.5-turbo",
"temperature": "0.5",
"maxTokens": "",
"topP": "",
"frequencyPenalty": "",
"presencePenalty": "",
"timeout": ""
},
"outputAnchors": [
{
"id": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|BaseLangChain",
"name": "chatOpenAI",
"label": "ChatOpenAI",
"type": "ChatOpenAI | BaseChatModel | BaseLanguageModel | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"selected": false,
"positionAbsolute": {
"x": 1200.565568471151,
"y": -33.648143275380406
},
"dragging": false
},
{
"width": 300,
"height": 280,
"id": "conversationalRetrievalQAChain_0",
"position": {
"x": 1627.1855024401737,
"y": 394.42287890442145
},
"type": "customNode",
"data": {
"id": "conversationalRetrievalQAChain_0",
"label": "Conversational Retrieval QA Chain", "label": "Conversational Retrieval QA Chain",
"name": "conversationalRetrievalQAChain", "name": "conversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain", "type": "ConversationalRetrievalQAChain",
@ -461,25 +447,25 @@
"inputParams": [], "inputParams": [],
"inputAnchors": [ "inputAnchors": [
{ {
"label": "LLM", "label": "Language Model",
"name": "llm", "name": "model",
"type": "BaseLLM", "type": "BaseLanguageModel",
"id": "conversationalRetrievalQAChain_1-input-llm-BaseLLM" "id": "conversationalRetrievalQAChain_0-input-model-BaseLanguageModel"
}, },
{ {
"label": "Vector Store Retriever", "label": "Vector Store Retriever",
"name": "vectorStoreRetriever", "name": "vectorStoreRetriever",
"type": "BaseRetriever", "type": "BaseRetriever",
"id": "conversationalRetrievalQAChain_1-input-vectorStoreRetriever-BaseRetriever" "id": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever"
} }
], ],
"inputs": { "inputs": {
"llm": "{{openAI_1.data.instance}}", "model": "{{chatOpenAI_0.data.instance}}",
"vectorStoreRetriever": "{{pineconeUpsert_1.data.instance}}" "vectorStoreRetriever": "{{pineconeUpsert_1.data.instance}}"
}, },
"outputAnchors": [ "outputAnchors": [
{ {
"id": "conversationalRetrievalQAChain_1-output-conversationalRetrievalQAChain-ConversationalRetrievalQAChain|BaseChain|BaseLangChain", "id": "conversationalRetrievalQAChain_0-output-conversationalRetrievalQAChain-ConversationalRetrievalQAChain|BaseChain|BaseLangChain",
"name": "conversationalRetrievalQAChain", "name": "conversationalRetrievalQAChain",
"label": "ConversationalRetrievalQAChain", "label": "ConversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain | BaseChain | BaseLangChain" "type": "ConversationalRetrievalQAChain | BaseChain | BaseLangChain"
@ -488,11 +474,11 @@
"outputs": {}, "outputs": {},
"selected": false "selected": false
}, },
"positionAbsolute": {
"x": 1672.1827283163739,
"y": 297.5954567204975
},
"selected": false, "selected": false,
"positionAbsolute": {
"x": 1627.1855024401737,
"y": 394.42287890442145
},
"dragging": false "dragging": false
} }
], ],
@ -531,12 +517,12 @@
} }
}, },
{ {
"source": "openAI_1", "source": "chatOpenAI_0",
"sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain", "sourceHandle": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|BaseLangChain",
"target": "conversationalRetrievalQAChain_1", "target": "conversationalRetrievalQAChain_0",
"targetHandle": "conversationalRetrievalQAChain_1-input-llm-BaseLLM", "targetHandle": "conversationalRetrievalQAChain_0-input-model-BaseLanguageModel",
"type": "buttonedge", "type": "buttonedge",
"id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-conversationalRetrievalQAChain_1-conversationalRetrievalQAChain_1-input-llm-BaseLLM", "id": "chatOpenAI_0-chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|BaseLangChain-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-model-BaseLanguageModel",
"data": { "data": {
"label": "" "label": ""
} }
@ -544,10 +530,10 @@
{ {
"source": "pineconeUpsert_1", "source": "pineconeUpsert_1",
"sourceHandle": "pineconeUpsert_1-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever", "sourceHandle": "pineconeUpsert_1-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever",
"target": "conversationalRetrievalQAChain_1", "target": "conversationalRetrievalQAChain_0",
"targetHandle": "conversationalRetrievalQAChain_1-input-vectorStoreRetriever-BaseRetriever", "targetHandle": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever",
"type": "buttonedge", "type": "buttonedge",
"id": "pineconeUpsert_1-pineconeUpsert_1-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever-conversationalRetrievalQAChain_1-conversationalRetrievalQAChain_1-input-vectorStoreRetriever-BaseRetriever", "id": "pineconeUpsert_1-pineconeUpsert_1-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever",
"data": { "data": {
"label": "" "label": ""
} }

View File

@ -3,60 +3,7 @@
"nodes": [ "nodes": [
{ {
"width": 300, "width": 300,
"height": 281, "height": 376,
"id": "conversationalRetrievalQAChain_0",
"position": {
"x": 1658.7012040564862,
"y": 197.0636463189023
},
"type": "customNode",
"data": {
"id": "conversationalRetrievalQAChain_0",
"label": "Conversational Retrieval QA Chain",
"name": "conversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain",
"baseClasses": ["ConversationalRetrievalQAChain", "BaseChain"],
"category": "Chains",
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
"inputParams": [],
"inputAnchors": [
{
"label": "LLM",
"name": "llm",
"type": "BaseLLM",
"id": "conversationalRetrievalQAChain_0-input-llm-BaseLLM"
},
{
"label": "Vector Store Retriever",
"name": "vectorStoreRetriever",
"type": "BaseRetriever",
"id": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever"
}
],
"inputs": {
"llm": "{{openAI_1.data.instance}}",
"vectorStoreRetriever": "{{pineconeUpsert_1.data.instance}}"
},
"outputAnchors": [
{
"id": "conversationalRetrievalQAChain_0-output-conversationalRetrievalQAChain-ConversationalRetrievalQAChain|BaseChain",
"name": "conversationalRetrievalQAChain",
"label": "ConversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain | BaseChain"
}
],
"selected": false
},
"selected": false,
"positionAbsolute": {
"x": 1658.7012040564862,
"y": 197.0636463189023
},
"dragging": false
},
{
"width": 300,
"height": 378,
"id": "recursiveCharacterTextSplitter_1", "id": "recursiveCharacterTextSplitter_1",
"position": { "position": {
"x": 447.1038086695898, "x": 447.1038086695898,
@ -113,7 +60,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 527, "height": 578,
"id": "github_1", "id": "github_1",
"position": { "position": {
"x": 836.9660489009947, "x": 836.9660489009947,
@ -194,152 +141,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 526, "height": 330,
"id": "openAI_1",
"position": {
"x": 1259.794581504908,
"y": -184.79344614581797
},
"type": "customNode",
"data": {
"id": "openAI_1",
"label": "OpenAI",
"name": "openAI",
"type": "OpenAI",
"baseClasses": ["OpenAI", "BaseLLM", "BaseLanguageModel", "BaseLangChain"],
"category": "LLMs",
"description": "Wrapper around OpenAI large language models",
"inputParams": [
{
"label": "OpenAI Api Key",
"name": "openAIApiKey",
"type": "password",
"id": "openAI_1-input-openAIApiKey-password"
},
{
"label": "Model Name",
"name": "modelName",
"type": "options",
"options": [
{
"label": "text-davinci-003",
"name": "text-davinci-003"
},
{
"label": "text-davinci-002",
"name": "text-davinci-002"
},
{
"label": "text-curie-001",
"name": "text-curie-001"
},
{
"label": "text-babbage-001",
"name": "text-babbage-001"
}
],
"default": "text-davinci-003",
"optional": true,
"id": "openAI_1-input-modelName-options"
},
{
"label": "Temperature",
"name": "temperature",
"type": "number",
"default": 0.7,
"optional": true,
"id": "openAI_1-input-temperature-number"
},
{
"label": "Max Tokens",
"name": "maxTokens",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-maxTokens-number"
},
{
"label": "Top Probability",
"name": "topP",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-topP-number"
},
{
"label": "Best Of",
"name": "bestOf",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-bestOf-number"
},
{
"label": "Frequency Penalty",
"name": "frequencyPenalty",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-frequencyPenalty-number"
},
{
"label": "Presence Penalty",
"name": "presencePenalty",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-presencePenalty-number"
},
{
"label": "Batch Size",
"name": "batchSize",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-batchSize-number"
},
{
"label": "Timeout",
"name": "timeout",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "openAI_1-input-timeout-number"
}
],
"inputAnchors": [],
"inputs": {
"modelName": "text-davinci-003",
"temperature": 0.7,
"maxTokens": "",
"topP": "",
"bestOf": "",
"frequencyPenalty": "",
"presencePenalty": "",
"batchSize": "",
"timeout": ""
},
"outputAnchors": [
{
"id": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"name": "openAI",
"label": "OpenAI",
"type": "OpenAI | BaseLLM | BaseLanguageModel | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"positionAbsolute": {
"x": 1259.794581504908,
"y": -184.79344614581797
},
"selected": false,
"dragging": false
},
{
"width": 300,
"height": 331,
"id": "openAIEmbeddings_1", "id": "openAIEmbeddings_1",
"position": { "position": {
"x": 833.4085562012468, "x": 833.4085562012468,
@ -412,7 +214,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 703, "height": 702,
"id": "pineconeUpsert_1", "id": "pineconeUpsert_1",
"position": { "position": {
"x": 1268.7946529279823, "x": 1268.7946529279823,
@ -474,8 +276,8 @@
"document": ["{{github_1.data.instance}}"], "document": ["{{github_1.data.instance}}"],
"embeddings": "{{openAIEmbeddings_1.data.instance}}", "embeddings": "{{openAIEmbeddings_1.data.instance}}",
"pineconeEnv": "us-west4-gcp", "pineconeEnv": "us-west4-gcp",
"pineconeIndex": "", "pineconeIndex": "myindex",
"pineconeNamespace": "" "pineconeNamespace": "mynamespace"
}, },
"outputAnchors": [ "outputAnchors": [
{ {
@ -510,6 +312,191 @@
"x": 1268.7946529279823, "x": 1268.7946529279823,
"y": 382.77997896801634 "y": 382.77997896801634
} }
},
{
"width": 300,
"height": 524,
"id": "chatOpenAI_0",
"position": {
"x": 1271.1300438358664,
"y": -169.75707425097968
},
"type": "customNode",
"data": {
"id": "chatOpenAI_0",
"label": "ChatOpenAI",
"name": "chatOpenAI",
"type": "ChatOpenAI",
"baseClasses": ["ChatOpenAI", "BaseChatModel", "BaseLanguageModel", "BaseLangChain"],
"category": "Chat Models",
"description": "Wrapper around OpenAI large language models that use the Chat endpoint",
"inputParams": [
{
"label": "OpenAI Api Key",
"name": "openAIApiKey",
"type": "password",
"id": "chatOpenAI_0-input-openAIApiKey-password"
},
{
"label": "Model Name",
"name": "modelName",
"type": "options",
"options": [
{
"label": "gpt-4",
"name": "gpt-4"
},
{
"label": "gpt-4-0314",
"name": "gpt-4-0314"
},
{
"label": "gpt-4-32k-0314",
"name": "gpt-4-32k-0314"
},
{
"label": "gpt-3.5-turbo",
"name": "gpt-3.5-turbo"
},
{
"label": "gpt-3.5-turbo-0301",
"name": "gpt-3.5-turbo-0301"
}
],
"default": "gpt-3.5-turbo",
"optional": true,
"id": "chatOpenAI_0-input-modelName-options"
},
{
"label": "Temperature",
"name": "temperature",
"type": "number",
"default": 0.9,
"optional": true,
"id": "chatOpenAI_0-input-temperature-number"
},
{
"label": "Max Tokens",
"name": "maxTokens",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-maxTokens-number"
},
{
"label": "Top Probability",
"name": "topP",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-topP-number"
},
{
"label": "Frequency Penalty",
"name": "frequencyPenalty",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-frequencyPenalty-number"
},
{
"label": "Presence Penalty",
"name": "presencePenalty",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-presencePenalty-number"
},
{
"label": "Timeout",
"name": "timeout",
"type": "number",
"optional": true,
"additionalParams": true,
"id": "chatOpenAI_0-input-timeout-number"
}
],
"inputAnchors": [],
"inputs": {
"modelName": "gpt-3.5-turbo",
"temperature": "0.5",
"maxTokens": "",
"topP": "",
"frequencyPenalty": "",
"presencePenalty": "",
"timeout": ""
},
"outputAnchors": [
{
"id": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|BaseLangChain",
"name": "chatOpenAI",
"label": "ChatOpenAI",
"type": "ChatOpenAI | BaseChatModel | BaseLanguageModel | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"selected": false,
"positionAbsolute": {
"x": 1271.1300438358664,
"y": -169.75707425097968
},
"dragging": false
},
{
"width": 300,
"height": 280,
"id": "conversationalRetrievalQAChain_0",
"position": {
"x": 1653.6177539108153,
"y": 266.4856653480158
},
"type": "customNode",
"data": {
"id": "conversationalRetrievalQAChain_0",
"label": "Conversational Retrieval QA Chain",
"name": "conversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain",
"baseClasses": ["ConversationalRetrievalQAChain", "BaseChain", "BaseLangChain"],
"category": "Chains",
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
"inputParams": [],
"inputAnchors": [
{
"label": "Language Model",
"name": "model",
"type": "BaseLanguageModel",
"id": "conversationalRetrievalQAChain_0-input-model-BaseLanguageModel"
},
{
"label": "Vector Store Retriever",
"name": "vectorStoreRetriever",
"type": "BaseRetriever",
"id": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever"
}
],
"inputs": {
"model": "{{chatOpenAI_0.data.instance}}",
"vectorStoreRetriever": "{{pineconeUpsert_1.data.instance}}"
},
"outputAnchors": [
{
"id": "conversationalRetrievalQAChain_0-output-conversationalRetrievalQAChain-ConversationalRetrievalQAChain|BaseChain|BaseLangChain",
"name": "conversationalRetrievalQAChain",
"label": "ConversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain | BaseChain | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"selected": false,
"positionAbsolute": {
"x": 1653.6177539108153,
"y": 266.4856653480158
},
"dragging": false
} }
], ],
"edges": [ "edges": [
@ -547,12 +534,12 @@
} }
}, },
{ {
"source": "openAI_1", "source": "chatOpenAI_0",
"sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain", "sourceHandle": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|BaseLangChain",
"target": "conversationalRetrievalQAChain_0", "target": "conversationalRetrievalQAChain_0",
"targetHandle": "conversationalRetrievalQAChain_0-input-llm-BaseLLM", "targetHandle": "conversationalRetrievalQAChain_0-input-model-BaseLanguageModel",
"type": "buttonedge", "type": "buttonedge",
"id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-llm-BaseLLM", "id": "chatOpenAI_0-chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|BaseLangChain-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-model-BaseLanguageModel",
"data": { "data": {
"label": "" "label": ""
} }

View File

@ -3,7 +3,7 @@
"nodes": [ "nodes": [
{ {
"width": 300, "width": 300,
"height": 279, "height": 278,
"id": "serpAPI_1", "id": "serpAPI_1",
"position": { "position": {
"x": 312.0655985817535, "x": 312.0655985817535,
@ -86,7 +86,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 526, "height": 524,
"id": "openAI_1", "id": "openAI_1",
"position": { "position": {
"x": 663.1307301893027, "x": 663.1307301893027,
@ -231,15 +231,15 @@
}, },
{ {
"width": 300, "width": 300,
"height": 281, "height": 280,
"id": "mrklAgentLLM_1", "id": "mrklAgentLLM_0",
"position": { "position": {
"x": 1022.2432000571966, "x": 1055.3271135179489,
"y": 259.96894043226575 "y": 245.36098016819074
}, },
"type": "customNode", "type": "customNode",
"data": { "data": {
"id": "mrklAgentLLM_1", "id": "mrklAgentLLM_0",
"label": "MRKL Agent for LLMs", "label": "MRKL Agent for LLMs",
"name": "mrklAgentLLM", "name": "mrklAgentLLM",
"type": "AgentExecutor", "type": "AgentExecutor",
@ -253,13 +253,13 @@
"name": "tools", "name": "tools",
"type": "Tool", "type": "Tool",
"list": true, "list": true,
"id": "mrklAgentLLM_1-input-tools-Tool" "id": "mrklAgentLLM_0-input-tools-Tool"
}, },
{ {
"label": "LLM Model", "label": "Language Model",
"name": "model", "name": "model",
"type": "BaseLLM", "type": "BaseLanguageModel",
"id": "mrklAgentLLM_1-input-model-BaseLLM" "id": "mrklAgentLLM_0-input-model-BaseLanguageModel"
} }
], ],
"inputs": { "inputs": {
@ -268,7 +268,7 @@
}, },
"outputAnchors": [ "outputAnchors": [
{ {
"id": "mrklAgentLLM_1-output-mrklAgentLLM-AgentExecutor|BaseChain|BaseLangChain", "id": "mrklAgentLLM_0-output-mrklAgentLLM-AgentExecutor|BaseChain|BaseLangChain",
"name": "mrklAgentLLM", "name": "mrklAgentLLM",
"label": "AgentExecutor", "label": "AgentExecutor",
"type": "AgentExecutor | BaseChain | BaseLangChain" "type": "AgentExecutor | BaseChain | BaseLangChain"
@ -277,33 +277,22 @@
"outputs": {}, "outputs": {},
"selected": false "selected": false
}, },
"positionAbsolute": {
"x": 1022.2432000571966,
"y": 259.96894043226575
},
"selected": false, "selected": false,
"positionAbsolute": {
"x": 1055.3271135179489,
"y": 245.36098016819074
},
"dragging": false "dragging": false
} }
], ],
"edges": [ "edges": [
{
"source": "openAI_1",
"sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "mrklAgentLLM_1",
"targetHandle": "mrklAgentLLM_1-input-model-BaseLLM",
"type": "buttonedge",
"id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-mrklAgentLLM_1-mrklAgentLLM_1-input-model-BaseLLM",
"data": {
"label": ""
}
},
{ {
"source": "calculator_1", "source": "calculator_1",
"sourceHandle": "calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain", "sourceHandle": "calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_1", "target": "mrklAgentLLM_0",
"targetHandle": "mrklAgentLLM_1-input-tools-Tool", "targetHandle": "mrklAgentLLM_0-input-tools-Tool",
"type": "buttonedge", "type": "buttonedge",
"id": "calculator_1-calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_1-mrklAgentLLM_1-input-tools-Tool", "id": "calculator_1-calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-tools-Tool",
"data": { "data": {
"label": "" "label": ""
} }
@ -311,10 +300,21 @@
{ {
"source": "serpAPI_1", "source": "serpAPI_1",
"sourceHandle": "serpAPI_1-output-serpAPI-SerpAPI|Tool|StructuredTool|BaseLangChain", "sourceHandle": "serpAPI_1-output-serpAPI-SerpAPI|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_1", "target": "mrklAgentLLM_0",
"targetHandle": "mrklAgentLLM_1-input-tools-Tool", "targetHandle": "mrklAgentLLM_0-input-tools-Tool",
"type": "buttonedge", "type": "buttonedge",
"id": "serpAPI_1-serpAPI_1-output-serpAPI-SerpAPI|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_1-mrklAgentLLM_1-input-tools-Tool", "id": "serpAPI_1-serpAPI_1-output-serpAPI-SerpAPI|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-tools-Tool",
"data": {
"label": ""
}
},
{
"source": "openAI_1",
"sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "mrklAgentLLM_0",
"targetHandle": "mrklAgentLLM_0-input-model-BaseLanguageModel",
"type": "buttonedge",
"id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-model-BaseLanguageModel",
"data": { "data": {
"label": "" "label": ""
} }

View File

@ -3,7 +3,7 @@
"nodes": [ "nodes": [
{ {
"width": 300, "width": 300,
"height": 523, "height": 524,
"id": "openAI_1", "id": "openAI_1",
"position": { "position": {
"x": 1195.6182217299724, "x": 1195.6182217299724,
@ -148,7 +148,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 329, "height": 330,
"id": "openAIEmbeddings_1", "id": "openAIEmbeddings_1",
"position": { "position": {
"x": 777.5098693425334, "x": 777.5098693425334,
@ -221,61 +221,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 279, "height": 703,
"id": "conversationalRetrievalQAChain_1",
"position": {
"x": 1635.097372263702,
"y": 412.82495588415594
},
"type": "customNode",
"data": {
"id": "conversationalRetrievalQAChain_1",
"label": "Conversational Retrieval QA Chain",
"name": "conversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain",
"baseClasses": ["ConversationalRetrievalQAChain", "BaseChain", "BaseLangChain"],
"category": "Chains",
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
"inputParams": [],
"inputAnchors": [
{
"label": "LLM",
"name": "llm",
"type": "BaseLLM",
"id": "conversationalRetrievalQAChain_1-input-llm-BaseLLM"
},
{
"label": "Vector Store Retriever",
"name": "vectorStoreRetriever",
"type": "BaseRetriever",
"id": "conversationalRetrievalQAChain_1-input-vectorStoreRetriever-BaseRetriever"
}
],
"inputs": {
"llm": "{{openAI_1.data.instance}}",
"vectorStoreRetriever": "{{pineconeExistingIndex_0.data.instance}}"
},
"outputAnchors": [
{
"id": "conversationalRetrievalQAChain_1-output-conversationalRetrievalQAChain-ConversationalRetrievalQAChain|BaseChain|BaseLangChain",
"name": "conversationalRetrievalQAChain",
"label": "ConversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain | BaseChain | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"positionAbsolute": {
"x": 1635.097372263702,
"y": 412.82495588415594
},
"selected": false,
"dragging": false
},
{
"width": 300,
"height": 702,
"id": "pineconeExistingIndex_0", "id": "pineconeExistingIndex_0",
"position": { "position": {
"x": 1187.519066203033, "x": 1187.519066203033,
@ -374,20 +320,63 @@
"y": 542.6635399602128 "y": 542.6635399602128
}, },
"dragging": false "dragging": false
},
{
"width": 300,
"height": 280,
"id": "conversationalRetrievalQAChain_0",
"position": {
"x": 1585.900129303412,
"y": 405.9784391258126
},
"type": "customNode",
"data": {
"id": "conversationalRetrievalQAChain_0",
"label": "Conversational Retrieval QA Chain",
"name": "conversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain",
"baseClasses": ["ConversationalRetrievalQAChain", "BaseChain", "BaseLangChain"],
"category": "Chains",
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
"inputParams": [],
"inputAnchors": [
{
"label": "Language Model",
"name": "model",
"type": "BaseLanguageModel",
"id": "conversationalRetrievalQAChain_0-input-model-BaseLanguageModel"
},
{
"label": "Vector Store Retriever",
"name": "vectorStoreRetriever",
"type": "BaseRetriever",
"id": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever"
}
],
"inputs": {
"model": "{{openAI_1.data.instance}}",
"vectorStoreRetriever": "{{pineconeExistingIndex_0.data.instance}}"
},
"outputAnchors": [
{
"id": "conversationalRetrievalQAChain_0-output-conversationalRetrievalQAChain-ConversationalRetrievalQAChain|BaseChain|BaseLangChain",
"name": "conversationalRetrievalQAChain",
"label": "ConversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain | BaseChain | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"selected": false,
"positionAbsolute": {
"x": 1585.900129303412,
"y": 405.9784391258126
},
"dragging": false
} }
], ],
"edges": [ "edges": [
{
"source": "openAI_1",
"sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "conversationalRetrievalQAChain_1",
"targetHandle": "conversationalRetrievalQAChain_1-input-llm-BaseLLM",
"type": "buttonedge",
"id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-conversationalRetrievalQAChain_1-conversationalRetrievalQAChain_1-input-llm-BaseLLM",
"data": {
"label": ""
}
},
{ {
"source": "openAIEmbeddings_1", "source": "openAIEmbeddings_1",
"sourceHandle": "openAIEmbeddings_1-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings", "sourceHandle": "openAIEmbeddings_1-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings",
@ -399,13 +388,24 @@
"label": "" "label": ""
} }
}, },
{
"source": "openAI_1",
"sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "conversationalRetrievalQAChain_0",
"targetHandle": "conversationalRetrievalQAChain_0-input-model-BaseLanguageModel",
"type": "buttonedge",
"id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-model-BaseLanguageModel",
"data": {
"label": ""
}
},
{ {
"source": "pineconeExistingIndex_0", "source": "pineconeExistingIndex_0",
"sourceHandle": "pineconeExistingIndex_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever", "sourceHandle": "pineconeExistingIndex_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever",
"target": "conversationalRetrievalQAChain_1", "target": "conversationalRetrievalQAChain_0",
"targetHandle": "conversationalRetrievalQAChain_1-input-vectorStoreRetriever-BaseRetriever", "targetHandle": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever",
"type": "buttonedge", "type": "buttonedge",
"id": "pineconeExistingIndex_0-pineconeExistingIndex_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever-conversationalRetrievalQAChain_1-conversationalRetrievalQAChain_1-input-vectorStoreRetriever-BaseRetriever", "id": "pineconeExistingIndex_0-pineconeExistingIndex_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever",
"data": { "data": {
"label": "" "label": ""
} }

View File

@ -60,7 +60,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 523, "height": 524,
"id": "openAI_1", "id": "openAI_1",
"position": { "position": {
"x": 1159.184721109528, "x": 1159.184721109528,
@ -205,7 +205,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 329, "height": 330,
"id": "openAIEmbeddings_1", "id": "openAIEmbeddings_1",
"position": { "position": {
"x": 749.4044250705479, "x": 749.4044250705479,
@ -278,61 +278,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 279, "height": 392,
"id": "conversationalRetrievalQAChain_1",
"position": {
"x": 1551.758177447552,
"y": 367.847388647512
},
"type": "customNode",
"data": {
"id": "conversationalRetrievalQAChain_1",
"label": "Conversational Retrieval QA Chain",
"name": "conversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain",
"baseClasses": ["ConversationalRetrievalQAChain", "BaseChain", "BaseLangChain"],
"category": "Chains",
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
"inputParams": [],
"inputAnchors": [
{
"label": "LLM",
"name": "llm",
"type": "BaseLLM",
"id": "conversationalRetrievalQAChain_1-input-llm-BaseLLM"
},
{
"label": "Vector Store Retriever",
"name": "vectorStoreRetriever",
"type": "BaseRetriever",
"id": "conversationalRetrievalQAChain_1-input-vectorStoreRetriever-BaseRetriever"
}
],
"inputs": {
"llm": "{{openAI_1.data.instance}}",
"vectorStoreRetriever": "{{pineconeUpsert_0.data.instance}}"
},
"outputAnchors": [
{
"id": "conversationalRetrievalQAChain_1-output-conversationalRetrievalQAChain-ConversationalRetrievalQAChain|BaseChain|BaseLangChain",
"name": "conversationalRetrievalQAChain",
"label": "ConversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain | BaseChain | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"positionAbsolute": {
"x": 1551.758177447552,
"y": 367.847388647512
},
"selected": false,
"dragging": false
},
{
"width": 300,
"height": 410,
"id": "textFile_0", "id": "textFile_0",
"position": { "position": {
"x": 756.5586098635717, "x": 756.5586098635717,
@ -397,7 +343,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 505, "height": 488,
"id": "pdfFile_0", "id": "pdfFile_0",
"position": { "position": {
"x": 752.0044222860163, "x": 752.0044222860163,
@ -480,7 +426,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 701, "height": 702,
"id": "pineconeUpsert_0", "id": "pineconeUpsert_0",
"position": { "position": {
"x": 1161.8813042660154, "x": 1161.8813042660154,
@ -578,20 +524,63 @@
"y": 537.0216614326227 "y": 537.0216614326227
}, },
"dragging": false "dragging": false
},
{
"width": 300,
"height": 280,
"id": "conversationalRetrievalQAChain_0",
"position": {
"x": 1570.3859788160953,
"y": 423.6687850109136
},
"type": "customNode",
"data": {
"id": "conversationalRetrievalQAChain_0",
"label": "Conversational Retrieval QA Chain",
"name": "conversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain",
"baseClasses": ["ConversationalRetrievalQAChain", "BaseChain", "BaseLangChain"],
"category": "Chains",
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
"inputParams": [],
"inputAnchors": [
{
"label": "Language Model",
"name": "model",
"type": "BaseLanguageModel",
"id": "conversationalRetrievalQAChain_0-input-model-BaseLanguageModel"
},
{
"label": "Vector Store Retriever",
"name": "vectorStoreRetriever",
"type": "BaseRetriever",
"id": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever"
}
],
"inputs": {
"model": "{{openAI_1.data.instance}}",
"vectorStoreRetriever": "{{pineconeUpsert_0.data.instance}}"
},
"outputAnchors": [
{
"id": "conversationalRetrievalQAChain_0-output-conversationalRetrievalQAChain-ConversationalRetrievalQAChain|BaseChain|BaseLangChain",
"name": "conversationalRetrievalQAChain",
"label": "ConversationalRetrievalQAChain",
"type": "ConversationalRetrievalQAChain | BaseChain | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"selected": false,
"positionAbsolute": {
"x": 1570.3859788160953,
"y": 423.6687850109136
},
"dragging": false
} }
], ],
"edges": [ "edges": [
{
"source": "openAI_1",
"sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "conversationalRetrievalQAChain_1",
"targetHandle": "conversationalRetrievalQAChain_1-input-llm-BaseLLM",
"type": "buttonedge",
"id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-conversationalRetrievalQAChain_1-conversationalRetrievalQAChain_1-input-llm-BaseLLM",
"data": {
"label": ""
}
},
{ {
"source": "recursiveCharacterTextSplitter_1", "source": "recursiveCharacterTextSplitter_1",
"sourceHandle": "recursiveCharacterTextSplitter_1-output-recursiveCharacterTextSplitter-RecursiveCharacterTextSplitter|TextSplitter", "sourceHandle": "recursiveCharacterTextSplitter_1-output-recursiveCharacterTextSplitter-RecursiveCharacterTextSplitter|TextSplitter",
@ -647,13 +636,24 @@
"label": "" "label": ""
} }
}, },
{
"source": "openAI_1",
"sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "conversationalRetrievalQAChain_0",
"targetHandle": "conversationalRetrievalQAChain_0-input-model-BaseLanguageModel",
"type": "buttonedge",
"id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-model-BaseLanguageModel",
"data": {
"label": ""
}
},
{ {
"source": "pineconeUpsert_0", "source": "pineconeUpsert_0",
"sourceHandle": "pineconeUpsert_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever", "sourceHandle": "pineconeUpsert_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever",
"target": "conversationalRetrievalQAChain_1", "target": "conversationalRetrievalQAChain_0",
"targetHandle": "conversationalRetrievalQAChain_1-input-vectorStoreRetriever-BaseRetriever", "targetHandle": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever",
"type": "buttonedge", "type": "buttonedge",
"id": "pineconeUpsert_0-pineconeUpsert_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever-conversationalRetrievalQAChain_1-conversationalRetrievalQAChain_1-input-vectorStoreRetriever-BaseRetriever", "id": "pineconeUpsert_0-pineconeUpsert_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever",
"data": { "data": {
"label": "" "label": ""
} }

View File

@ -3,7 +3,7 @@
"nodes": [ "nodes": [
{ {
"width": 300, "width": 300,
"height": 331, "height": 330,
"id": "openAIEmbeddings_2", "id": "openAIEmbeddings_2",
"position": { "position": {
"x": 155.07832615625986, "x": 155.07832615625986,
@ -76,7 +76,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 356, "height": 355,
"id": "chromaExistingIndex_1", "id": "chromaExistingIndex_1",
"position": { "position": {
"x": 522.8177328694987, "x": 522.8177328694987,
@ -147,7 +147,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 526, "height": 524,
"id": "openAI_3", "id": "openAI_3",
"position": { "position": {
"x": 512.7434966474709, "x": 512.7434966474709,
@ -292,7 +292,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 281, "height": 280,
"id": "vectorDBQAChain_2", "id": "vectorDBQAChain_2",
"position": { "position": {
"x": 880.7795222381183, "x": 880.7795222381183,
@ -346,7 +346,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 603, "height": 602,
"id": "chainTool_2", "id": "chainTool_2",
"position": { "position": {
"x": 1251.240972921597, "x": 1251.240972921597,
@ -457,67 +457,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 281, "height": 278,
"id": "mrklAgentLLM_1",
"position": {
"x": 2058.9822318317824,
"y": -255.95459825821794
},
"type": "customNode",
"data": {
"id": "mrklAgentLLM_1",
"label": "MRKL Agent for LLMs",
"name": "mrklAgentLLM",
"type": "AgentExecutor",
"baseClasses": ["AgentExecutor", "BaseChain", "BaseLangChain"],
"category": "Agents",
"description": "Agent that uses the ReAct Framework to decide what action to take, optimized to be used with LLMs",
"inputParams": [],
"inputAnchors": [
{
"label": "Allowed Tools",
"name": "tools",
"type": "Tool",
"list": true,
"id": "mrklAgentLLM_1-input-tools-Tool"
},
{
"label": "LLM Model",
"name": "model",
"type": "BaseLLM",
"id": "mrklAgentLLM_1-input-model-BaseLLM"
}
],
"inputs": {
"tools": [
"{{calculator_1.data.instance}}",
"{{serpAPI_0.data.instance}}",
"{{chainTool_2.data.instance}}",
"{{chainTool_3.data.instance}}"
],
"model": "{{openAI_5.data.instance}}"
},
"outputAnchors": [
{
"id": "mrklAgentLLM_1-output-mrklAgentLLM-AgentExecutor|BaseChain|BaseLangChain",
"name": "mrklAgentLLM",
"label": "AgentExecutor",
"type": "AgentExecutor | BaseChain | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"positionAbsolute": {
"x": 2058.9822318317824,
"y": -255.95459825821794
},
"selected": false,
"dragging": false
},
{
"width": 300,
"height": 279,
"id": "serpAPI_0", "id": "serpAPI_0",
"position": { "position": {
"x": 1654.5273488033688, "x": 1654.5273488033688,
@ -562,7 +502,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 331, "height": 330,
"id": "openAIEmbeddings_3", "id": "openAIEmbeddings_3",
"position": { "position": {
"x": 163.902196956619, "x": 163.902196956619,
@ -635,7 +575,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 526, "height": 524,
"id": "openAI_4", "id": "openAI_4",
"position": { "position": {
"x": 529.8870809493459, "x": 529.8870809493459,
@ -780,7 +720,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 652, "height": 703,
"id": "pineconeExistingIndex_1", "id": "pineconeExistingIndex_1",
"position": { "position": {
"x": 539.4840212380209, "x": 539.4840212380209,
@ -881,7 +821,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 281, "height": 280,
"id": "vectorDBQAChain_3", "id": "vectorDBQAChain_3",
"position": { "position": {
"x": 896.3238465010572, "x": 896.3238465010572,
@ -935,7 +875,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 603, "height": 602,
"id": "chainTool_3", "id": "chainTool_3",
"position": { "position": {
"x": 1260.8044270644157, "x": 1260.8044270644157,
@ -1008,7 +948,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 526, "height": 524,
"id": "openAI_5", "id": "openAI_5",
"position": { "position": {
"x": 1683.95439713088, "x": 1683.95439713088,
@ -1150,6 +1090,66 @@
}, },
"selected": false, "selected": false,
"dragging": false "dragging": false
},
{
"width": 300,
"height": 280,
"id": "mrklAgentLLM_0",
"position": {
"x": 2061.891333395338,
"y": -140.0694021759809
},
"type": "customNode",
"data": {
"id": "mrklAgentLLM_0",
"label": "MRKL Agent for LLMs",
"name": "mrklAgentLLM",
"type": "AgentExecutor",
"baseClasses": ["AgentExecutor", "BaseChain", "BaseLangChain"],
"category": "Agents",
"description": "Agent that uses the ReAct Framework to decide what action to take, optimized to be used with LLMs",
"inputParams": [],
"inputAnchors": [
{
"label": "Allowed Tools",
"name": "tools",
"type": "Tool",
"list": true,
"id": "mrklAgentLLM_0-input-tools-Tool"
},
{
"label": "Language Model",
"name": "model",
"type": "BaseLanguageModel",
"id": "mrklAgentLLM_0-input-model-BaseLanguageModel"
}
],
"inputs": {
"tools": [
"{{serpAPI_0.data.instance}}",
"{{calculator_1.data.instance}}",
"{{chainTool_2.data.instance}}",
"{{chainTool_3.data.instance}}"
],
"model": "{{openAI_5.data.instance}}"
},
"outputAnchors": [
{
"id": "mrklAgentLLM_0-output-mrklAgentLLM-AgentExecutor|BaseChain|BaseLangChain",
"name": "mrklAgentLLM",
"label": "AgentExecutor",
"type": "AgentExecutor | BaseChain | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"selected": false,
"positionAbsolute": {
"x": 2061.891333395338,
"y": -140.0694021759809
},
"dragging": false
} }
], ],
"edges": [ "edges": [
@ -1197,39 +1197,6 @@
"label": "" "label": ""
} }
}, },
{
"source": "calculator_1",
"sourceHandle": "calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_1",
"targetHandle": "mrklAgentLLM_1-input-tools-Tool",
"type": "buttonedge",
"id": "calculator_1-calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_1-mrklAgentLLM_1-input-tools-Tool",
"data": {
"label": ""
}
},
{
"source": "serpAPI_0",
"sourceHandle": "serpAPI_0-output-serpAPI-SerpAPI|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_1",
"targetHandle": "mrklAgentLLM_1-input-tools-Tool",
"type": "buttonedge",
"id": "serpAPI_0-serpAPI_0-output-serpAPI-SerpAPI|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_1-mrklAgentLLM_1-input-tools-Tool",
"data": {
"label": ""
}
},
{
"source": "chainTool_2",
"sourceHandle": "chainTool_2-output-chainTool-ChainTool|DynamicTool|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_1",
"targetHandle": "mrklAgentLLM_1-input-tools-Tool",
"type": "buttonedge",
"id": "chainTool_2-chainTool_2-output-chainTool-ChainTool|DynamicTool|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_1-mrklAgentLLM_1-input-tools-Tool",
"data": {
"label": ""
}
},
{ {
"source": "openAI_4", "source": "openAI_4",
"sourceHandle": "openAI_4-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain", "sourceHandle": "openAI_4-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
@ -1263,28 +1230,6 @@
"label": "" "label": ""
} }
}, },
{
"source": "chainTool_3",
"sourceHandle": "chainTool_3-output-chainTool-ChainTool|DynamicTool|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_1",
"targetHandle": "mrklAgentLLM_1-input-tools-Tool",
"type": "buttonedge",
"id": "chainTool_3-chainTool_3-output-chainTool-ChainTool|DynamicTool|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_1-mrklAgentLLM_1-input-tools-Tool",
"data": {
"label": ""
}
},
{
"source": "openAI_5",
"sourceHandle": "openAI_5-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "mrklAgentLLM_1",
"targetHandle": "mrklAgentLLM_1-input-model-BaseLLM",
"type": "buttonedge",
"id": "openAI_5-openAI_5-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-mrklAgentLLM_1-mrklAgentLLM_1-input-model-BaseLLM",
"data": {
"label": ""
}
},
{ {
"source": "pineconeExistingIndex_1", "source": "pineconeExistingIndex_1",
"sourceHandle": "pineconeExistingIndex_1-output-vectorStore-Pinecone|VectorStore", "sourceHandle": "pineconeExistingIndex_1-output-vectorStore-Pinecone|VectorStore",
@ -1295,6 +1240,61 @@
"data": { "data": {
"label": "" "label": ""
} }
},
{
"source": "serpAPI_0",
"sourceHandle": "serpAPI_0-output-serpAPI-SerpAPI|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_0",
"targetHandle": "mrklAgentLLM_0-input-tools-Tool",
"type": "buttonedge",
"id": "serpAPI_0-serpAPI_0-output-serpAPI-SerpAPI|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-tools-Tool",
"data": {
"label": ""
}
},
{
"source": "calculator_1",
"sourceHandle": "calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_0",
"targetHandle": "mrklAgentLLM_0-input-tools-Tool",
"type": "buttonedge",
"id": "calculator_1-calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-tools-Tool",
"data": {
"label": ""
}
},
{
"source": "chainTool_2",
"sourceHandle": "chainTool_2-output-chainTool-ChainTool|DynamicTool|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_0",
"targetHandle": "mrklAgentLLM_0-input-tools-Tool",
"type": "buttonedge",
"id": "chainTool_2-chainTool_2-output-chainTool-ChainTool|DynamicTool|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-tools-Tool",
"data": {
"label": ""
}
},
{
"source": "chainTool_3",
"sourceHandle": "chainTool_3-output-chainTool-ChainTool|DynamicTool|Tool|StructuredTool|BaseLangChain",
"target": "mrklAgentLLM_0",
"targetHandle": "mrklAgentLLM_0-input-tools-Tool",
"type": "buttonedge",
"id": "chainTool_3-chainTool_3-output-chainTool-ChainTool|DynamicTool|Tool|StructuredTool|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-tools-Tool",
"data": {
"label": ""
}
},
{
"source": "openAI_5",
"sourceHandle": "openAI_5-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "mrklAgentLLM_0",
"targetHandle": "mrklAgentLLM_0-input-model-BaseLanguageModel",
"type": "buttonedge",
"id": "openAI_5-openAI_5-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-model-BaseLanguageModel",
"data": {
"label": ""
}
} }
] ]
} }

View File

@ -3,7 +3,7 @@
"nodes": [ "nodes": [
{ {
"width": 300, "width": 300,
"height": 526, "height": 524,
"id": "openAI_1", "id": "openAI_1",
"position": { "position": {
"x": 835.4668837832456, "x": 835.4668837832456,
@ -148,15 +148,15 @@
}, },
{ {
"width": 300, "width": 300,
"height": 425, "height": 424,
"id": "sqlDatabaseChain_1", "id": "sqlDatabaseChain_0",
"position": { "position": {
"x": 1223.80667374824, "x": 1255.0372022176111,
"y": 212.1582929700342 "y": 217.507437391498
}, },
"type": "customNode", "type": "customNode",
"data": { "data": {
"id": "sqlDatabaseChain_1", "id": "sqlDatabaseChain_0",
"label": "Sql Database Chain", "label": "Sql Database Chain",
"name": "sqlDatabaseChain", "name": "sqlDatabaseChain",
"type": "SqlDatabaseChain", "type": "SqlDatabaseChain",
@ -175,32 +175,32 @@
} }
], ],
"default": "sqlite", "default": "sqlite",
"id": "sqlDatabaseChain_1-input-database-options" "id": "sqlDatabaseChain_0-input-database-options"
}, },
{ {
"label": "Database File Path", "label": "Database File Path",
"name": "dbFilePath", "name": "dbFilePath",
"type": "string", "type": "string",
"placeholder": "C:/Users/chinook.db", "placeholder": "C:/Users/chinook.db",
"id": "sqlDatabaseChain_1-input-dbFilePath-string" "id": "sqlDatabaseChain_0-input-dbFilePath-string"
} }
], ],
"inputAnchors": [ "inputAnchors": [
{ {
"label": "LLM", "label": "Language Model",
"name": "llm", "name": "model",
"type": "BaseLLM", "type": "BaseLanguageModel",
"id": "sqlDatabaseChain_1-input-llm-BaseLLM" "id": "sqlDatabaseChain_0-input-model-BaseLanguageModel"
} }
], ],
"inputs": { "inputs": {
"llm": "{{openAI_1.data.instance}}", "model": "{{openAI_1.data.instance}}",
"database": "sqlite", "database": "sqlite",
"dbFilePath": "" "dbFilePath": ""
}, },
"outputAnchors": [ "outputAnchors": [
{ {
"id": "sqlDatabaseChain_1-output-sqlDatabaseChain-SqlDatabaseChain|BaseChain|BaseLangChain", "id": "sqlDatabaseChain_0-output-sqlDatabaseChain-SqlDatabaseChain|BaseChain|BaseLangChain",
"name": "sqlDatabaseChain", "name": "sqlDatabaseChain",
"label": "SqlDatabaseChain", "label": "SqlDatabaseChain",
"type": "SqlDatabaseChain | BaseChain | BaseLangChain" "type": "SqlDatabaseChain | BaseChain | BaseLangChain"
@ -211,8 +211,8 @@
}, },
"selected": false, "selected": false,
"positionAbsolute": { "positionAbsolute": {
"x": 1223.80667374824, "x": 1255.0372022176111,
"y": 212.1582929700342 "y": 217.507437391498
}, },
"dragging": false "dragging": false
} }
@ -221,10 +221,10 @@
{ {
"source": "openAI_1", "source": "openAI_1",
"sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain", "sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "sqlDatabaseChain_1", "target": "sqlDatabaseChain_0",
"targetHandle": "sqlDatabaseChain_1-input-llm-BaseLLM", "targetHandle": "sqlDatabaseChain_0-input-model-BaseLanguageModel",
"type": "buttonedge", "type": "buttonedge",
"id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-sqlDatabaseChain_1-sqlDatabaseChain_1-input-llm-BaseLLM", "id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-sqlDatabaseChain_0-sqlDatabaseChain_0-input-model-BaseLanguageModel",
"data": { "data": {
"label": "" "label": ""
} }

View File

@ -3,62 +3,7 @@
"nodes": [ "nodes": [
{ {
"width": 300, "width": 300,
"height": 281, "height": 278,
"id": "mrklAgentLLM_0",
"position": {
"x": 919.3453672085218,
"y": 371.80988480957353
},
"type": "customNode",
"data": {
"id": "mrklAgentLLM_0",
"label": "MRKL Agent for LLMs",
"name": "mrklAgentLLM",
"type": "AgentExecutor",
"baseClasses": ["AgentExecutor", "BaseChain", "BaseLangChain"],
"category": "Agents",
"description": "Agent that uses the ReAct Framework to decide what action to take, optimized to be used with LLMs",
"inputParams": [],
"inputAnchors": [
{
"label": "Allowed Tools",
"name": "tools",
"type": "Tool",
"list": true,
"id": "mrklAgentLLM_0-input-tools-Tool"
},
{
"label": "LLM Model",
"name": "model",
"type": "BaseLLM",
"id": "mrklAgentLLM_0-input-model-BaseLLM"
}
],
"inputs": {
"tools": ["{{zapierNLA_0.data.instance}}"],
"model": "{{openAI_0.data.instance}}"
},
"outputAnchors": [
{
"id": "mrklAgentLLM_0-output-mrklAgentLLM-AgentExecutor|BaseChain|BaseLangChain",
"name": "mrklAgentLLM",
"label": "AgentExecutor",
"type": "AgentExecutor | BaseChain | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"selected": false,
"positionAbsolute": {
"x": 919.3453672085218,
"y": 371.80988480957353
},
"dragging": false
},
{
"width": 300,
"height": 279,
"id": "zapierNLA_0", "id": "zapierNLA_0",
"position": { "position": {
"x": 546.0561178227484, "x": 546.0561178227484,
@ -103,7 +48,7 @@
}, },
{ {
"width": 300, "width": 300,
"height": 526, "height": 524,
"id": "openAI_0", "id": "openAI_0",
"position": { "position": {
"x": 547.3867724775708, "x": 547.3867724775708,
@ -245,6 +190,60 @@
"y": 394.1919189424442 "y": 394.1919189424442
}, },
"dragging": false "dragging": false
},
{
"width": 300,
"height": 280,
"id": "mrklAgentLLM_0",
"position": {
"x": 1002.5779315680477,
"y": 329.9701389591812
},
"type": "customNode",
"data": {
"id": "mrklAgentLLM_0",
"label": "MRKL Agent for LLMs",
"name": "mrklAgentLLM",
"type": "AgentExecutor",
"baseClasses": ["AgentExecutor", "BaseChain", "BaseLangChain"],
"category": "Agents",
"description": "Agent that uses the ReAct Framework to decide what action to take, optimized to be used with LLMs",
"inputParams": [],
"inputAnchors": [
{
"label": "Allowed Tools",
"name": "tools",
"type": "Tool",
"list": true,
"id": "mrklAgentLLM_0-input-tools-Tool"
},
{
"label": "Language Model",
"name": "model",
"type": "BaseLanguageModel",
"id": "mrklAgentLLM_0-input-model-BaseLanguageModel"
}
],
"inputs": {
"tools": ["{{zapierNLA_0.data.instance}}"],
"model": "{{openAI_0.data.instance}}"
},
"outputAnchors": [
{
"id": "mrklAgentLLM_0-output-mrklAgentLLM-AgentExecutor|BaseChain|BaseLangChain",
"name": "mrklAgentLLM",
"label": "AgentExecutor",
"type": "AgentExecutor | BaseChain | BaseLangChain"
}
],
"outputs": {},
"selected": false
},
"positionAbsolute": {
"x": 1002.5779315680477,
"y": 329.9701389591812
},
"selected": false
} }
], ],
"edges": [ "edges": [
@ -263,9 +262,9 @@
"source": "openAI_0", "source": "openAI_0",
"sourceHandle": "openAI_0-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain", "sourceHandle": "openAI_0-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain",
"target": "mrklAgentLLM_0", "target": "mrklAgentLLM_0",
"targetHandle": "mrklAgentLLM_0-input-model-BaseLLM", "targetHandle": "mrklAgentLLM_0-input-model-BaseLanguageModel",
"type": "buttonedge", "type": "buttonedge",
"id": "openAI_0-openAI_0-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-model-BaseLLM", "id": "openAI_0-openAI_0-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-mrklAgentLLM_0-mrklAgentLLM_0-input-model-BaseLanguageModel",
"data": { "data": {
"label": "" "label": ""
} }