Open-source GraphRAG · Apache-2.0

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.

$ pip install quipugraph && quipu install $DATABASE_URL

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.

The usual fix

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.

quipu

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.

Any managed Postgres

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.

Multi-tenant

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).

Your schema

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.

Multi-hop retrieval

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.

Time-aware

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.

Any language

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)

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 PostgresDB-enforced tenancySchema per tenantTemporal factsMulti-hop retrieval
quipuyesRLSyesyesfacts + PageRank
Zep / GraphitiNeo4j / FalkorDB / cloudapp namespacesyesyeshybrid search
Mem0vector DB + graph DB / clouduser idsnopartialgraph add-on
Cogneeseveral stores / clouddatasetsyesnograph + vector
Microsoft GraphRAGfilesnononocommunity summaries
LightRAGfiles / variousnononokeyword 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

$0

Apache-2.0. Self-run everything.

  • SQL engine, SDKs, MCP
  • Any Postgres
  • Community support

Cloud Free

$0

For prototypes.

  • 1 project
  • 2M extraction tokens/mo
  • Bring your Postgres or 500 MB hosted

Cloud Pro

$49/mo

For products in production.

  • 5 projects, 20M tokens/mo
  • Connectors: Drive, Notion, Slack, GitHub…
  • Console, evals, email support

Team & Enterprise

$299/mo

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.

Join the waitlist on GitHub Discussions

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.