You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ai): address PR #4 review findings for safety, security, and routing
- Separate ObjectBox lookup from query routing so storage errors no
longer bypass emergency/off-topic detection (safety-critical)
- Guard Bearer token to trusted Hugging Face hosts only, preventing
token leakage to arbitrary download URLs
- Tighten personal-lab regex patterns to require medical terms after
possessive pronouns, fixing false positives like "is my code correct"
- Make QueryRouter resolve the intent classifier lazily via getter so
Stage 2 embedding classification activates once loaded, not only if
ready at screen init
- Wrap HNSW query in try/finally to prevent resource leak on error
- Fix emergency number to list both 911/112 for multi-region support
- Correct "HuggingFace" brand spelling to "Hugging Face"
- Remove unused routingFailedLog constant
0 commit comments