Skip to content

docs(sdk): document silent truncation at recall() default limit#278

Open
DCSteve96 wants to merge 2 commits into
MystenLabs:devfrom
DCSteve96:docs/recall-limit-silent-truncation
Open

docs(sdk): document silent truncation at recall() default limit#278
DCSteve96 wants to merge 2 commits into
MystenLabs:devfrom
DCSteve96:docs/recall-limit-silent-truncation

Conversation

@DCSteve96

Copy link
Copy Markdown

Addresses #271 (docs side).

recall() defaults to limit: 10 and truncates silently — the response carries no flag, and total can't serve as one (after the client-side maxDistance filter it mirrors results.length). Until the API can signal truncation, this labels the foot-gun where developers meet it: JSDoc on RecallOptions.limit and a warning callout in the SDK API reference.

Real-world impact: our Session 4 agent (Kairos · World Cup) computed wrong accuracy stats because a prediction-history recall was capped at 10 with no indication.

Happy to mirror the note in the Python SDK docs if useful.

@jessiemongeon1

jessiemongeon1 commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Style Guide Audit

All 1 file(s) pass the style guide audit.

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.

2 participants