Build RAG pipelines with pgflow and Postgres
mainpgflow allows you to move Retrieval-Augmented Generation (RAG) orchestration directly into Postgres. This approach addresses the complexities of vector embedding pipelines, such as detecting content changes, chunking content, calling embedding APIs, storing results, and handling retries without blocking database writes.
Key capabilities covered in the RAG series include:
- Automatic Embeddings: Ingesting, chunking, and embedding data automatically upon
INSERT. - Keeping Data Fresh: Handling updates and deletes to maintain synchronization.
- Advanced Retrieval: Implementing techniques like Hypothetical Document Embeddings (HyDE), reranking, and LLM-augmented retrieval.
- Conversational RAG: Implementing chat functionality with conversation history.