Skip to content

v2.3.0 - Local RAG

Choose a tag to compare

@codewithkenzo codewithkenzo released this 04 Jan 04:29
· 24 commits to main since this release

🧠 Local RAG

Build your own knowledge base and search it offline. Zero new dependencies.

✨ Features

  • Index files: pplx --ingest notes.md
  • Index directories: pplx --ingest ./docs/
  • Glob patterns: pplx --ingest "*.md"
  • Search locally: pplx -l "my notes on rust"
  • SQLite FTS5: Fast full-text search with BM25 ranking
  • Persistence: Files copied to ~/.pplx/knowledge/

📖 Usage

# Build your knowledge base
pplx --ingest notes.md
pplx --ingest ./research/
pplx --ingest "*.md"

# Search it
pplx -l "typescript patterns"

# Or still use Perplexity API
pplx "what is bun"

🔧 Technical

  • SQLite FTS5 with porter stemming
  • BM25 ranking for relevance
  • Collision handling (notes.mdnotes_1.md)
  • Supports .md and .txt files

📊 Stats

  • 37 tests passing
  • ~900 lines of code
  • Still just 1 dependency (zod)

Full Changelog: v2.2.2...v2.3.0