Dev Design Library

RAG Chat Block

Streaming grounded RAG over its OWN text/PDF corpus — token-by-token answers through the engine-owned generator (granite-4.0-350M) with [n] markers upgraded to hover-card inline citations resolved to retrieved sources (PDF page attribution.

RAG Chat Block preview
Library
LocalMode
Framework
React
Type
block
License
MIT
Dependencies
@localmode/core, @localmode/langchain, @localmode/pdfjs, @localmode/react, @localmode/transformers, lucide-react
Install
npx shadcn add @localmode/ui/ui/blocks/knowledge/rag-chat
Files
  • apps/ui/src/app/blocks/knowledge/rag-chat/rag-chat.tsx
  • packages/core/src/index.ts
  • packages/react/src/index.ts
  • packages/transformers/src/index.ts
  • apps/ui/registry/localmode/local-first/model-downloader/model-downloader.tsx
  • apps/ui/registry/localmode/data-documents/chunk-boundary-visualizer/chunk-boundary-visualizer.tsx
  • apps/ui/registry/localmode/data-documents/file-dropzone/file-dropzone.tsx
  • apps/ui/registry/localmode/data-documents/indexed-document-card/indexed-document-card.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode