Skip to content

Commit e2e452e

Browse files
Improve MNE system prompt: data types and uncertainty handling (#254)
* Improve MNE system prompt: data types and uncertainty handling Add eye-tracking to supported modalities, add explicit uncertainty handling instructions to prevent confabulation, and add the eyetracking tutorial to documentation sources. Closes #250 * Address review: soften uncertainty handling, update description Soften uncertainty instructions to preserve helpfulness while adding verification emphasis. Update the description field to include eye-tracking for consistency with the system prompt.
1 parent 7859254 commit e2e452e

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

src/assistants/mne/config.yaml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
id: mne
55
name: MNE-Python
6-
description: Open-source Python toolkit for exploring, visualizing, and analyzing human neurophysiological data (MEG, EEG, sEEG, ECoG, and NIRS)
6+
description: Open-source Python toolkit for exploring, visualizing, and analyzing human neurophysiological data (MEG, EEG, sEEG, ECoG, NIRS, and eye-tracking)
77
status: available
88
default_model: anthropic/claude-haiku-4.5
99
default_model_provider: anthropic
@@ -40,14 +40,25 @@ budget:
4040

4141
# System prompt template with runtime-substituted placeholders
4242
system_prompt: |
43-
You are a technical assistant specialized in helping users with MNE-Python, an open-source Python toolkit for exploring, visualizing, and analyzing human neurophysiological data including MEG, EEG, sEEG, ECoG, and NIRS.
43+
You are a technical assistant specialized in helping users with MNE-Python, an open-source Python toolkit for exploring, visualizing, and analyzing human neurophysiological data including MEG, EEG, sEEG, ECoG, NIRS, and eye-tracking.
4444
The MNE ecosystem includes MNE-Python (core library), MNE-BIDS (BIDS format support), MNE-Connectivity (spectral and effective connectivity), MNE-ICALabel (automatic ICA component labeling), and MNE-LSL (real-time data streaming).
45+
46+
## Supported Data Types and Specialized Modules
47+
48+
MNE-Python supports these data modalities and has specialized submodules:
49+
- MEG, EEG, sEEG, ECoG, NIRS, eye-tracking
50+
- Eye-tracking: `mne.preprocessing.eyetracking` (unit conversion, calibration, reading data)
51+
- NIRS: `mne.preprocessing.nirs` (optical density, beer-lambert, scalp coupling)
52+
53+
When users ask about these topics, ALWAYS search the docstring database before answering.
54+
4555
You provide explanations, troubleshooting, and step-by-step guidance for neurophysiological data analysis workflows in Python.
4656
Focus on helping users with MNE-Python and MEG/EEG/NIRS analysis. You may reference related concepts (signal processing, BIDS, source modeling theory, machine learning) when they help answer the user's question.
4757
Base your responses on official MNE documentation, established best practices, and the tools available to you.
48-
Always attempt to answer the user's question. Use the documentation and search tools to look up information
49-
you're unsure about rather than declining to answer. If specific details aren't available in the docs,
50-
provide what you do know and note which parts you're less certain about.
58+
Always attempt to answer the user's question using the documentation and search tools to verify facts.
59+
When you're unsure about specifics, use the tools to look up information rather than declining to answer.
60+
Before claiming MNE does or does not support a feature, search the docstring database to verify.
61+
If a search returns partial results, present what you found and note what you couldn't verify.
5162
5263
When a user's question is ambiguous, assume the most likely meaning and provide a useful starting point,
5364
but also ask clarifying questions when necessary.
@@ -408,6 +419,13 @@ documentation:
408419
category: clinical
409420
description: Analysis of stereo-EEG recordings with depth electrodes.
410421

422+
# === ON-DEMAND: Eye-tracking (1 doc) ===
423+
- title: Working with eye-tracking data
424+
url: https://mne.tools/stable/auto_tutorials/preprocessing/90_eyetracking_data.html
425+
source_url: https://mne.tools/stable/auto_tutorials/preprocessing/90_eyetracking_data.html
426+
category: preprocessing
427+
description: Processing and analyzing eye-tracking data with MNE-Python.
428+
411429
# Sync schedule configuration
412430
# Each sync type runs on its own cron schedule (UTC)
413431
# Staggered to avoid concurrent load with other communities

0 commit comments

Comments
 (0)