Skip to content

Commit 613b5f1

Browse files
committed
Add architecture diagram image
1 parent 0d1ebe1 commit 613b5f1

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/python-3
33
{
4-
"name": "rag-postgres-openai-python",
4+
"name": "rag-neon-postgres-openai-azure-python",
55
"dockerComposeFile": "docker-compose.yaml",
66
"service": "app",
77
"workspaceFolder": "/workspace",

.devcontainer/docker-compose.yaml

-13
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,5 @@ services:
1717
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
1818
network_mode: service:db
1919

20-
db:
21-
image: pgvector/pgvector:pg16
22-
restart: unless-stopped
23-
volumes:
24-
- postgres-data:/var/lib/postgresql/data
25-
environment:
26-
POSTGRES_DB: postgres
27-
POSTGRES_USER: admin
28-
POSTGRES_PASSWORD: postgres
29-
30-
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
31-
# (Adding the "ports" property to this file will not forward from a Codespace.)
32-
3320
volumes:
3421
postgres-data:

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,20 @@ This project is designed for deployment on **Azure**, hosting:
3939

4040
## Architecture diagram
4141

42-
The deployed app uses a user-assigned managed identity to authenticate to Azure services, and stores logs in Log Analytics.
4342

44-
![Architecture diagram: Azure Container Apps, Azure Container Registry, Managed Identity, Azure OpenAI, Azure Database for PostgreSQL](docs/images/azure_architecture.png)
43+
![Architecture diagram: Azure Container Apps, Azure Container Registry, Managed Identity, Azure OpenAI, Neon Serverless Postgres](docs/images/rag-neon-azure-architecture-diagram.png)
44+
45+
## Azure Resources Used
46+
47+
| Service | Purpose |
48+
|-----------------------------|----------------------------------------------|
49+
| **Neon Serverless Postgres**| Stores and queries structured data |
50+
| **Azure OpenAI** | Embedding and chat models for RAG |
51+
| **Azure Container Apps** | Deploys the API backend and frontend |
52+
| **Azure Container Registry** | Stores and manages containerized images for frontend and backend |
53+
| **Azure Developer CLI** | Automates deployment and resource management |
54+
| **Azure Log Analytics** | Monitors application logs and metrics |
55+
4556

4657
## Getting started
4758

Loading

0 commit comments

Comments
 (0)