@dcyfr/ai-rag — RAG Library

Retrieval-Augmented Generation library for the @dcyfr/ai ecosystem. Semantic search, document chunking, vector store integrations, and context-aware retrieval pipelines. Published on npm.
Technologies: TypeScript, Node.js, npm, pgvector, Zod

Document ingestion pipeline: chunk, embed, and index arbitrary content with configurable splitters.

Vector store adapters: pgvector (PostgreSQL), in-memory, and extensible provider interface.

Context-window-aware retrieval: scores, ranks, and packs the most relevant chunks into the available token budget.

Integrates natively with @dcyfr/ai delegation framework for RAG-augmented agent tasks.

Links:

npm

GitHub

Packages