Skip to content

feat: add 14 missing docs to NWB community - #520

Merged
neuromechanist merged 2 commits into
OpenScience-Collective:developfrom
bendichter:feature/issue-514-nwb-extra-docs
Sep 28, 2026
Merged

neuromechanist merged 2 commits into
OpenScience-Collective:developfrom
bendichter:feature/issue-514-nwb-extra-docs

Conversation

@bendichter

@bendichter bendichter commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Refs #514.

Summary

Adds 14 documentation pages that the NWB doc index lacks. They're all fetched on demand, and the two preloaded pages are unchanged:

topic pages
NWB Inspector using the command line interface; using the library
MatNWB quickstart; reading NWB files; creating NWB files
DANDI creating a Dandiset; Dandiset metadata; validating files; uploading data
NWB overview intro to NWB; anatomy of an NWB file; creating an extension (ndx-template); publishing extensions
NWB schema release notes

Each source_url is the raw file on the repo's default branch, and each page's description was written from its content. The diff only adds lines: a header note and the 14 entries.

Why

In our evaluation of the NWB assistant (25 NWB questions, graded blind by a stronger model), every answer that invented something did so on one of these topics. Examples: a nonexistent nwbinspector --recursive flag, dandi upload --dandiset-id, and unverifiable claims about schema releases.

We compared the current config with this one, both with the clean_markdown fix from #514 section 4 applied locally, using the same model (GPT-6 Luna) and graded blind together:

overall (1-5) completeness citations answers with false API claims cost / question
current config 4.22 3.80 4.32 3 $0.006
with these pages 4.61 4.52 4.68 1 $0.006

The questions these pages target went from about 3 to about 5: running the Inspector on a folder 3.0 to 5.0, DANDI upload commands 3.25 to 5.0, reading NWB in MATLAB 3.0 to 4.75, and the latest schema release 3.67 to 4.67.

We also tried enabling docstrings for PyNWB, HDMF, NeuroConv, NWB Inspector and MatNWB. It gave no overall gain at about 50% more cost, so it's not included here.

Tests

  • osa validate src/assistants/nwb/config.yaml passes (119 docs).
  • pytest tests/test_assistants/test_community_yaml_generic.py -k nwb -m "": 17 passed, 3 skipped (no GitHub repos or DOIs configured). This includes the network test that every source_url returns 200.

Adds pages the NWB doc index lacks: NWB Inspector CLI and library
guides, MatNWB quickstart/reading/creating, DANDI Dandiset creation,
metadata, validation and upload guides, the NWB overview intro and
file anatomy, the extension creation and publishing guides, and the
NWB schema release notes.

In a blind-graded 25-question evaluation these raised the overall
score from 4.22 to 4.61 out of 5, with no change in cost.

Refs OpenScience-Collective#514
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@neuromechanist
neuromechanist merged commit 9a453e8 into OpenScience-Collective:develop Sep 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants