About
Your RAG embeddings are a row in someone else's database. One expired credit card and your retrieval layer has amnesia.
Arkivector is pgvector for Arkiv.
pgvector is the Postgres extension with more than 23,000 GitHub stars, and it is one of the most widely used pieces of RAG infrastructure there is. It adds vector similarity search to the database you already run, so retrieval becomes one line: ORDER BY embedding <=> $1 LIMIT 5. No new service, no new query language. Now that agentic AI is everywhere, RAG matters more than ever. Agents need to look things up before they act, and pgvector sits underneath a huge share of those retrieval pipelines.
Arkiv is a chain built for data, roughly "SQL on web3". Entities have typed attributes, an owner, and an expiry block, and you query them with a filter language instead of decoding raw contract storage. As far as I could find, it had no vector search. You could store an embedding there as bytes, but you could not ask which entities are closest to it. So I rebuilt pgvector for Arkiv, using pgvector's own C code for the math.
Your app calls client.upsert(...). The daemon encodes the vector, signs an Arkiv transaction, and sends it. It mines on Arkiv, and the daemon indexes it once it reads it back from the chain. Then client.search(vector=..., k=5, filter=...) returns the nearest entities, ranked by L2, cosine, inner product, L1, Hamming, or Jaccard distance, in a single REST call, and there is an MCP endpoint so an AI agent can call search as a tool.
Why Arkiv is the point, not a checkbox:
Your RAG embeddings live on-chain. Nobody can delete or reprice them behind your back, and any Arkiv client can read them without Arkivector being online.
Arkiv's expiry is native. When an entity's expiry block passes, it drops out of search automatically—a built-in data retention policy with no cron job required.
Every search answer includes the block height, so you know exactly how fresh a result is.
The daemon is only a cache; if you wipe it, it rebuilds the whole index from Arkiv.
I tested all of this end-to-end. An upsert landed on-chain in under three seconds, synced back, and filtered vector search returned the right neighbours through both SDKs.
It is honest about its limits. Searches currently perform an exact scan, which is correct but slow on huge collections. pgvector's HNSW graph is compiled into the daemon, and wiring it to collections is next.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






