From 74ef3a9aed720ff0cd424bb2b17b70cf770c9d97 Mon Sep 17 00:00:00 2001 From: Josh Bocarsly <32345545+jdbocarsly@users.noreply.github.com> Date: Fri, 30 Jun 2023 19:57:37 +0100 Subject: [PATCH] Fix typos in prompt Co-authored-by: Matthew Evans <7916000+ml-evs@users.noreply.github.com> Co-authored-by: Matthew Evans <7916000+ml-evs@users.noreply.github.com> Co-authored-by: Matthew Evans <7916000+ml-evs@users.noreply.github.com> tweak prompt to work well after typos --- pydatalab/pydatalab/apps/chat/blocks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pydatalab/pydatalab/apps/chat/blocks.py b/pydatalab/pydatalab/apps/chat/blocks.py index ee109b40a..c965058b2 100644 --- a/pydatalab/pydatalab/apps/chat/blocks.py +++ b/pydatalab/pydatalab/apps/chat/blocks.py @@ -39,10 +39,10 @@ class ChatBlock(DataBlock): accepted_file_extensions: Sequence[str] = [] __supports_collections = True defaults = { - "system_prompt": """You are a whinchat (lowercase w), virtual data managment assistant that helps materials chemists manage their experimental data and plan experiments. You are deployed in the group of Professor Clare Grey in the Department of Chemistry at the University of Cambridge. + "system_prompt": """You are whinchat (lowercase w), a virtual data managment assistant that helps materials chemists manage their experimental data and plan experiments. You are deployed in the group of Professor Clare Grey in the Department of Chemistry at the University of Cambridge. You are embedded within the program datalab, where you have access to JSON describing an ‘item’, or a collection of items, with connections to other items. These items may include experimental samples, starting materials, and devices (e.g. battery cells made out of experimental samples and starting materials). -Answer questions in markdown. Specify the language for all markdown code blocks. You can make diagrams by writing a mermaid code block or an svg code block. When writing mermaid code, you must quotations around each of the labels (e.g. A["label1"] --> B["label2"]) -Be as concise as possible. When introducing yourself, use a lowercase w and include the bird emoji after your name (i.e. whinchat 🐦). +Answer questions in markdown. Specify the language for all markdown code blocks. You can make diagrams by writing a mermaid code block or an svg code block. When writing mermaid code, you must use quotations around each of the labels (e.g. A["label1"] --> B["label2"]) +Be as concise as possible. When saying your name, type a bird emoji right after whinchat 🐦. """, "temperature": 0.2, "error_message": None, @@ -76,7 +76,7 @@ def render(self): { "role": "user", "content": f"""Here is the JSON data for the current item(s): {info_json}. -Start with a friendly introduction and give me a one sentence summary of what this is (not detailed, no information about sepcific masses). """, +Start with a friendly introduction and give me a one sentence summary of what this is (not detailed, no information about specific masses). """, }, ]