Related Experiment Video
Updated: Jun 27, 2026

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
clickBrick prompt engineering: optimizing large language model performance in clinical psychiatry
Falk Gerrik Verhees1, Fabian Huth2, Vincent Meyer2
1Department of Psychiatry and Psychotherapy, University Hospital Dresden, TUD Dresden University of Technology, Dresden, Germany. falkgerrik.verhees@ukdd.de.
Abstract:
Prompt engineering has the potential to enhance large language models' (LLM) ability to solve tasks through improved in-context learning. In clinical research, the use of LLMs has shown expert-level performance for a variety of tasks ranging from pathology slide classification to identifying suicidality. We introduce clickBrick, a modular prompt-engineering framework, and rigorously test its effectiveness. Here, we explore the effects of increasingly structuring prompts with the clickBrick framework for a comprehensive psychopathological assessment of 100 index patients from psychiatric electronic health records. We compare the performance of two locally-run LLMs against an expert-labeled ground truth for a variety of successively built-up prompts for the extraction of 12 transdiagnostic psychopathological criteria. Potential clinical value was explored by training linear support vector machines on outputs from the strongest and weakest prompts to predict discharge ICD-10 main diagnoses for a historical sample of 1692 patients. We could reliably extract information across 12 distinct psychopathological classification tasks from unstructured clinical text with balanced accuracies spanning 71% to 94%. Across tasks, we observed a substantially improved extraction accuracy (between +19% and +36%) using clickBrick for the most reactive model. The comparison unveiled great variations between prompts with a reasoning prompt performing best in 7 out of 12 domains. Clinical value and internal validity were approximated by downstream classification of eventual psychiatric diagnoses for 1,692 patients. Here, clickBrick led to an improvement in overall classification accuracy from 71% to 76%. ClickBrick prompt engineering, i.e., iterative, expert-led design and testing, is critical for unlocking LLMs' clinical potential. The framework offers a reproducible, explainable pathway for deploying trustworthy generative AI across mental health and other clinical fields.
Related Concept Videos
Higher Mental Functions of the Brain: Language
Language formation and comprehension take place in the dominant hemisphere. The dominant hemisphere is responsible for understanding the meaning of spoken, written, or sign language, as well as the ability to communicate. For most people, the left hemisphere is the dominant one. The right hemisphere, then, gives tone and emotional context to the...
Modeling in Therapy
Participant Modeling
Participant modeling involves therapists demonstrating calm and effective behaviors in situations...
Improving Translational Accuracy
Improving Translational Accuracy
Treatment Strategies for Psychological Disorders
Psychological therapies focus on modifying emotions, thoughts, and behaviors through talking, interpreting, listening, rewarding, challenging, and modeling. Clinical psychologists, counselors, and social workers commonly practice psychotherapy. Clinical...
Language and Cognition