Skip to content

New Feature: PubMed Review Streaming Tool

Choose a tag to compare

@kmaneesh kmaneesh released this 07 Jan 16:02
· 17 commits to main since this release
561894e

New Feature: PubMed Review Streaming Tool

Added pubmed_review() - a high-efficiency literature review generator that uses streaming writes to create formatted markdown documents without loading full content into LLM context. Key Features:

  • ~70% token savings by writing directly to filesystem (metadata-only returns)
  • Handles 100+ articles without memory issues using streaming architecture
  • Three output formats: full (default), summary, minimal
  • Obsidian integration with YAML frontmatter support
  • Statistics tracking: PMC/DOI counts, year ranges, top journals
  • Batch processing: Fetches 20 articles at a time with immediate writes

Example:

pubmed_review(
    query="BRCA1 AND breast cancer AND 2020:2024[PDAT]",
    output_path="KB/reviews/brca1.md",
    format="full",
    max_results=50
)

Breaking Changes: None - purely additive release

What's Changed:

  • Simplified API: Year filters now handled via query string (native Entrez syntax)
  • Type-safe implementation with TypedDict for statistics tracking
  • Full code quality compliance (black, ruff, mypy)