Skip to content

v1.2.0

Choose a tag to compare

@gcomneno gcomneno released this 15 Feb 15:19

v1.2.0 — Text-based Similarity + CLI Suggest

Added

  • API: POST /similar

    • Compute similarity starting from arbitrary text (no lesson_id required)
    • Same response schema as /lessons/{id}/similar
    • Returns 503 if the model is missing
    • Returns 400 if text is empty
  • CLI: lele suggest

    • --text "..." / --file note.md / stdin pipe
    • --watch note.md --every 2 for live suggestions while writing
    • Supports --top-k, --min-score, and --json

Why it matters

You can now get similarity suggestions while writing, without first creating a lesson entry.
This unlocks a minimal “editor integration” workflow via CLI + API.

Quick smoke test

./scripts/lele-api-dev.sh
lele suggest --text "pytest src layout conftest PYTHONPATH"