Home / Companies / Neon / Blog / Post Details
Content Deep Dive

Build an end-to-end RAG pipeline entirely in psql using pgrag and DeepSeek

Blog post from Neon

Post Details
Company
Date Published
Author
George MacKerron
Word Count
2,150
Company Posts That Month
23
Language
English
Hacker News Points
-
Post removed?
No
Summary

Neon's open-source extension, pgrag, facilitates building an end-to-end Retrieval-Augmented Generation (RAG) pipeline entirely within PostgreSQL (psql) by integrating features like PDF-to-text conversion, local embedding generation, and AI API requests. The RAG pipeline operates by taking user questions, retrieving relevant information, and using this data to prompt an AI chat model for an informed response. pgrag simplifies the creation of this pipeline by allowing the entire process to be managed with SQL commands, eliminating the need for multiple programming languages and libraries. The extension includes features for text extraction from various file types, splitting text into chunks, generating embeddings using models that can run locally or through third-party APIs, and reranking document chunks to enhance response accuracy. This streamlined approach, which can be deployed directly on the Neon platform or on other PostgreSQL servers, aims to provide an efficient and user-friendly method for setting up RAG pipelines.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
RAG 29 2,188 259 95 +39%
Vector Search 26 2,869 338 116 -34%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.