Skip to content

Commit

Permalink
Fix typos in prompt
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Evans <[email protected]>

Co-authored-by: Matthew Evans <[email protected]>

Co-authored-by: Matthew Evans <[email protected]>

tweak prompt to work well after typos
  • Loading branch information
jdbocarsly committed Jun 30, 2023
1 parent af50ec0 commit 74ef3a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pydatalab/pydatalab/apps/chat/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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). """,
},
]

Expand Down

0 comments on commit 74ef3a9

Please sign in to comment.