PIM PAM

Changelog

Release Notes

Track the latest updates, new features, and improvements to the PIM AI Global platform.

v2.2.0June 2026Feature

Latest Models, Survey-Scale Querying & Word Export

  • Upgraded to the latest AI models: Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5, GPT-5.5, GPT-5.4 Mini, GPT-5.4 Nano, Gemini 2.5 Pro, Gemini 2.5 Flash, and Mistral Large
  • Collection inventory awareness: the assistant now sees the full catalogue of every report in a collection, so it can report exact totals, build summary tables by country and year, and survey the whole corpus — not just the top retrieved passages
  • Deeper retrieval: up to 60 source passages per query (previously 8), with much larger context budgets for richer multi-document synthesis
  • Longer answers: comprehensive, structured responses (e.g. multi-stage analyses across many countries) no longer cut off mid-way
  • Download any answer as a Word document — question, model, full answer, and source citations included
  • Model picker now shows exact versions, and each answer reports which model generated it
  • Fixed Gemini 2.5 streaming so its answers render correctly
v2.1.0May 2026Feature

Registry, Admin Console & Automated Updates

  • New Registry page: browse every catalogued report by collection, filter by country and category, and toggle to the latest report per country/category
  • Admin console for operators: trigger catalogue refreshes and document ingestion on demand, with a live activity log of recent runs
  • Monthly automated refresh: scrapers check the IMF (PIMA) and World Bank Open Knowledge Repository sources for newly published reports and add them to the registry
  • Optional failure alerting: operators can receive email or webhook notifications if an automated refresh encounters a problem
  • Robust ingestion pipeline: PDF download, page-aware chunking, and embedding, with safeguards for very large and irregularly-encoded documents
v2.0.0May 2026Release

PEFA Collection & Unified Embeddings

  • Added a fourth collection: PEFA National Reports — Public Expenditure and Financial Accountability assessments from the PEFA Secretariat
  • Unified all four collections on OpenAI text-embedding-3-large (3,072 dimensions) for higher-quality semantic search across the board
  • Added Google Gemini and Mistral as answer-generation options alongside Claude and GPT
  • Upgraded vector indexes to HNSW for faster, more accurate retrieval at scale
  • Homepage architecture diagram now shows all four collections with live, self-updating document counts
v1.3.0April 2026Feature

Caching, Observability & Polish

  • Embedding cache: repeated queries skip the OpenAI embedding API call (30-day TTL, Supabase-backed)
  • Response cache: identical query+collection+model combinations return instant cached answers (24-hour TTL)
  • X-Cache HIT/MISS headers on all query responses for transparency
  • Structured query logging with timing breakdown (embedding, retrieval, LLM generation)
  • Analytics dashboard at /analytics with latency charts, cache hit rates, and token usage
  • Copy-to-clipboard button on AI-generated answers
  • Query history stored in localStorage with one-click recall
  • Row-Level Security (RLS) enabled on all Supabase tables
  • Environment variable validation via Zod at startup
v1.2.0April 2026Feature

UX Quick Wins & Security Hardening

  • Markdown rendering for AI answers — headings, lists, bold, tables, code blocks display correctly
  • Keyboard shortcut: Cmd/Ctrl+Enter submits query from the textarea
  • SEO metadata: Open Graph tags, Twitter cards, and per-page titles across all pages
  • Security headers: X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy
  • Accessibility improvements: ARIA labels on form controls, aria-live on streaming content, aria-expanded on mobile nav
  • Updated tech specs and About page to reflect multi-LLM support
v1.1.0April 2026Feature

Performance Optimization & Multi-LLM

  • Multi-LLM router: choose between Claude Sonnet, Claude Haiku, Claude Opus, GPT-4o, GPT-4o Mini, and o3-mini
  • Response streaming via Server-Sent Events (SSE) — answers appear in real-time
  • Rate limiting: 20 requests per minute per IP with Retry-After headers
  • Stats endpoint optimization: 12 queries reduced to 3 parallel RPCs with 60s caching
  • Code quality: runtime type validation, proper error handling, unique constraints on chunk tables
  • Removed unused browser Supabase client, fixed page number calculation in ingestion
v1.0.0April 2026Release

PIM AI Global — Initial Platform Launch

  • Launched PIM AI Global RAG platform with Next.js 16, Tailwind CSS, and TypeScript
  • Three curated vector databases: Global PIM Good Practices, IMF PIMA Reports, and World Bank Public Finance Reviews
  • Semantic search powered by OpenAI text-embedding-3-small (1,536 dimensions) with Supabase pgvector
  • AI-powered answer generation with source citation
  • Multi-format document ingestion pipeline supporting PDF, DOCX, and TXT files
  • Real-time collection statistics dashboard with technical specifications
  • Query interface with collection selector dropdown and similarity-ranked source display
  • PIM PAM branding with official logo in header and footer
  • Responsive design with dark navy header/footer matching pim-pam.ai styling
  • Deployed on Vercel with environment-based configuration
v0.1.0April 2026Feature

Document Ingestion & Vector Database Setup

  • Ingested 12 Global PIM Good Practices documents (~8,111 text chunks)
  • Ingested 107 IMF PIMA Reports covering 30+ countries from 2016–2025 (~13,886 chunks)
  • Ingested 316 World Bank Public Finance Reviews spanning 2015–2026 (~161,884 chunks)
  • Supabase pgvector schema with IVFFlat indexing (100 lists) for fast cosine similarity search
  • RPC functions for similarity matching and collection statistics aggregation
  • Intelligent text chunking (1,000 chars with 200-char overlap) for optimal retrieval