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

Azure-Samples/rag-postgres-openai-python

 
 

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.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Contributors 9

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy