RAG with PostgreSQL
pgdash.io
pgdash.io
Contrast that to miles of (often shoddily put together) langchain code, and this is very refreshing.
On the other hand, this approach does struggle if the chosen reference is not actually the one you want, or if the correct answer is spread over some combination of many different documents. You could add more reference documents to the prompt, but intuitively that doesn't scale with many and/or large documents.