From 7558dbbfa9274fa0a79443aa50eb0703cd5eb320 Mon Sep 17 00:00:00 2001 From: Fraser Date: Tue, 11 Jul 2023 23:32:16 -0400 Subject: [PATCH] implement changes from @Thomas-Lemoine review --- api/chat.py | 2 +- web/src/pages/index.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/chat.py b/api/chat.py index 17deb91..db32d46 100644 --- a/api/chat.py +++ b/api/chat.py @@ -116,7 +116,7 @@ def construct_prompt(query: str, mode: str, history: List[Dict[str, str]], conte "using the format: [a], [b], etc. If you use multiple sources to make a claim " \ "cite all of them. For example: \"AGI is concerning [c, d, e].\"\n\n" - if mode == "crux": + if mode == "concise": question_prompt += "Answer very concisely, getting to the crux of the matter in as " \ "few words as possible. Limit your answer to 1-2 sentences.\n\n" diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index 862b195..9d4808c 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -236,7 +236,7 @@ type State = { response: AssistantEntry; }; -type Mode = "rookie" | "crux" | "default"; +type Mode = "rookie" | "concise" | "default"; // smooth-scroll to the bottom of the window if we're already less than 30% a screen away @@ -491,11 +491,11 @@ const Home: NextPage = () => { // //