@artale/pi-rag

Local RAG pipeline. BM25 keyword search over indexed files. Zero cloud, zero deps, fully offline.

Packages

Package details

extension

Install @artale/pi-rag from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@artale/pi-rag
Package
@artale/pi-rag
Version
1.0.0
Published
Mar 8, 2026
Downloads
36/mo · 4/wk
Author
artale
License
MIT
Types
extension
Size
14.4 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "commands": [
    "rag"
  ],
  "tools": [
    "rag_index",
    "rag_query",
    "rag_status"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@artale/pi-rag

Local RAG pipeline for pi. BM25 keyword search over indexed files. Zero cloud, zero external deps.

Install

npm install -g @artale/pi-rag

Features

  • Index files or directories — chunks text, stores for search
  • BM25 keyword search — returns relevant chunks with file paths and line numbers
  • Stats — file count, chunk count, total tokens
  • Fully offline — all data in ~/.pi/rag/

Tools

  • rag_index — Index a file or directory
  • rag_query — Search indexed content
  • rag_status — Index statistics

Commands

  • /rag — RAG pipeline operations