From 72f7226a179d3a4f166836e117ced0577a5ebc0a Mon Sep 17 00:00:00 2001 From: Peter Morton Date: Thu, 29 May 2025 16:21:54 -0500 Subject: [PATCH 1/4] updated prereqs instructions --- CQA_Retriever/_studio_dependencies/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CQA_Retriever/_studio_dependencies/README.md b/CQA_Retriever/_studio_dependencies/README.md index 0c85a82..bf4aa26 100644 --- a/CQA_Retriever/_studio_dependencies/README.md +++ b/CQA_Retriever/_studio_dependencies/README.md @@ -10,7 +10,7 @@ This package provides an example RAG process using Azure AI Search for Retrieval ### Prerequisites -- This package requires the CQA Widget to be installed and configured. +- This example requires the _Verint Contextual Question Answer Service_ package to be installed from the Hub and configured. > **WARNING:** There is an error in the _CQA_66308ec473f3d10350a2e499_ Global Variable file on line 20: It should read v2 instead of v1 and should be fixed manually From 3f02e5caa15ebe257e26b6f737e886ba3e15ddd7 Mon Sep 17 00:00:00 2001 From: Peter Morton Date: Thu, 29 May 2025 16:30:47 -0500 Subject: [PATCH 2/4] updated GlobalVariable install instructions --- CQA_Retriever/_studio_dependencies/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CQA_Retriever/_studio_dependencies/README.md b/CQA_Retriever/_studio_dependencies/README.md index bf4aa26..5246735 100644 --- a/CQA_Retriever/_studio_dependencies/README.md +++ b/CQA_Retriever/_studio_dependencies/README.md @@ -12,7 +12,7 @@ This package provides an example RAG process using Azure AI Search for Retrieval - This example requires the _Verint Contextual Question Answer Service_ package to be installed from the Hub and configured. -> **WARNING:** There is an error in the _CQA_66308ec473f3d10350a2e499_ Global Variable file on line 20: It should read v2 instead of v1 and should be fixed manually +> **WARNING:** There is an error in the _CQA_66308ec473f3d10350a2e499_ Global Variable file on (maybe) line 60: It should read v2 instead of v1 and should be fixed manually ```javascript let url = `${settings.apiurl}/${settings.productcode}/${settings.ingress}/inference/verint-contextual-question-answering-v2`; @@ -20,8 +20,10 @@ This package provides an example RAG process using Azure AI Search for Retrieval ### Installation -1. Copy the [CQA_Retriever](./GlobalVariable/CQA_Retriever.js) and [CQA_RetieverSettings](./GlobalVariable/CQA_RetrieverSettings.json) files into **Global Variables** -2. _Optional:_ Import the Example Conversation Flow and Intent +1. Copy the contents of the **Global Variables** (click into each one for contents). Make sure to make the names match (without the .js or .json suffix) + 1. [CQA_Retriever](./GlobalVariable/CQA_Retriever.js) as a function. + 1. [CQA_RetrieverSettings](./GlobalVariable/CQA_RetrieverSettings.json) as an object. +1. _Optional:_ Import the Example Conversation Flow and Intent ### Configuration From f15ef5d51f063b0dcd3b948f875c7dd86dd16641 Mon Sep 17 00:00:00 2001 From: Peter Morton Date: Thu, 29 May 2025 16:33:23 -0500 Subject: [PATCH 3/4] Update CQA_Retriever/_studio_dependencies/README.md --- CQA_Retriever/_studio_dependencies/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CQA_Retriever/_studio_dependencies/README.md b/CQA_Retriever/_studio_dependencies/README.md index 5246735..051a643 100644 --- a/CQA_Retriever/_studio_dependencies/README.md +++ b/CQA_Retriever/_studio_dependencies/README.md @@ -27,7 +27,7 @@ This package provides an example RAG process using Azure AI Search for Retrieval ### Configuration -#### CQA_RetieverSettings +#### CQA_RetrieverSettings Fill out the settings below. From bd4f1f96fb57f19faafbc816fd78e5d095c2d207 Mon Sep 17 00:00:00 2001 From: Peter Morton Date: Thu, 29 May 2025 16:42:24 -0500 Subject: [PATCH 4/4] Update CQA_Retriever/_studio_dependencies/README.md --- CQA_Retriever/_studio_dependencies/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CQA_Retriever/_studio_dependencies/README.md b/CQA_Retriever/_studio_dependencies/README.md index 051a643..69fc7cc 100644 --- a/CQA_Retriever/_studio_dependencies/README.md +++ b/CQA_Retriever/_studio_dependencies/README.md @@ -64,7 +64,7 @@ A global variable function which handles the logic and API calls used to retriev This is included in the Example Conversation Flow if you have imported that. If you want to use this on the global flow as a catch all for inputs that do not provide an answer, then change ```${conversationData.cqa_question}``` to ```${recognizedObject.input}``` -> NOTE: This example exits via the output pin '0'. If you need it to continue to the next block, then change the ```next(0)``` to ```next()``` on the second to last line, +> NOTE: This example exits via continue to next block. If you need it to exit via the pin, then change the ```next()``` to ```next(0)``` on the second to last line, ```javascript (async () => { @@ -85,6 +85,6 @@ This is included in the Example Conversation Flow if you have imported that. If }; }) .finally(() => { - next(0); + next(); }); ```