Graph memory for AI, inside the Postgres you already run.
quipu turns your documents into a knowledge graph and answers multi-hop questions with it, entirely inside Postgres. Every customer is isolated by row level security and gets their own graph schema. It installs on RDS, Cloud SQL, Supabase, Neon and Azure with one SQL file.
Vector search finds similar text. Your users ask connected questions.
"When was the machine designed by Ada Lovelace's collaborator first described?" needs three facts from three documents. The second and third aren't similar to the question, so vector search misses them. Graph retrieval follows the links.
Add a graph database or a memory SaaS
A second datastore to secure, sync and pay for. Customer data leaves your VPC. Tenant isolation is your app's job: one missed filter and a customer sees another's data.
A schema in the Postgres you already trust
Graph, vectors, full-text and PageRank live next to your data, under your backups, your KMS and your compliance boundary. Postgres itself enforces isolation on every query.
What you get
Every part is plain SQL and plpgsql on top of pgvector. No C extension, no superuser, no second database.
Install with one SQL file
Only needs pgvector, which RDS, Aurora, Cloud SQL, AlloyDB, Azure, Supabase, Neon and Crunchy all ship. Works with any migration tool.
Isolation by row level security
App mode (one setting per transaction) or role mode (a database role pinned to a tenant that can't switch, even with raw SQL).
An ontology per tenant
Entity types, relation types, allowed endpoints and typed properties. Strict mode rejects off-schema writes; open mode grows the schema from your data.
Facts + PageRank, in SQL
BM25 and dense search find facts and passages, which seed personalized PageRank over the entity–passage graph. This is the design behind the best published multi-hop results.
Bi-temporal facts
Facts carry valid time and record time. New facts supersede old ones without deleting them, and you can query the graph as it was known on any date.
Python, TypeScript, SQL, MCP
One JSON ingest contract and one retrieve() function. The SDKs are thin, and an MCP server gives agents memory in one config line.
Five lines to a knowledge graph
Bring any embedding model and any LLM (Anthropic, OpenAI, or a local OpenAI-compatible server).
from quipu import Quipu, AnthropicLLM, OpenAIEmbedder q = Quipu("postgresql://app@db/prod", tenant="acme", embedder=OpenAIEmbedder(), llm=AnthropicLLM()) kb = q.create_graph("support", ontology={"entities": [{"name": "Product"}, {"name": "Customer"}]}) kb.add_many([{"external_id": "kb-1", "text": open("faq.md").read()}]) print(kb.ask("Which plans include SSO for EU customers?").text)
import { Quipu, AnthropicLLM, OpenAIEmbedder } from "quipugraph"; const q = new Quipu({ connectionString: process.env.DATABASE_URL, tenant: "acme", embedder: new OpenAIEmbedder(), llm: new AnthropicLLM() }); const kb = await q.createGraph("support"); await kb.add([{ externalId: "kb-1", text: faq }]); const hits = await kb.retrieve("Which plans include SSO for EU customers?");
-- the whole engine is SQL: call it from any language SELECT quipu.use_tenant('acme'); SELECT quipu.ingest('support', '{"external_id": "kb-1", "chunks": [...]}'); SELECT rank, title, content FROM quipu.retrieve('support', 'Which plans include SSO?', $1::vector, '{"k": 5, "as_of": "2026-06-01"}');
Benchmarks
Passage recall@5 on HippoRAG 2's multi-hop splits (MuSiQue, 2WikiMultihopQA, HotpotQA, 1,000 questions each, full distractor corpora). Same questions, same corpora. Reproduce with bench/run.py.
Benchmarks are running; numbers land here when they finish.
How it compares
Every alternative adds a datastore or sends your data to someone else's cloud.
| Runs in your Postgres | DB-enforced tenancy | Schema per tenant | Temporal facts | Multi-hop retrieval | |
|---|---|---|---|---|---|
| quipu | yes | RLS | yes | yes | facts + PageRank |
| Zep / Graphiti | Neo4j / FalkorDB / cloud | app namespaces | yes | yes | hybrid search |
| Mem0 | vector DB + graph DB / cloud | user ids | no | partial | graph add-on |
| Cognee | several stores / cloud | datasets | yes | no | graph + vector |
| Microsoft GraphRAG | files | no | no | no | community summaries |
| LightRAG | files / various | no | no | no | keyword levels |
Pricing
The engine is free and open source. quipu Cloud runs extraction, connectors and the console for you. You pay for the work, not for data sitting in your database.
Open source
Apache-2.0. Self-run everything.
- SQL engine, SDKs, MCP
- Any Postgres
- Community support
Cloud Free
For prototypes.
- 1 project
- 2M extraction tokens/mo
- Bring your Postgres or 500 MB hosted
Cloud Pro
For products in production.
- 5 projects, 20M tokens/mo
- Connectors: Drive, Notion, Slack, GitHub…
- Console, evals, email support
Team & Enterprise
SSO, SLA, self-hosted console.
- Unlimited projects, SSO
- 99.9% SLA
- Enterprise: VPC, SCIM, audit
quipu Cloud is in private beta
Tell us what you'd build with it, and we'll reach out when there's a spot.
How retrieval works
Extract
An LLM reads each passage and writes entities and subject–predicate–object facts, following the tenant's ontology. A compact output format halves extraction cost.
Store
One quipu.ingest() call upserts passages, entities, facts, mentions and provenance, with embeddings and full-text vectors, in one transaction.
Seed
A question finds facts (BM25 + dense). Their entities, weighted by specificity, and the closest passages become seeds.
Walk
Personalized PageRank spreads from the seeds through facts, synonyms and mentions. Passages two or three hops away rise to the top.