Overview
Private RAG is a PageIndex-based vectorless RAG system that uses AES-256-GCM wallet-derived client-side encryption, runs inside the NEAR AI TEE, and stores documents on Encrypted IPFS, ensuring user documents never leave their device unencrypted.
Problem
Standard RAG systems require uploading documents to a server for embedding and retrieval, exposing sensitive data. Local-only solutions lack the compute for quality embeddings.
Technical Approach
Leveraged PageIndex for vectorless RAG and NEAR AI's TEE to run embedding models inside a hardware-enforced enclave. Documents are encrypted client-side with AES-256-GCM keys derived from the user's wallet, stored on Encrypted IPFS, and processed in the NEAR AI TEE without the host ever accessing plaintext.
Architecture
• PageIndex vectorless RAG (no vector database) • AES-256-GCM wallet-derived client-side encryption • NEAR AI TEE for secure embedding generation • Encrypted IPFS for document storage • NOVA SDK for TEE communication • React frontend with encrypted file handling
Highlights
- Winner of NEARCON Innovation Sandbox (NOVA SDK track)
- Fully client-side — no server sees plaintext
- TEE-attested execution guarantees
- Prize: $1,000
Context
Built for NEARCON Innovation Sandbox, January 2026 – March 2026.