
We built three memory systems. The most expressive one wasn’t the most useful.
Facts, then a knowledge graph, then a tree. The most expressive system wasn’t the most useful, and the reason shaped searchgres.js.
By John Pruitt
October 22nd, 2026
J
By Jacky Liang
April 8th, 2025
2 min

Developers using Timescale, pgvector, and pgai have been asking for clear guidance and best practices on building agentic RAG (retrieval-augmented generation) applications.
You’re frustrated with "RAG in 30 seconds" videos that work as shiny demos but collapse instantly when applied to real production workloads.
You've scrolled through endless X/Twitter threads but can't tell which advice is actually reliable for your specific business use case.
You’re tired of finding out about robust architectural decisions only after you’ve spent two weeks committed to an unscalable approach.
Is this you?
The tough part about building agentic retrieval isn’t just implementing basic retrieval, it’s deeply understanding why certain approaches work and when to try something different. Important preparation steps like choosing the right documents and files for contextual retrieval happen way before even a single line of retrieval code is written, something “complete agentic RAG cheatsheet” LinkedIn posts (there’s no doubt you’ve seen one of these) don’t ever mention.
This series will be the first to provide comprehensive guidance on building intelligent agents with pgai and pgvector, covering not just how to implement features, but why and when to use different approaches.
At Timescale, we believe that dedicated vector databases are the wrong abstraction. Most devs already use PostgreSQL—why manage another piece of infrastructure when PostgreSQL is perfectly performant for AI agent workloads too?
👉🏻 Watch the one-minute video summary.
We're creating a comprehensive guide that takes you from start to finish in building RAG applications with PostgreSQL.
The series will cover:
We're releasing a new guide every two weeks, starting today with our first article on document gathering, parsing, and loading. Each guide will provide practical, hands-on advice for implementing agentic RAG with PostgreSQL.
The complete series will also be available as an O'Reilly ebook once finished.
Our first guide on document preparation is available now. Whether you're new to AI or an experienced developer looking to implement agentic RAG with PostgreSQL, this series will give you the foundation you need.
Stay tuned for our next guide on chunking strategies, coming in two weeks.
In the meantime, we'd love to see you share your thoughts, questions, and suggestions on social media and Discord:
We're building this guide for you, so don't hesitate to let us know what topics you'd like us to cover in future installments!
// Related posts

Facts, then a knowledge graph, then a tree. The most expressive system wasn’t the most useful, and the reason shaped searchgres.js.
By John Pruitt
October 22nd, 2026
One Postgres table with two indexes beat every published RAG pipeline on MuSiQue. Every architectural addition is a bet the model stays weak.
By Matvey Arye
September 30th, 2026
No fact extraction, no graphs, no memory manager. One Postgres table and three search tools scored F1 0.665 on LoCoMo.
By Matvey Arye
September 29th, 2026
Receive the latest technical articles and release notes in your inbox.