Repository navigation
feat: add NWB community - #517
Merged
neuromechanist merged 2 commits intoSep 25, 2026
Merged
neuromechanist merged 2 commits into
neuromechanist merged 2 commits into
Conversation
Adds the NWB Assistant community: 105 PyNWB, HDMF, NeuroConv and NWB Inspector docs from magland/nwb-doc-index (2 preloaded), a system prompt adapted from the existing NWB Assistant, widget settings, and CORS origins for the NWB docs sites. Platform-funded Haiku default for now; GPT-6 Luna once it is offered through Bedrock. Refs OpenScience-Collective#514
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
5 tasks done
neuromechanist
self-requested a review
September 25, 2026 20:42
neuromechanist
merged commit Sep 25, 2026
04e4732
into
OpenScience-Collective:develop
10 checks passed
3 tasks done
This was referenced Sep 30, 2026
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #514 (section 1).
Summary
Adds
src/assistants/nwb/config.yamlfor an NWB Assistant, to replace the separately maintained assistant currently embedded in the PyNWB docs.source_urlpoints to the raw.py/.rstfile on GitHub. Two entries whose sources no longer exist were dropped, andrecording/maxonenow points to its renamed page,recording/maxwell.cors_originsforpynwb.readthedocs.ioandnwb.org, page context enabled, and a budget of $5/day and $50/month.claude-haiku-4-5for now. We plan to switch to GPT-6 Luna once it's offered through Bedrock, as discussed in NWB community: support for a self-funded OpenRouter deployment (key, model choice, doc fetching fixes) #514.Evaluation
Before proposing this, we compared this config with the current NWB Assistant on 25 NWB questions, with the same model (GPT-6 Luna), the same docs and equivalent prompts, graded blind. With the
clean_markdownfix from #514 section 4 (being worked on by @kabilansri2008-gif), OSA scored highest in both runs we did: 4.44 and 4.41 out of 5, against 4.20 for the current assistant. It also made the fewest false API claims. All of this config's sources are raw RST/Python, so that fix matters for NWB in particular.Tests
osa validate src/assistants/nwb/config.yamlpasses.pytest tests/test_assistants/test_community_yaml_generic.py -k nwb -m "": 17 passed, 3 skipped (no GitHub repos or DOIs are configured yet). This includes the network test that everysource_urlreturns 200.pytest -m "not network": 3002 passed. Excluded are tests that also fail ondevelopwithout this change in my environment:tests/test_frontend/test_workspace_export.pyand one NEMAR runtime test needbun, and five tests intests/test_integration/test_llm.pyfail withAttributeError: module 'src.cli.main' has no attribute '_server_started'.GET /nwbreturns the widget config, and/nwb/askanswers usingretrieve_nwb_docs. I tested with an OpenRouter BYOK key, since I don't have a platform key.