Skip to content

A RAG app to ask questions about rows in a database table. Deployable on Azure Container Apps with PostgreSQL Flexible Server.

License

Notifications You must be signed in to change notification settings

bijx/rag-postgres-openai-python-ghu

 
 

Repository files navigation

RAG on PostgreSQL

  1. Copy .env.sample into a .env file.

  2. Run these commands to install the web app as a local package (named rag_app), set up the local database, and seed it with test data:

    python -m pip install -e src/backend
    python ./src/backend/rag_app/setup_postgres_database.py
    python ./src/backend/rag_app/setup_postgres_seeddata.py
  3. Run the FastAPI backend (with hot reloading). This should be run from the root of the project:

    python -m uvicorn rag_app:create_app --factory --reload

About

A RAG app to ask questions about rows in a database table. Deployable on Azure Container Apps with PostgreSQL Flexible Server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 57.1%
  • Bicep 19.9%
  • TypeScript 16.2%
  • CSS 3.5%
  • Shell 1.5%
  • PowerShell 1.0%
  • Other 0.8%