{
  "id": 18480457,
  "title": "RAG Pipeline Utils v3.8: Testing RAG Answers in TypeScript",
  "url": "https://urgent.news/2026/11/06/rag-pipeline-utils-v3-8-testing-rag-answers-in-typescript",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-06T10:07:03.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/devildev/rag-pipeline-utils-v38-testing-rag-answers-in-typescript-4dle"
  },
  "original_language": "en",
  "account": "RAG Pipeline Utils 3.8 brings TypeScript support for testing Retrieval-Augmented Generation (RAG) answers. The new matchers, toBeGroundedIn, toCite, and toContainNoPII, now compile with TypeScript types, enabling developers to catch errors early in the development process. A new guide provides a step-by-step setup process using Vitest, covering unit tests, answer checks, and evaluation tests. By implementing these tests, developers can ensure that RAG answers are accurate and adhere to specified constraints. The guide also highlights a shift towards fewer development dependencies and updated packages, all of which have undergone rigorous testing and validation.",
  "summary": "v3.8.0 is about testing RAG in TypeScript. The answer matchers now compile with types, and a new guide walks through the whole setup with Vitest, from a unit test to a test set that fails CI when answers get worse. Nothing breaks for existing code. npm install @devilsdev/rag-pipeline-utils@^3.8.0 The matchers, with types @devilsdev/rag-pipeline-utils/testing has had three matchers for a while:…",
  "key_points": [
    "RAG Pipeline Utils 3.8 introduces TypeScript support for testing RAG answers.",
    "New matchers toBeGroundedIn, toCite, and toContainNoPII enable early error detection.",
    "Guide provides step-by-step setup using Vitest for unit, answer, and evaluation tests."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}