Skip to content

Let the Hub default decide how many assets a recall returns - #39

Merged
forrestlinfeng merged 1 commit into
mainfrom
fix/recall-default-limit
Oct 10, 2026
Merged

forrestlinfeng merged 1 commit into
mainfrom
fix/recall-default-limit

Conversation

@forrestlinfeng

Copy link
Copy Markdown
Contributor

Summary

Strategy recall no longer sends limit: 5 to /asset/fetch; the request carries only the prompt text, so the Hub's default count applies (two assets today).

Trade-off

With two candidates instead of five, a prompt whose first two candidates are both filtered out (too few steps, over 4000 chars, low similarity, or already injected this session) now injects nothing, where the 3rd–5th might have fit. /evolver-status shows this as all_filtered with the reasons, so it is visible if it happens.

Test plan

  • npm test: 101/101; tests now assert the request body carries no limit
  • Against the live Proxy without limit: 3 prompts each returned 2 assets in 2.3–3.7s, and each still had an injectable candidate

🤖 Generated with Claude Code

Strategy recall sent `limit: 5` to /asset/fetch. It now sends only the
prompt text, so the Hub's default applies (two assets today). Checked
against the live Proxy: three sample prompts each came back with two
assets in 2.3-3.7s, and each still had one priming would inject.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@forrestlinfeng
forrestlinfeng merged commit 0d4d5be into main Oct 10, 2026
8 checks passed
@forrestlinfeng
forrestlinfeng deleted the fix/recall-default-limit branch October 10, 2026 10:28
@forrestlinfeng forrestlinfeng mentioned this pull request Oct 10, 2026
forrestlinfeng added a commit that referenced this pull request Oct 10, 2026
Strategy recall lets the Hub default decide how many assets come back
instead of asking for five (#39).

Co-authored-by: forrestlinfeng <linfengchen@tencent.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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