Skip to content

feat: PDF-focused system prompt with search/bundle helpers and tighter iteration safeguards#151

Open
AlejandroPard0 wants to merge 1 commit into
alexzhang13:mainfrom
AlejandroPard0:feat/custom-pdf-system-prompt
Open

feat: PDF-focused system prompt with search/bundle helpers and tighter iteration safeguards#151
AlejandroPard0 wants to merge 1 commit into
alexzhang13:mainfrom
AlejandroPard0:feat/custom-pdf-system-prompt

Conversation

@AlejandroPard0
Copy link
Copy Markdown

Summary

  • Replace the generic English system prompt in rlm/utils/prompts.py with a focused, PDF-aware prompt that exposes search_pages, get_bundle, and summarize_pages helpers directly in the system instructions.
  • Enforce a concrete search-then-bundle strategy so the model acts immediately on iteration 0 without asking for permission or clarification.
  • Tighten the iteration-0 safeguard message to instruct the model to inspect context and execute REPL code right away.
  • Minor auto-generated peer-dependency flag updates in visualizer/package-lock.json.

Test plan

  • Run an RLM query against a multi-page PDF and verify the model executes REPL code on the first iteration without prompting for permission.
  • Confirm search_pages / get_bundle / summarize_pages are correctly referenced in the system prompt and available in the REPL namespace.
  • Run existing test suite (pytest) to ensure no regressions.

🤖 Generated with Claude Code

… iteration safeguards

- Replace generic English system prompt with a focused prompt that exposes
  search_pages / get_bundle / summarize_pages helpers and enforces a
  concrete search-then-bundle strategy so the model acts on the first
  iteration without asking for permission.
- Tighten the iteration-0 safeguard message so the model inspects
  `context` immediately instead of waiting for a follow-up user turn.
- Minor package-lock.json peer-dependency flag updates (auto-generated).

Co-Authored-By: Claude Sonnet 4.6 <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