Azure-Samples/rag-postgres-openai-python
A web-based chat application that uses OpenAI models to answer natural language questions about data stored in a PostgreSQL database table.

Not currently ranked — collecting fresh signals.
star history
This project builds a RAG (Retrieval-Augmented Generation) system combining vector and keyword search. The backend uses FastAPI and leverages pgvector for semantic vector search and PostgreSQL full-text search, merging results via Reciprocal Rank Fusion. OpenAI embeddings convert user queries and database content into vectors, while OpenAI chat models generate responses based on retrieved context.
Frequently asked
- What is Azure-Samples/rag-postgres-openai-python?
- A web-based chat application that uses OpenAI models to answer natural language questions about data stored in a PostgreSQL database table.
- Is rag-postgres-openai-python open source?
- Yes — Azure-Samples/rag-postgres-openai-python is open source, released under the MIT license.
- What language is rag-postgres-openai-python written in?
- Azure-Samples/rag-postgres-openai-python is primarily written in Python.
- How popular is rag-postgres-openai-python?
- Azure-Samples/rag-postgres-openai-python has 497 stars on GitHub.
- Where can I find rag-postgres-openai-python?
- Azure-Samples/rag-postgres-openai-python is on GitHub at https://github.com/Azure-Samples/rag-postgres-openai-python.