-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchart_script.py
More file actions
68 lines (58 loc) · 1.39 KB
/
chart_script.py
File metadata and controls
68 lines (58 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Create a comprehensive technical architecture diagram for JourneyLens
diagram_code = """
flowchart TD
subgraph "Frontend Layer"
A[Next.js React App]
B[Role Views<br/>CSM/AE/Support]
C[Dashboard UI]
end
subgraph "Backend Layer"
D[FastAPI Backend]
E[Auth Service]
F[API Routes]
end
subgraph "AI/ML Pipeline"
G[LLM Service<br/>OpenAI/Local]
H[RAG Pipeline]
I[Embeddings<br/>Transformers]
J[Intent Analysis]
end
subgraph "Data Layer"
K[(PostgreSQL<br/>Accounts/Contacts)]
L[(Vector DB<br/>Embeddings)]
end
subgraph "External"
M[File Upload<br/>txt/md files]
N[CRM Integration]
end
%% Data Flow 1: Upload → Process → Store
M --> D
D --> H
H --> I
I --> L
L --> K
%% Data Flow 2: Query → Retrieve → Generate
A --> D
D --> H
H --> L
L --> G
G --> A
%% Data Flow 3: Feedback → Evaluate → Improve
A --> E
E --> K
K --> J
J --> G
%% Component connections
A --> B
B --> C
D --> E
E --> F
N --> D
"""
# Create the mermaid diagram
png_path, svg_path = create_mermaid_diagram(
diagram_code,
'journeylens_architecture.png',
'journeylens_architecture.svg'
)
print(f"Architecture diagram saved to {png_path} and {svg_path}")