Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 777 Bytes

File metadata and controls

21 lines (18 loc) · 777 Bytes

TODO: Code Quality Improvements

High Priority

  • Add tests (tests directory is empty)
    • Unit tests for vectorstore search
    • Unit tests for citation validation
    • Integration tests for API endpoints

Medium Priority

  • Configure CORS properly for production
    • Add ALLOWED_ORIGINS setting to config.py
    • Update main.py to use configured origins instead of "*"

Low Priority

  • Add argilla as optional dependency in pyproject.toml
    • argilla>=2.0.0 in [project.optional-dependencies]
  • Replace deprecated datetime.utcnow() with datetime.now(timezone.utc)
    • In argilla_sync.py (lines 143, 173)
    • In admin.py (line 57)
  • Improve temp file handling in admin.py load_jsonl endpoint
    • Use context manager pattern more cleanly