Skip to content

feat: making the mediaWiki engine prompts conciser!#228

Merged
amindadgar merged 2 commits intomainfrom
feat/226-mediawiki-search-agent
Oct 29, 2025
Merged

feat: making the mediaWiki engine prompts conciser!#228
amindadgar merged 2 commits intomainfrom
feat/226-mediawiki-search-agent

Conversation

@amindadgar
Copy link
Member

@amindadgar amindadgar commented Oct 29, 2025

Summary by CodeRabbit

  • Refactor
    • Streamlined assistant prompts to produce shorter, more focused search responses.
    • Standardized end-of-answer formatting so every response concludes with a "References:" section listing retrieved pages.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 29, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The DEFAULT_SYSTEM_PROMPT and agent prompt suffix in the MediaWiki query engine were streamlined: verbose rules, citation format examples, and the "IMPORTANT" note were removed or condensed, and the end-of-answer reminder was reworded. No method signatures or public interfaces were changed.

Changes

Cohort / File(s) Change Summary
MediaWiki Query Engine Prompt Simplification
utils/query_engine/media_wiki.py
Shortened DEFAULT_SYSTEM_PROMPT and agent suffix: removed detailed RULES/CITATION FORMAT examples and the "IMPORTANT" block; replaced final-answer instruction with a concise reminder to end answers with References: listing retrieved page titles. No API or signature changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Single-file, text-only edits
  • No logic or interface changes
  • Review focus: verify prompt wording and that required References: directive is present

Possibly related PRs

Poem

🐰 I hopped through lines of verbose prose,

trimmed the hedges where long text grows.
Short and tidy now each reply,
with References: to close, goodbye! 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "feat: making the mediaWiki engine prompts conciser!" directly and clearly summarizes the main changes in the changeset. The changes involve reducing and simplifying the DEFAULT_SYSTEM_PROMPT and agent prompt suffix in the MediaWiki query engine to be more concise, which is exactly what the title describes. The title is specific, single-sentence, and avoids vague language or noise, making it easy for teammates to understand the primary change when scanning the repository history.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e64fb4e and 61fa98c.

📒 Files selected for processing (1)
  • utils/query_engine/media_wiki.py (2 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@amindadgar amindadgar merged commit da98f8d into main Oct 29, 2025
2 checks passed
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