v2.4.0 - True RAG
🧠 True RAG (Retrieval-Augmented Generation)
The -l flag now implements true RAG - your local documents become AI context.
How It Works
# 1. Build your knowledge base
pplx --ingest notes.md
pplx --ingest ./research/
# 2. Ask questions with local context
pplx -l "explain my notes on rust"
# [local] Found 2 relevant doc(s), using as context...
# [sonar] Based on your notes, Rust is...What Changed
Before: -l just searched and printed results, then exited
After: -l searches → injects top matches as context → sends to Perplexity → streams AI answer
Technical Details
- SQLite FTS5 with BM25 ranking finds most relevant docs
- Top 3 matches injected as context (4000 char limit)
- UTF-8 safe truncation (won't break emojis)
- Cost-efficient: only sends relevant content, not entire knowledge base
New Tests
- 41 tests (up from 37)
- Coverage for RAG truncation, Unicode handling, OR queries
Full Changelog: v2.3.1...v2.4.0