From 0ea651e7c513aee9e9eef67840d97f0f998206cc Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 24 May 2023 19:04:47 +0100 Subject: [PATCH] update marketplaces --- .../Conversational Retrieval QA Chain.json | 13 ++++++++++++- packages/server/marketplaces/Github Repo QnA.json | 13 ++++++++++++- .../server/marketplaces/Metadata Filter Load.json | 13 ++++++++++++- .../server/marketplaces/Metadata Filter Upsert.json | 13 ++++++++++++- 4 files changed, 48 insertions(+), 4 deletions(-) diff --git a/packages/server/marketplaces/Conversational Retrieval QA Chain.json b/packages/server/marketplaces/Conversational Retrieval QA Chain.json index daa5235eed1..584a175a2e4 100644 --- a/packages/server/marketplaces/Conversational Retrieval QA Chain.json +++ b/packages/server/marketplaces/Conversational Retrieval QA Chain.json @@ -444,7 +444,18 @@ "baseClasses": ["ConversationalRetrievalQAChain", "BaseChain", "BaseLangChain"], "category": "Chains", "description": "Document QA - built on RetrievalQAChain to provide a chat history component", - "inputParams": [], + "inputParams": [ + { + "label": "System Message", + "name": "systemMessagePrompt", + "type": "string", + "rows": 4, + "additionalParams": true, + "optional": true, + "placeholder": "I want you to act as a document that I am having a conversation with. Your name is \"AI Assistant\". You will provide me with answers from the given info. If the answer is not included, say exactly \"Hmm, I am not sure.\" and stop after that. Refuse to answer any question not about the info. Never break character.", + "id": "conversationalRetrievalQAChain_0-input-systemMessagePrompt-string" + } + ], "inputAnchors": [ { "label": "Language Model", diff --git a/packages/server/marketplaces/Github Repo QnA.json b/packages/server/marketplaces/Github Repo QnA.json index a198bbfcb5f..debc2aad4c3 100644 --- a/packages/server/marketplaces/Github Repo QnA.json +++ b/packages/server/marketplaces/Github Repo QnA.json @@ -461,7 +461,18 @@ "baseClasses": ["ConversationalRetrievalQAChain", "BaseChain", "BaseLangChain"], "category": "Chains", "description": "Document QA - built on RetrievalQAChain to provide a chat history component", - "inputParams": [], + "inputParams": [ + { + "label": "System Message", + "name": "systemMessagePrompt", + "type": "string", + "rows": 4, + "additionalParams": true, + "optional": true, + "placeholder": "I want you to act as a document that I am having a conversation with. Your name is \"AI Assistant\". You will provide me with answers from the given info. If the answer is not included, say exactly \"Hmm, I am not sure.\" and stop after that. Refuse to answer any question not about the info. Never break character.", + "id": "conversationalRetrievalQAChain_0-input-systemMessagePrompt-string" + } + ], "inputAnchors": [ { "label": "Language Model", diff --git a/packages/server/marketplaces/Metadata Filter Load.json b/packages/server/marketplaces/Metadata Filter Load.json index cacabe71506..c496b199975 100644 --- a/packages/server/marketplaces/Metadata Filter Load.json +++ b/packages/server/marketplaces/Metadata Filter Load.json @@ -338,7 +338,18 @@ "baseClasses": ["ConversationalRetrievalQAChain", "BaseChain", "BaseLangChain"], "category": "Chains", "description": "Document QA - built on RetrievalQAChain to provide a chat history component", - "inputParams": [], + "inputParams": [ + { + "label": "System Message", + "name": "systemMessagePrompt", + "type": "string", + "rows": 4, + "additionalParams": true, + "optional": true, + "placeholder": "I want you to act as a document that I am having a conversation with. Your name is \"AI Assistant\". You will provide me with answers from the given info. If the answer is not included, say exactly \"Hmm, I am not sure.\" and stop after that. Refuse to answer any question not about the info. Never break character.", + "id": "conversationalRetrievalQAChain_0-input-systemMessagePrompt-string" + } + ], "inputAnchors": [ { "label": "Language Model", diff --git a/packages/server/marketplaces/Metadata Filter Upsert.json b/packages/server/marketplaces/Metadata Filter Upsert.json index ab66cf7430b..d0335f16219 100644 --- a/packages/server/marketplaces/Metadata Filter Upsert.json +++ b/packages/server/marketplaces/Metadata Filter Upsert.json @@ -542,7 +542,18 @@ "baseClasses": ["ConversationalRetrievalQAChain", "BaseChain", "BaseLangChain"], "category": "Chains", "description": "Document QA - built on RetrievalQAChain to provide a chat history component", - "inputParams": [], + "inputParams": [ + { + "label": "System Message", + "name": "systemMessagePrompt", + "type": "string", + "rows": 4, + "additionalParams": true, + "optional": true, + "placeholder": "I want you to act as a document that I am having a conversation with. Your name is \"AI Assistant\". You will provide me with answers from the given info. If the answer is not included, say exactly \"Hmm, I am not sure.\" and stop after that. Refuse to answer any question not about the info. Never break character.", + "id": "conversationalRetrievalQAChain_0-input-systemMessagePrompt-string" + } + ], "inputAnchors": [ { "label": "Language Model",