From 093ceedcb8372ebf35ede035992e3a8f92eecbdb Mon Sep 17 00:00:00 2001 From: Gil LaHaye Date: Fri, 8 Mar 2024 13:26:14 -0800 Subject: [PATCH 1/3] Revert "Read secrets (#849)" This reverts commit 0b586b82cc4063bec7ce59ef2037698b628c87f2. --- .github/workflows/copilot-run-integration-tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/copilot-run-integration-tests.yml b/.github/workflows/copilot-run-integration-tests.yml index a99d02160..eabfb5a1b 100644 --- a/.github/workflows/copilot-run-integration-tests.yml +++ b/.github/workflows/copilot-run-integration-tests.yml @@ -20,7 +20,6 @@ on: permissions: contents: read - secrets: read jobs: tests: @@ -29,8 +28,8 @@ jobs: runs-on: windows-latest steps: - - shell: pwsh - uses: actions/checkout@v4 + - name: Configure test environment working-directory: integration-tests env: From 447f056b3a5021a21584c89e62a7a53bfd659e4e Mon Sep 17 00:00:00 2001 From: Gil LaHaye Date: Thu, 21 Mar 2024 15:37:23 -0700 Subject: [PATCH 2/3] Adjust memory prompt --- webapi/appsettings.json | 2 +- webapp/src/components/chat/prompt-dialog/PromptDialog.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapi/appsettings.json b/webapi/appsettings.json index 0cc78bc38..ff578880b 100644 --- a/webapi/appsettings.json +++ b/webapi/appsettings.json @@ -135,7 +135,7 @@ "SystemCognitive": "We are building a cognitive architecture and need to extract the various details necessary to serve as the data for simulating a part of our memory system. There will eventually be a lot of these, and we will search over them using the embeddings of the labels and details compared to the new incoming chat requests, so keep that in mind when determining what data to store for this particular type of memory simulation. There are also other types of memory stores for handling different types of memories with differing purposes, levels of detail, and retention, so you don't need to capture everything - just focus on the items needed for {{$memoryName}}. Do not make up or assume information that is not supported by evidence. Perform analysis of the chat history so far and extract the details that you think are important in JSON format: {{$format}}", "MemoryFormat": "{\"items\": [{\"label\": string, \"details\": string }]}", "MemoryAntiHallucination": "IMPORTANT: DO NOT INCLUDE ANY OF THE ABOVE INFORMATION IN THE GENERATED RESPONSE AND ALSO DO NOT MAKE UP OR INFER ANY ADDITIONAL INFORMATION THAT IS NOT INCLUDED BELOW. ALSO DO NOT RESPOND IF THE LAST MESSAGE WAS NOT ADDRESSED TO YOU.", - "MemoryContinuation": "Generate a well-formed JSON of extracted context data. DO NOT include a preamble in the response. DO NOT give a list of possible responses. Only provide a single response of the json block.\nResponse:", + "MemoryContinuation": "Generate a well-formed JSON representation of the extracted context data. DO NOT include a preamble in the response. DO NOT give a list of possible responses. Only provide a single response that consists of NOTHING else but valid JSON.\nResponse:", "WorkingMemoryName": "WorkingMemory", // The name used for the container that stores Working Memory in the Kernel Memory database. This should not be changed once memories are established. "WorkingMemoryExtraction": "Extract information for a short period of time, such as a few seconds or minutes. It should be useful for performing complex cognitive tasks that require attention, concentration, or mental calculation.", "LongTermMemoryName": "LongTermMemory", // The name used for the container that stores Long Term Memory in the Kernel Memory database. This should not be changed once memories are established. diff --git a/webapp/src/components/chat/prompt-dialog/PromptDialog.tsx b/webapp/src/components/chat/prompt-dialog/PromptDialog.tsx index b94e62cb1..f513825bf 100644 --- a/webapp/src/components/chat/prompt-dialog/PromptDialog.tsx +++ b/webapp/src/components/chat/prompt-dialog/PromptDialog.tsx @@ -81,8 +81,8 @@ export const PromptDialog: React.FC = ({ message }) => { // Backend can be configured to return the raw response from Stepwise Planner. In this case, no meta prompt was generated or completed // and we should show the Stepwise thought process as the raw content view. - if ((prompt as BotResponsePrompt).metaPromptTemplate.length <= 0) { - (prompt as BotResponsePrompt).rawView = ( + if (prompt.metaPromptTemplate.length <= 0) { + prompt.rawView = (
                                 {JSON.stringify(JSON.parse(details.stepsTaken), null, 2)}
                             
From fd551f174ed7e0751c0515c31060f8a9de1eeafe Mon Sep 17 00:00:00 2001 From: Gil LaHaye Date: Thu, 21 Mar 2024 17:27:44 -0700 Subject: [PATCH 3/3] Update typescript to 5.4.3 --- webapp/package.json | 2 +- webapp/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/webapp/package.json b/webapp/package.json index 6fc5a9aa9..5889af3d2 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -43,7 +43,7 @@ "prettier": "^3.2.5", "react-scripts": "^5.0.1", "serve": "^14.2.1", - "typescript": "5.3.3" + "typescript": "5.4.3" }, "browserslist": { "production": [ diff --git a/webapp/yarn.lock b/webapp/yarn.lock index 934245982..3773d9bf6 100644 --- a/webapp/yarn.lock +++ b/webapp/yarn.lock @@ -10941,10 +10941,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@5.3.3: - version "5.3.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37" - integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw== +typescript@5.4.3: + version "5.4.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.3.tgz#5c6fedd4c87bee01cd7a528a30145521f8e0feff" + integrity sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg== unbox-primitive@^1.0.2: version "1.0.2"