#2121st of 34 in RAG and searchFor data and documents, data analysis

rag-postgres-openai-python

RAG over Postgres table rows with hybrid search and SQL filters

Releases and problems feed (RSS)

Stars
512
License
MIT
Last commit
Oct 2026
Language
Python
Stars, last 34 weeks+36
28 Mar 2026: 476 stars4 Apr 2026: 476 stars11 Apr 2026: 478 stars18 Apr 2026: 479 stars25 Apr 2026: 481 stars2 May 2026: 481 stars9 May 2026: 481 stars16 May 2026: 482 stars23 May 2026: 482 stars30 May 2026: 483 stars6 Jun 2026: 483 stars13 Jun 2026: 487 stars20 Jun 2026: 487 stars27 Jun 2026: 487 stars4 Jul 2026: 490 stars11 Jul 2026: 491 stars18 Jul 2026: 491 stars25 Jul 2026: 493 stars1 Aug 2026: 493 stars8 Aug 2026: 494 stars15 Aug 2026: 496 stars22 Aug 2026: 497 stars29 Aug 2026: 499 stars5 Sept 2026: 501 stars12 Sept 2026: 502 stars19 Sept 2026: 502 stars26 Sept 2026: 503 stars3 Oct 2026: 503 stars10 Oct 2026: 503 stars17 Oct 2026: 504 stars24 Oct 2026: 506 stars31 Oct 2026: 507 stars7 Nov 2026: 511 stars14 Nov 2026: 512 stars21 Nov 2026: 512 stars

476 on 28 Mar 2026512 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

A FastAPI backend and React frontend that answer chat questions about rows in a PostgreSQL table. Retrieval is hybrid (pgvector similarity plus full-text search fused with RRF), an OpenAI function call turns phrases like cheaper than 30 dollars into WHERE clauses, and it runs against Azure OpenAI, OpenAI.com or Ollama; azd deploys it to Container Apps with managed identity. For teams whose knowledge is structured rows, not documents.

Who it is for: Teams whose knowledge base is structured Postgres rows

Strengths

  • Hybrid vector plus full-text search with RRF is implemented in SQL, not a vendor service
  • Provider switch by env var: Azure OpenAI, OpenAI.com or Ollama
  • Evaluation, safety evaluation and load-testing docs included
  • Tests included; dev container and Codespaces configs

Weaknesses

  • Deploy path is Azure-only (azd, Container Apps, Flexible Server)
  • Local run expects Postgres 14+ with pgvector installed yourself
  • Sample schema is one products table; multi-table questions need new code
  • No auth in the app itself

What it needs

  • Python, azure-openai, openai, ollama
  • Needs postgres-pgvector, azure-openai-or-openai-or-ollama, azd
  • GitHub template
  • env example file

Also in RAG and search

See all 34
Also in RAG and search
RankProjectScore
#19SupabaseAuthWithSSRClaude chat on Next.js 16 with Supabase auth, pgvector RAG, cost dashboards Live demo ↗ (opens in a new tab)397 starsMIT45 out of 100
#20llm-apps-java-spring-aiSpring AI sample projects for chat, RAG, tool calling and observability in Java790 starsApache-2.043 out of 100
#22generativeaiexamplesNVIDIA notebooks and sample apps for RAG, agents and NeMo microservices4.2k starsApache-2.042 out of 100
#23serverless-chat-langchainjsRAG chatbot sample on Azure Functions, Cosmos DB and LangChain.js869 starsMIT42 out of 100
#24ai-starter-kitSambaNova Python kits for document RAG, search assistant, function calling251 starsApache-2.040 out of 100