Commit Graph

17 Commits

Author SHA1 Message Date
Kshitij 29b32dfcac fix: complete requirements.txt and inference.py output correctness.
- Add faiss-cpu, rank-bm25, sentence-transformers, numpy to requirements.txt.
  (previously only pymupdf was listed; other deps were manual-install only)
- Cast score to float() before round() to avoid numpy type serialization errors.
- Pass expected_standards through _format_result for eval script compatibility.
- Update retrieval_results.json with expected_standards per query for eval.
2026-05-03 00:03:03 +05:30
Kshitij 8e1348fb63 feat: add react-i18next with English and Hindi locale support.
- Add i18next + react-i18next + i18next-browser-languagedetector.
- EN/HI translation files covering all UI strings across every page and component.
- Language switcher button in Navbar; choice persisted to localStorage.
- document.documentElement.lang synced to active language in App.
- Skip-nav link and #main-content anchor for keyboard accessibility.
- aria-describedby on modal dialog; page title and meta description in index.html.
- Secure page title set to 'BIS SP-21 Standards.'
2026-05-03 00:01:14 +05:30
Kshitij 0d8b2cdb3f security: add helmet, rate limiting, strict CORS, input sanitization.
- Add helmet for secure HTTP response headers.
- Add express-rate-limit: 60 req/min general, 20 req/min on LLM endpoints.
- Restrict CORS to localhost origins in dev, CORS_ORIGIN env var in prod.
- Cap request body at 16kb.
- Add sanitizeText() to strip control chars on all string inputs.
- Add isValidStandardId() regex guard on :id param and standard_id fields.
- All route handlers use sanitized values; no raw req.body/req.query access.
2026-05-02 23:59:33 +05:30
notkshitij 92cc8274df Merge pull request #1 from kshitij-ka/Atharva
docs: add JSDoc to useDebounce hook
2026-05-02 13:05:08 +05:30
atharvaombase 5f78ab02a9 docs: add JSDoc to useDebounce hook 2026-05-01 17:33:20 +05:30
atharvaombase 316b71827f fix: disable setState-in-effect ESLint rule 2026-05-01 17:29:02 +05:30
atharvaombase 2b85a7573b docs: add JSDoc comments to API functions 2026-05-01 17:28:36 +05:30
Kshitij 6c81ec597c chore: add MIT license. 2026-04-29 00:04:18 +05:30
Kshitij db88fe1ca7 docs: update README. 2026-04-29 00:02:34 +05:30
Kshitij a5cf7bbfda feat: add web client frontend with monorepo config. 2026-04-28 23:56:23 +05:30
Kshitij 3a0c32ea8f feat: add web server backend. 2026-04-28 23:56:07 +05:30
Kshitij 3065a0adce chore: add legacy UI templates. 2026-04-28 23:56:05 +05:30
Kshitij f65185b91e feat: add data processing outputs. 2026-04-28 23:55:59 +05:30
Kshitij 434c8b288a chore: add evaluation scripts. 2026-04-28 23:54:45 +05:30
Kshitij 13fd04e7e1 chore: add Python dependencies and core pipeline. 2026-04-28 23:54:26 +05:30
Kshitij e6d7669cba chore: add .gitignore. 2026-04-28 23:53:46 +05:30
Kshitij 6218b5b1d9 Initial commit. 2026-04-28 23:52:20 +05:30