ArweaveRAG
ArweaveRAG enables AI agents to retrieve provenance-verified information from permanent knowledge bases stored on Arweave.
Problem Statement
Current Retrieval-Augmented Generation (RAG) systems suffer from fundamental trust and longevity issues:
Traditional RAG systems reference URLs that can go offline
No reliable way to verify whether cited sources are authentic
Knowledge bases depend on centralized providers
AI agents are trained on unreliable or manipulated data
No proof exists for what data an agent accessed to generate responses
Solution
A decentralized RAG system that provides:
Permanently stored documents on Arweave
Vector embeddings with cryptographic source provenance
Auditable retrieval receipts
Permanent citation links (ar://...)
Cross-session agent memory
Technical Stack
ComponentTechnology
| Smart Contract | AssemblyScript (WASM) |
| Storage | Arweave permanent storage |
| Embeddings | 384-dimension vectors |
| Index | On-chain key–value storage |
Amadeus Integration
FeatureUsage
| uPoW | Generate document embeddings |
| WASM | Knowledge base registry |
| State Proofs | Retrieval audit trail |
| Agent Memory | Session context persistence |
| Oracle Streams | Document ingestion |
| Swarm Coordination | Distributed search |
Key Files
docs/CONCEPT_DECK.md — Full concept deck
diagrams/architecture.md — Architecture diagrams
src/rag_contract.ts — Smart contract
src/sdk.ts — Amadeus SDK
Revenue Model
ActionFee (AMA)
| Document Upload | 0.05 |
| RAG Query | 0.001 |
| KB Subscription | 10 / month |