@flowrag/storage-json
v1.1.4
Published
π JSON file KV storage for FlowRAG - documents, chunks, and cache as Git-friendly files
Readme
@flowrag/storage-json
KV storage implementation using JSON files on disk. Git-friendly, human-readable.
Installation
npm install @flowrag/storage-jsonUsage
import { JsonKVStorage } from '@flowrag/storage-json';
const kv = new JsonKVStorage({ path: './data/kv' });
await kv.set('doc:readme', { content: 'Hello world' });
const doc = await kv.get('doc:readme');
const keys = await kv.list('doc:');
await kv.delete('doc:readme');
await kv.clear();Storage Layout
data/kv/
βββ doc:readme.json
βββ chunk:readme:0.json
βββ extraction:a1b2c3.json # LLM cache
βββ docHash:doc:readme.json # Incremental indexingLicense
MIT
