Repository navigation
List matching papers when a method lookup misses - #38
Merged
Merged
Conversation
Papers With Code methods are general techniques; chat agents often look up a specific model or system (ViLT, BLIP-2, GSConv) with get_method, miss, and then spend another call on search_papers. Production chat missed 140 of 297 get_method calls from 2026-10-20 to 10-27, and 100 of those turns fell back to a paper lookup. A "Method not found" miss now runs one keyword paper search for the name and appends the top three hits as "Title (paper ID)", with titles cut at a word boundary so the whole error stays within the ~400 characters chat clients keep. A failed or empty search keeps the original error. Keyword mode stays off the semantic search rate limit. Release pwc-mcp 0.2.12. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
LIVE on the production MCP component as 125ffe0 (pwc-mcp 0.2.12, 2026-10-27). Verified with real misses: ViLT → paper 4996 (ViLT, arXiv 2102.03334) listed first, which get_paper_info resolves; BLIP-2 → paper 12644. Miss messages are about 340 characters, and 'transformer' still resolves as a method. The public paperswithcode.co/mcp endpoint returns the same. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Papers With Code methods are general techniques reused across many papers. Chat agents often call
get_methodfor a specific model or system (ViLT, BLIP-2, GSConv), miss, and then spend a second call onsearch_papers. In production chat from 2026-10-20 to 10-27, 140 of 297get_methodcalls missed (47%), and 100 of those turns fell back to a paper lookup afterwards.huggingface/paperswithcode#752 already tells the chat model that specific models are papers. In an offline probe, model-name method lookups dropped from 100% to 19–38%, but some still slip through. This PR makes those remaining misses useful.
Change
get_method"Method not found" miss now runs onekeywordpaper search for the same name and appends the top three hits:not_found: Method not found: ViLT; closest results: ViT, CLIP; papers matching it (likely a model or system, not a method): ViLT: Vision-and-Language Transformer Without Convolution… (paper 2102.03334); …keywordmode keeps this lookup off the semantic-search rate limit.SKILL.md'sget_methodline says a miss lists papers and to callget_paper_infowith one of their IDs. Releasespwc-mcp0.2.12.Validation
uv run --group dev pytest -q tests/inmcp_server: 91 passed. New tests cover:ruff checkis clean on the changed files.Rollout
Production picks this up with an MCP component deploy:
The chat app vendors
SKILL.mdasPWC_MCP_SKILL.md. Re-vendoring is optional, since the error text itself carries the instruction.🤖 Generated with Claude Code