AI Initiative logoAI Initiative
Reading room / Manthan

ADR 0002 — Substrate: Postgres + pgvector

ADR 0002 — Substrate: Postgres + pgvector. Covers Context; Decision; Consequences; Alternatives considered.

Architecture decision record
This is the retained source text, not a new validation of its claims. Numerical results and comparative claims require the accompanying source review before public reuse.

Read the connected case study or article →

Not explicitly stated in source · 2026-05-05

Provenance, authorship and editorial notes

ADR 0002 — Substrate: Postgres + pgvector

Id

manthan-docs-adr-0002-postgres-pgvector

Project

Manthan

Source path

manthan/docs/adr/0002-postgres-pgvector.md

Source sha256

48571440b7cb5ca828132232d27403b0e430829924eff0a76ea560f83f3d81fb

Local copy sha256

48571440b7cb5ca828132232d27403b0e430829924eff0a76ea560f83f3d81fb

Repo head

3a94084024a3434cef331fecac91c2c3b43f0313

Date

2026-05-05

Date basis

Explicit document metadata

Author

Not explicitly stated in source

Author basis

Unknown; Git committer not substituted for document author.

Last source commit

d0ae20170b4edc4c72854c292225a138601e0423

Last source commit date

2026-05-05T08:53:56Z

Document status

Architecture decision record

Summary

ADR 0002 — Substrate: Postgres + pgvector. Covers Context; Decision; Consequences; Alternatives considered.

Topics
  • Exploration architecture and selection
  • Context
  • Decision
  • Consequences
Theme

Exploration architecture and selection

Priority

reference

Related ids
  • manthan-readme
  • manthan-docs-architecture
  • manthan-docs-business-overview
  • manthan-docs-demo-walkthrough
  • manthan-docs-principles
  • manthan-docs-qd-measurement-direction-plan
  • manthan-docs-swarm-evolution-integration
Evidence concerns
  • Recovered source text is preserved verbatim. Assertions, comparisons, commands and results belong to its original context; they were not re-executed or externally re-verified during this corpus review.
Word count

306

Bytes

2162

Source relative

docs/adr/0002-postgres-pgvector.md

Remote mirror

manthan/docs/adr/0002-postgres-pgvector.md

Full text preserved

True

ADR 0002 — Substrate: Postgres + pgvector

Status: Accepted
Date: 2026-05-05

Context

Substrate must store: artefacts (ideas, prototypes, opportunities), lineage graph, agent state, embeddings for semantic search, full-text/keyword search, structured metadata. Targeted scale for v0: O(10⁵) artefacts, O(10⁶) lineage edges, single-region single-machine deployment. Long-term ceiling envisaged: O(10⁸) artefacts.

Decision

Postgres 16 as the primary store, with pgvector for embeddings and pg_trgm for trigram-based fuzzy/keyword search.

Single Postgres instance covers the full data model:

Consequences

Alternatives considered

Continue exploring