Skip to content

Commit

Permalink
implement changes from @Thomas-Lemoine review
Browse files Browse the repository at this point in the history
  • Loading branch information
FraserLee committed Jul 12, 2023
1 parent df40ca4 commit 7558dbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
8 changes: 4 additions & 4 deletions web/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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={
Expand Down

0 comments on commit 7558dbb

Please sign in to comment.