implement changes from @Thomas-Lemoine review

This commit is contained in:
Fraser
2023-07-11 23:32:16 -04:00
parent df40ca4e1d
commit 7558dbbfa9
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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"
+4 -4
View File
@@ -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 = () => {
</button>
//
<button className={
"border border-gray-300 px-1 " + (mode[1] && mode[0] === "crux" ? "bg-gray-200" : "")
} onClick={() => { setMode(["crux", true]); }}
"border border-gray-300 px-1 " + (mode[1] && mode[0] === "concise" ? "bg-gray-200" : "")
} onClick={() => { setMode(["concise", true]); }}
title="Quick and to the point. Followup questions may need to be
asked to get the full picture of what's going on.">
crux
concise
</button>
//
<button className={