pgai — Running AI Directly Inside PostgreSQL
pgai extends PostgreSQL with AI capabilities: auto-embedding, semantic search, and LLM function calls—all in SQL. No external vector database required.
1575 articles
pgai extends PostgreSQL with AI capabilities: auto-embedding, semantic search, and LLM function calls—all in SQL. No external vector database required.
Master PostgreSQL indexing strategies including B-Tree for general queries, GIN for JSONB/arrays, BRIN for time-series, partial indexes, covering indexes, and how to identify unused indexes with pg_stat_user_indexes.
Learn when sharding becomes necessary, compare hash vs range vs list partitioning, explore Citus for horizontal scaling, and understand the costs of distributed queries and shard key selection.
TechCrunch publishes your launch article at 9 AM. Traffic hits 50x normal. The servers that handled your beta just fine fail under the real launch. You''ve never tested what happens above 5x. The outage is the first piece of coverage that goes viral.
Learn to defend against direct and indirect prompt injection attacks using input sanitization, system prompt isolation, and detection mechanisms.