Skip to content

add_keywords: fast mode by default - #48

Merged
bruel-gabrielsson merged 1 commit into
devfrom
feat/fast-keywords-default
Oct 22, 2026
Merged

bruel-gabrielsson merged 1 commit into
devfrom
feat/fast-keywords-default

Conversation

@bruel-gabrielsson

Copy link
Copy Markdown
Contributor

add_keywords now runs fast mode by default (fast=True), and the request always names the mode: {"mode": "fast"} or, with fast=False, {"mode": "product"}. Before, the default sent no body and got the server's default, per-product. Fast mode is 6 to 10 times faster (a 19,000-item catalog took 12 minutes, against 1 to 2 hours per 20,000 items per product), with about 3 keywords per item instead of 9.

Docstrings, docs/catalogs.md, the README comment and the embed-catalog skill now describe fast mode as the default and fast=False as the slower option with more keywords.

embed(..., keywords=True) has no mode in the API; it takes the worker's default, which Unbox-AI/unbox-worker#7 sets to fast. Its docstring here assumes that is deployed, so release this after the worker.

This changes a default, so it should go out as a minor release.

@bruel-gabrielsson
bruel-gabrielsson merged commit 70419a6 into dev Oct 22, 2026
3 checks passed
@bruel-gabrielsson
bruel-gabrielsson deleted the feat/fast-keywords-default branch October 22, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant