-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchitecture.html
More file actions
2023 lines (1869 loc) · 78.2 KB
/
Copy patharchitecture.html
File metadata and controls
2023 lines (1869 loc) · 78.2 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>{{SYSTEM_NAME}} · Architecture</title>
<!--
============================================================
ARCHITECTURE DIAGRAM TEMPLATE — drop-in for any system
Generated by the architecture-diagrams skill.
EDIT THESE THINGS (everything else stays untouched):
1. <title> above and <h1> in <header>
2. The legend in .legend (one .item per role you use)
3. The .modepick buttons (mode toggle labels)
4. The .flowtabs (one .flowtab per scenario)
5. The .node divs inside .stage (one per service)
6. The `flows` JS object at the bottom (scenario definitions)
7. (Optional) Re-color CSS variables in :root
============================================================
-->
<!-- Remove the three font <link> tags below for fully offline use; fonts fall back to system UI. -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root{
/* Dark base, tuned for didactic clarity */
--bg: #0a0d12;
--bg-2: #0f1419;
--panel: #121821;
--panel-2: #182030;
--border: #1f2937;
--border-2: #2a3650;
--text: #e6edf7;
--muted: #8492a8;
--dim: #5a6679;
/* component colors — each role has its own */
--c-user: #46f9b8; /* mint */
--c-orch: #6aa9ff; /* sky */
--c-compute: #ff6b8a; /* magenta */
--c-embed: #ffc14d; /* amber */
--c-vector: #b388ff; /* violet */
--c-seed: #ff9457; /* orange */
/* Brand accents */
--brand-violet: #a201ff;
--brand-mint: #46f9b8;
--radius: 14px;
--radius-sm: 8px;
--shadow-soft: 0 10px 30px rgba(0,0,0,.45);
--shadow-pop: 0 0 0 1px rgba(255,255,255,.04), 0 18px 50px rgba(0,0,0,.55);
--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
--sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
background: var(--bg);
color: var(--text);
font-family: var(--sans);
font-feature-settings: "ss01","ss02","cv11";
min-height:100vh;
overflow-x:hidden;
background-image:
radial-gradient(1200px 600px at 15% -10%, rgba(106,169,255,.07), transparent 60%),
radial-gradient(1000px 500px at 100% 0%, rgba(162,1,255,.06), transparent 60%),
radial-gradient(800px 600px at 50% 120%, rgba(70,249,184,.04), transparent 60%);
}
/* faint grid */
body::before{
content:"";
position:fixed; inset:0; pointer-events:none; z-index:0;
background-image:
linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
/* ───────── header ───────── */
header{
position:relative; z-index:2;
padding: 36px 32px 12px;
max-width: 1480px; margin: 0 auto;
}
.eyebrow{
display:inline-flex; align-items:center; gap:8px;
font-family: var(--mono); font-size:11px; letter-spacing:.18em;
color: var(--muted); text-transform: uppercase;
padding: 6px 10px;
border:1px solid var(--border);
border-radius: 999px;
background: rgba(255,255,255,.015);
}
.eyebrow .dot{
width:6px; height:6px; border-radius:50%; background: var(--brand-mint);
box-shadow: 0 0 12px var(--brand-mint);
}
h1{
margin: 16px 0 6px;
font-size: clamp(28px, 3.6vw, 44px);
font-weight: 600; letter-spacing:-.02em;
line-height: 1.05;
}
h1 .accent{
background: linear-gradient(90deg, var(--brand-mint), var(--c-orch) 50%, var(--brand-violet));
-webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub{
color: var(--muted); font-size: 15px; max-width: 70ch;
margin: 0;
}
/* ───────── controls bar ───────── */
.controls{
position:relative; z-index:2;
max-width: 1480px; margin: 28px auto 0; padding: 0 32px;
display:flex; flex-wrap:wrap; gap:18px;
align-items:center; justify-content:space-between;
}
.modepick{
display:inline-flex; padding:4px;
background: var(--panel); border:1px solid var(--border);
border-radius: 12px;
}
.modepick button{
border:0; background:transparent; color: var(--muted);
font-family: var(--sans); font-weight:500; font-size:13px;
padding: 9px 16px; border-radius: 8px; cursor:pointer;
display:inline-flex; align-items:center; gap:8px;
transition: all .25s ease;
}
.modepick button .pill{
font-family: var(--mono); font-size:10px;
padding: 2px 6px; border-radius: 4px;
background: rgba(255,255,255,.05); color: var(--muted);
}
.modepick button[aria-pressed="true"]{
background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
color: var(--text);
box-shadow: inset 0 0 0 1px var(--border-2);
}
.modepick button[aria-pressed="true"][data-mode="local"] .pill{ background: rgba(106,169,255,.16); color: var(--c-orch); }
.modepick button[aria-pressed="true"][data-mode="remote"] .pill{ background: rgba(162,1,255,.18); color: #d9a6ff; }
.legend{
display:flex; flex-wrap:wrap; gap:14px;
font-family: var(--mono); font-size:11px; color: var(--muted);
}
.legend .item{ display:inline-flex; align-items:center; gap:6px; }
.legend .swatch{ width:10px; height:10px; border-radius:3px; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
/* ───────── flow tabs ───────── */
.flowtabs{
position:relative; z-index:2;
max-width: 1480px; margin: 18px auto 0; padding: 0 32px;
display:flex; flex-wrap:wrap; gap:8px;
}
.flowtab{
appearance:none; border:1px solid var(--border);
background: var(--panel); color: var(--muted);
font-family: var(--mono); font-size: 12px; letter-spacing:.04em;
padding: 10px 14px; border-radius: 10px;
display:inline-flex; align-items:center; gap:10px;
cursor:pointer; transition: all .2s ease;
}
.flowtab .num{
font-size:10px;
background: rgba(255,255,255,.06); color: var(--muted);
padding: 2px 6px; border-radius: 4px;
}
.flowtab:hover{ color: var(--text); border-color: var(--border-2); }
.flowtab[aria-pressed="true"]{
border-color: var(--brand-mint);
color: var(--text);
background: linear-gradient(180deg, rgba(70,249,184,.10), rgba(70,249,184,.02));
box-shadow: 0 0 0 4px rgba(70,249,184,.06);
}
.flowtab[aria-pressed="true"] .num{
background: var(--brand-mint); color: #08120e;
}
/* ───────── main layout ───────── */
main{
position:relative; z-index:1;
max-width: 1480px; margin: 22px auto 80px; padding: 0 32px;
display:grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px;
align-items: start;
}
@media (max-width: 1180px){
main{ grid-template-columns: 1fr; }
}
/* ───────── canvas (the diagram) ───────── */
.canvas{
position:relative;
background:
radial-gradient(800px 400px at 50% 20%, rgba(106,169,255,.06), transparent 60%),
linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
border: 1px solid var(--border);
border-radius: 18px;
padding: 36px 28px 28px;
min-height: 540px;
box-shadow: var(--shadow-soft);
overflow: hidden;
}
.canvas::before{
content:""; position:absolute; inset:0; pointer-events:none;
background-image:
linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
background-size: 32px 32px;
mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
}
.canvas-head{
display:flex; justify-content:space-between; align-items:center;
margin-bottom: 18px; position:relative; z-index:2;
}
.canvas-title{
font-family: var(--mono); font-size:11px; letter-spacing:.16em;
color: var(--muted); text-transform: uppercase;
}
.player{
display:flex; gap:6px; align-items:center;
font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.player button{
appearance:none; border:1px solid var(--border); background: var(--panel-2);
color: var(--muted); cursor:pointer;
width: 30px; height: 30px; border-radius: 8px;
display:inline-flex; align-items:center; justify-content:center;
transition: all .15s ease;
}
.player button:hover{ color: var(--text); border-color: var(--border-2); }
.player button[aria-pressed="true"]{
background: rgba(70,249,184,.12); border-color: var(--brand-mint); color: var(--brand-mint);
}
.player .stepidx{
padding: 0 10px; min-width: 64px; text-align:center;
}
/* flow progress bar */
.progress-track{
width:100%; height: 3px; background: var(--border);
border-radius: 2px; margin-top: 4px;
grid-column: 1 / -1;
}
.progress-fill{
height:100%; border-radius: 2px;
background: var(--brand-mint);
transition: width .35s ease;
box-shadow: 0 0 8px rgba(70,249,184,.3);
}
/* ── stage where nodes & svg live ── */
.stage{
position:relative;
width: 100%;
height: 460px;
}
.stage svg.wires{
position:absolute; inset:0; width:100%; height:100%;
pointer-events:none;
}
/* node */
.node{
position:absolute;
width: 150px;
padding: 14px 14px 12px;
background: var(--panel-2);
border: 1px solid var(--border-2);
border-radius: var(--radius);
box-shadow: var(--shadow-soft);
transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease, border-color .25s ease, box-shadow .25s ease;
z-index: 2;
cursor: pointer;
user-select: none;
touch-action: none;
}
.node.dragging{
z-index: 100;
cursor: grabbing;
transition: none;
box-shadow: 0 0 0 2px var(--c), 0 20px 60px rgba(0,0,0,.5);
transform: scale(1.04);
}
/* Hover affordance — every node lifts and reveals its role color, so
viewers learn "these are clickable". Click = jump to first step where
this node appears in the current flow. */
.node:hover{
border-color: color-mix(in srgb, var(--c) 60%, var(--border-2));
transform: translateY(-1px);
box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.node:hover .label{ color: var(--c); }
.node:focus-visible{
outline: 2px solid var(--c);
outline-offset: 4px;
}
.node .label{
font-size: 13px; font-weight: 600; letter-spacing:-.01em;
margin: 0 0 4px;
}
.node .tech{
font-family: var(--mono); font-size: 10.5px; color: var(--muted);
line-height: 1.4;
}
.node .port{
margin-top: 8px;
font-family: var(--mono); font-size: 10.5px;
color: var(--c-orch);
}
.node .icon{
width: 28px; height: 28px; border-radius: 8px;
display:inline-flex; align-items:center; justify-content:center;
margin-bottom: 8px;
background: rgba(255,255,255,.04);
border: 1px solid var(--border-2);
}
.node[data-role="user"] { --c: var(--c-user); }
.node[data-role="orch"] { --c: var(--c-orch); }
.node[data-role="compute"] { --c: var(--c-compute); }
.node[data-role="embed"] { --c: var(--c-embed); }
.node[data-role="vector"] { --c: var(--c-vector); }
.node[data-role="seed"] { --c: var(--c-seed); }
.node .icon{ color: var(--c); }
.node::before{
content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px;
background: var(--c); border-radius: 3px;
opacity:.7;
}
/* hidden nodes when mode mismatched */
.node.hidden{ opacity: 0; transform: scale(.92); pointer-events: none; }
/* shake feedback when a non-participating node is clicked */
@keyframes node-shake {
0%, 100%{ transform: translateX(0); }
20%{ transform: translateX(-4px); }
40%{ transform: translateX(4px); }
60%{ transform: translateX(-3px); }
80%{ transform: translateX(2px); }
}
/* active node = TARGET of the active step (full color, ring, badge) */
.node.active{
border-color: var(--c);
box-shadow:
0 0 0 1px var(--c),
0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent),
var(--shadow-pop);
transform: translateY(-2px);
}
/* active-from node = SOURCE of the active step (full color, softer ring,
no badge). Lets the viewer see WHERE the data is coming from this step. */
.node.active-from{
border-color: var(--c);
box-shadow:
0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent),
0 0 0 4px color-mix(in srgb, var(--c) 10%, transparent),
var(--shadow-soft);
opacity: .95;
}
/* participant = appears somewhere in this flow but not in this step.
Stays visible at near-full color so viewer can see the whole flow path
at a glance. Critical for didactic clarity — without this, only the
active node is visible and the rest look "dead". */
.node.participant{
opacity: .8;
filter: saturate(.85);
}
/* dimmed = NOT in this flow at all (e.g. Seed node during the ask flow) */
.node.dimmed{ opacity: .25; filter: saturate(.4); }
/* node small badge (step number sticker) */
.node .step-badge{
position:absolute; top:-10px; right:-10px;
width:24px; height:24px; border-radius:50%;
background: var(--c); color:#0a0d12;
font-family: var(--mono); font-weight:600; font-size: 11px;
display:flex; align-items:center; justify-content:center;
opacity: 0; transform: scale(.6);
transition: opacity .2s ease, transform .25s cubic-bezier(.2,1.2,.2,1);
box-shadow: 0 4px 14px rgba(0,0,0,.4), 0 0 0 2px var(--bg-2);
}
.node.has-badge .step-badge{ opacity:1; transform: scale(1); }
/* ── wire styles (SVG) ── */
.wire{
fill:none;
stroke: var(--border-2);
stroke-width: 1.5;
stroke-dasharray: 4 6;
opacity: .55;
transition: opacity .3s ease, stroke .3s ease;
}
/* active = current step's wire (full color, glow, packet animates) */
.wire.active{
stroke: var(--wire-color, var(--brand-mint));
stroke-width: 2.5;
stroke-dasharray: 0;
opacity: 1;
filter: drop-shadow(0 0 6px var(--wire-color, var(--brand-mint)));
}
/* preview = other steps of CURRENT flow — show the full path at once */
.wire.preview{
stroke: var(--wire-color, var(--border-2));
stroke-width: 1.5;
stroke-dasharray: 3 5;
opacity: .5;
}
/* muted = wires that don't belong to this flow at all */
.wire.muted{ opacity: .08; }
/* moving data packet */
.packet{
r: 5;
fill: var(--wire-color, var(--brand-mint));
filter: drop-shadow(0 0 8px var(--wire-color, var(--brand-mint)));
opacity: 0;
}
.packet.run{ opacity: 1; }
/* tiny wire label */
.wire-label{
font-family: var(--mono); font-size: 10px;
fill: var(--muted);
paint-order: stroke;
stroke: var(--bg-2); stroke-width: 4;
transition: fill .3s ease;
}
.wire-label.active{ fill: var(--wire-color, var(--brand-mint)); font-weight: 600; }
.wire-label.preview{ fill: var(--muted); opacity: .8; }
/* ───────── side panel ───────── */
aside{
position: sticky; top: 18px;
background:
linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
border: 1px solid var(--border);
border-radius: 18px;
padding: 20px 20px 18px;
box-shadow: var(--shadow-soft);
min-height: 540px;
display:flex; flex-direction:column;
}
.panel-head{
display:flex; justify-content:space-between; align-items:flex-start;
gap: 12px;
padding-bottom: 14px;
border-bottom: 1px dashed var(--border);
}
.panel-step{
font-family: var(--mono); font-size: 11px; letter-spacing:.16em;
color: var(--muted); text-transform: uppercase;
}
.panel-step strong{
color: var(--text); font-weight: 600;
}
.panel-mode{
font-family: var(--mono); font-size: 10px;
padding: 4px 8px; border-radius: 6px;
background: rgba(255,255,255,.04); color: var(--muted);
border:1px solid var(--border);
}
.panel-mode[data-mode="local"]{ color: var(--c-orch); border-color: rgba(106,169,255,.3); }
.panel-mode[data-mode="remote"]{ color: #d9a6ff; border-color: rgba(162,1,255,.35); }
.panel-title{
font-size: 18px; font-weight: 600; margin: 14px 0 4px;
letter-spacing:-.01em;
}
.panel-route{
font-family: var(--mono); font-size: 12px;
color: var(--muted); margin-bottom: 12px;
display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.panel-route .from, .panel-route .to{
color: var(--text);
padding: 3px 7px; border-radius: 6px;
background: rgba(255,255,255,.04);
border:1px solid var(--border);
}
.panel-route .arrow{ color: var(--brand-mint); }
.panel-desc{
color: var(--muted); font-size: 13.5px; line-height: 1.55;
margin: 0 0 14px;
}
.panel-desc em{ color: var(--text); font-style: normal; }
.panel-payload{
font-family: var(--mono); font-size: 11.5px;
background: #08111c;
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px 14px;
color: #c9d6e8;
overflow:auto; max-height: 260px;
line-height: 1.6;
margin: 0 0 14px;
white-space: pre;
-webkit-overflow-scrolling: touch;
}
.panel-payload .k{ color: #ffc14d; }
.panel-payload .s{ color: #46f9b8; }
.panel-payload .n{ color: #b388ff; }
.panel-payload .c{ color: var(--muted); }
.panel-meta{
margin-top:auto; padding-top: 12px;
border-top: 1px dashed var(--border);
display:flex; gap: 8px; flex-wrap:wrap;
}
.chip{
font-family: var(--mono); font-size: 10.5px;
padding: 5px 9px; border-radius: 999px;
background: rgba(255,255,255,.035); border:1px solid var(--border);
color: var(--muted);
}
.chip.lat::before{ content:"⏱ "; color: var(--brand-mint); }
.chip.size::before{ content:"⛁ "; color: var(--c-vector); }
/* prev/next */
.step-nav{
display:flex; gap:8px; margin-top: 14px;
}
.step-nav button{
flex:1; padding: 9px 12px;
background: var(--panel-2); color: var(--text);
border:1px solid var(--border); border-radius: 9px;
font-family: var(--sans); font-size: 12.5px; cursor:pointer;
transition: all .15s ease;
display:inline-flex; align-items:center; justify-content:center; gap:6px;
}
.step-nav button:hover{ border-color: var(--brand-mint); color: var(--brand-mint); }
.step-nav button:disabled{ opacity:.4; cursor:not-allowed; }
/* footer / legend below */
.scenario-note{
position: relative; z-index: 2;
max-width: 1480px; margin: 14px auto 0; padding: 0 32px;
color: var(--dim); font-size: 12px;
font-family: var(--mono);
}
.scenario-note kbd{
font-family: var(--mono); font-size: 11px;
padding: 2px 6px; border-radius: 4px;
background: var(--panel-2); border:1px solid var(--border); color: var(--text);
}
/* mobile adjustments */
@media (max-width: 720px){
header{ padding: 24px 18px 8px; }
.controls, .flowtabs, main, .scenario-note{ padding-left: 18px; padding-right: 18px; }
main{ gap:18px; }
.canvas{ padding: 22px 14px 18px; }
.stage{ height: 420px; }
.node{ width: 132px; padding: 12px; }
.node .label{ font-size: 12px; }
.node .tech{ font-size: 10px; }
aside{ position: static; }
}
/* keyboard focus rings */
button:focus-visible, .flowtab:focus-visible{
outline: 2px solid var(--brand-mint); outline-offset: 2px;
}
/* ───────── light theme ───────── */
body.light{
--bg: #f6f7fa;
--bg-2: #ffffff;
--panel: #ffffff;
--panel-2: #f1f3f8;
--border: #e2e6ee;
--border-2: #c8d0dd;
--text: #0f1419;
--muted: #555f70;
--dim: #8492a8;
--c-user: #00b377;
--c-orch: #2a6fdb;
--c-compute: #d63a5f;
--c-embed: #c98a00;
--c-vector: #7a4ed1;
--c-seed: #d96e2c;
--brand-violet: #7a1cd9;
--brand-mint: #00b377;
--shadow-soft: 0 4px 18px rgba(15,20,25,.06);
--shadow-pop: 0 0 0 1px rgba(15,20,25,.04), 0 8px 24px rgba(15,20,25,.08);
background-image:
radial-gradient(1200px 600px at 15% -10%, rgba(42,111,219,.05), transparent 60%),
radial-gradient(1000px 500px at 100% 0%, rgba(122,28,217,.04), transparent 60%),
radial-gradient(800px 600px at 50% 120%, rgba(0,179,119,.03), transparent 60%);
}
body.light::before{
background-image:
linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
}
body.light .panel-payload{
background: #f0f2f7;
color: #1e2838;
border-color: var(--border);
}
body.light .panel-payload .k{ color: #a16800; }
body.light .panel-payload .s{ color: #00855a; }
body.light .panel-payload .n{ color: #6b3faf; }
body.light .eyebrow{ background: rgba(0,0,0,.02); }
body.light .eyebrow .dot{ box-shadow: 0 0 8px var(--brand-mint); }
body.light .legend .swatch{ box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
body.light .wire-label{ stroke: var(--panel); stroke-width: 5; }
body.light .node{ box-shadow: 0 2px 8px rgba(0,0,0,.06); }
body.light .node.active{ box-shadow: 0 0 0 1px var(--c), 0 0 0 6px color-mix(in srgb, var(--c) 12%, transparent), 0 4px 16px rgba(0,0,0,.08); }
body.light .wire.active{ filter: drop-shadow(0 0 4px var(--wire-color, var(--brand-mint))); }
body.light .chip{ background: rgba(0,0,0,.04); }
body.light aside{ background: linear-gradient(180deg, rgba(0,0,0,.01), rgba(0,0,0,.005)); }
/* theme toggle */
.theme-toggle, .layout-reset, .fullscreen-toggle{
appearance:none; border:1px solid var(--border); background: var(--panel);
color: var(--muted); cursor:pointer;
width: 34px; height: 34px; border-radius: 10px;
display:inline-flex; align-items:center; justify-content:center;
transition: all .2s ease;
flex-shrink: 0;
}
.theme-toggle:hover, .layout-reset:hover, .fullscreen-toggle:hover{ color: var(--text); border-color: var(--border-2); }
.layout-reset{ display:none; }
.layout-reset.has-custom{ display:inline-flex; }
.theme-toggle .icon-sun{ display:none; }
body.light .theme-toggle .icon-moon{ display:none; }
body.light .theme-toggle .icon-sun{ display:block; }
/* fullscreen canvas */
.canvas.is-fullscreen{
position:fixed; inset:0; z-index:9999;
border-radius:0; margin:0; max-width:none;
min-height:100vh;
overflow:auto;
}
.canvas.is-fullscreen .stage{ height: calc(100vh - 80px); }
.canvas.is-fullscreen ~ aside{ display:none; }
</style>
</head>
<body>
<header>
<!-- 1. Top-of-page text. Change SYSTEM_NAME, the accented words, and the subtitle. -->
<span class="eyebrow"><span class="dot"></span> SELF-HOSTED RAG PIPELINE</span>
<h1>Self-Hosted RAG <span class="accent">Doc Chat Prototype</span></h1>
<p class="sub">Distributed document ingestion, vector storage, and retrieval-augmented chat. Built for air-gapped environments with optional remote endpoints via HAProxy.</p>
</header>
<div class="controls">
<!-- 2. Mode toggle. Rename or add a 3rd button if you have 3 modes.
data-mode values become keys in JS — keep them snake_case. -->
<div class="modepick" role="tablist" aria-label="Deployment mode">
<button data-mode="local" aria-pressed="true">Local <span class="pill">Docker Compose</span></button>
<button data-mode="remote" aria-pressed="false">Remote <span class="pill">HAProxy</span></button>
</div>
<!-- 3. Legend. One .item per role used in the diagram. Order = visual priority. -->
<div class="legend" aria-label="Component legend">
<span class="item"><span class="swatch" style="background:var(--c-user)"></span> User</span>
<span class="item"><span class="swatch" style="background:var(--c-orch)"></span> Orchestration</span>
<span class="item"><span class="swatch" style="background:var(--c-compute)"></span> Compute/LLM</span>
<span class="item"><span class="swatch" style="background:var(--c-embed)"></span> Preprocessor</span>
<span class="item"><span class="swatch" style="background:var(--c-vector)"></span> Datastore</span>
<span class="item"><span class="swatch" style="background:var(--c-seed)"></span> Job/Cron</span>
</div>
<!-- 3b. Theme toggle (dark/light). -->
<button class="theme-toggle" id="btnTheme" title="Toggle light/dark theme (T)" aria-label="Toggle theme">
<svg class="icon-moon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
<svg class="icon-sun" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
</button>
<!-- 3c. Reset layout (appears only after user drags nodes). -->
<button class="layout-reset" id="btnResetLayout" title="Reset node positions (R)" aria-label="Reset layout">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>
</button>
<!-- 3d. Fullscreen toggle for canvas (F). -->
<button class="fullscreen-toggle" id="btnFullscreen" title="Fullscreen (F)" aria-label="Toggle fullscreen">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg>
</button>
</div>
<!-- 4. Flow tabs. One per scenario. data-flow must match a key in the JS `flows` object.
Aim for 3-6 flows; more than 6 clutters the bar. -->
<nav class="flowtabs" aria-label="Scenarios">
<button class="flowtab" data-flow="rag_query" aria-pressed="true"><span class="num">1</span> RAG Query (POST /api/v1/query)</button>
<button class="flowtab" data-flow="doc_ingest" aria-pressed="false"><span class="num">2</span> Document Ingest (PDF/Text)</button>
<button class="flowtab" data-flow="direct_llm" aria-pressed="false"><span class="num">3</span> Direct LLM (No RAG)</button>
<button class="flowtab" data-flow="media_ingest" aria-pressed="false"><span class="num">4</span> Media Ingest (Audio/Video)</button>
</nav>
<p class="scenario-note">Shortcuts: <kbd>Space</kbd> play/pause · <kbd>←</kbd>/<kbd>→</kbd> step · <kbd>1</kbd>–<kbd>5</kbd> flow · <kbd>O</kbd> mode · <kbd>T</kbd> theme · <kbd>F</kbd> fullscreen · <kbd>R</kbd> reset layout · Drag nodes to reposition</p>
<main>
<section class="canvas" aria-label="Architecture diagram">
<div class="canvas-head">
<span class="canvas-title">Pipeline · <span id="flowName">RAG Query</span></span>
<div class="player" role="group" aria-label="Playback controls">
<button id="btnPrev" title="Previous step (←)" aria-label="Previous step">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<button id="btnPlay" title="Play/Pause (Space)" aria-label="Play/Pause" aria-pressed="false">
<svg id="playIcon" width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><polygon points="6 4 20 12 6 20 6 4"/></svg>
</button>
<button id="btnNext" title="Next step (→)" aria-label="Next step">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"/></svg>
</button>
<span class="stepidx" id="stepIdx">0 / 0</span>
</div>
</div>
<div class="progress-track"><div class="progress-fill" id="progressFill" style="width:0%"></div></div>
<div class="stage" id="stage">
<!--
5. NODE LIST. One <div class="node"> per service in the system.
Required attributes:
data-id — unique snake_case id, referenced from flow steps (e.g. "orch", "vector")
data-role — one of: user / orch / compute / embed / vector / seed
Drives the accent color via CSS variable --c (see :root).
style — left/top in % for percentage-based positioning.
Place User on the left (~2%), datastores/terminal nodes on the right (~78%),
orchestrator/API gateway in the middle. Vertical: spread to avoid wire crossings.
Optional mode-aware attributes (the JS reads these on mode change):
On <div class="label"> data-label-MODE-A / data-label-MODE-B
On <div class="tech"> data-tech-MODE-A / data-tech-MODE-B
On <div class="port"> data-port-MODE-A / data-port-MODE-B
(Default visible text should match the initial mode.)
The .step-badge is the floating numeric chip that appears when a node is active.
Keep it as-is; the JS populates it.
Icons: 14×14 SVGs. Pick a Feather-style outline icon that visually matches the role.
Library of icons is in references/component-library.md.
-->
<!-- User / Browser / Astro Frontend -->
<div class="node" data-role="user" data-id="user" style="left: 2%; top: 38%;">
<div class="icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
</div>
<div class="label">User (Browser)</div>
<div class="tech">Astro v6 · Tailwind v4 · daisyUI</div>
<div class="port" data-port-local="http://localhost:4321" data-port-remote="http://frontend:4321">http://localhost:4321</div>
<span class="step-badge">·</span>
</div>
<!-- API Gateway / FastAPI Orchestrator -->
<div class="node" data-role="orch" data-id="orch" style="left: 26%; top: 38%;">
<div class="icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
</div>
<div class="label">FastAPI Gateway</div>
<div class="tech">Python 3.12 · FastAPI · uvicorn</div>
<div class="port" data-port-local="http://localhost:8000" data-port-remote="http://api:8000">http://localhost:8000</div>
<span class="step-badge">·</span>
</div>
<!-- Embedding Model (e5-large-v2) -->
<div class="node" data-role="embed" data-id="embed" style="left: 52%; top: 8%;">
<div class="icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="9" y1="21" x2="9" y2="9"/></svg>
</div>
<div class="label">Embedding Model</div>
<div class="tech" data-tech-local="e5-large-v2 · 1024-dim" data-tech-remote="Remote Embeddings API">e5-large-v2 · 1024-dim</div>
<div class="port" data-port-local="http://localhost:11434" data-port-remote="http://haproxy_embd:11438/v1">http://localhost:11434</div>
<span class="step-badge">·</span>
</div>
<!-- Vector Database (Qdrant/Chroma) -->
<div class="node" data-role="vector" data-id="vector" style="left: 52%; top: 70%;">
<div class="icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14a9 3 0 0 0 18 0V5"/><path d="M3 12a9 3 0 0 0 18 0"/></svg>
</div>
<div class="label" data-label-local="Qdrant" data-label-remote="Qdrant (Remote)">Qdrant</div>
<div class="tech" data-tech-local="qdrant/qdrant v1.12.5 · COSINE" data-tech-remote="Qdrant Cluster · COSINE">qdrant/qdrant v1.12.5 · COSINE</div>
<div class="port" data-port-local="http://localhost:6333" data-port-remote="http://remote-qdrant:6333">http://localhost:6333</div>
<span class="step-badge">·</span>
</div>
<!-- LLM (Phi-3.5-mini-instruct) -->
<div class="node" data-role="compute" data-id="llm" style="left: 78%; top: 38%;">
<div class="icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44A2.5 2.5 0 0 1 4 18a2.5 2.5 0 0 1-1.55-4.45A2.5 2.5 0 0 1 4 9a2.5 2.5 0 0 1 1.55-4.45A2.5 2.5 0 0 1 9.5 2z"/><path d="M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44A2.5 2.5 0 0 0 20 18a2.5 2.5 0 0 0 1.55-4.45A2.5 2.5 0 0 0 20 9a2.5 2.5 0 0 0-1.55-4.45A2.5 2.5 0 0 0 14.5 2z"/></svg>
</div>
<div class="label">Main LLM</div>
<div class="tech" data-tech-local="llama-cpp-python · Phi-3.5-mini Q6_K" data-tech-remote="Remote llama-server (OpenAI-compatible)">llama-cpp-python · Phi-3.5-mini Q6_K</div>
<div class="port" data-port-local="http://localhost:11435" data-port-remote="http://haproxy_supervisor:11437/v1">http://localhost:11435</div>
<span class="step-badge">·</span>
</div>
<!-- Worker Pipeline (Gatekeeper → Producer → Consumer) -->
<div class="node" data-role="seed" data-id="workers" data-modes="local" style="left: 26%; top: 70%;">
<div class="icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22V8"/><path d="M5 12c0-3.5 3-7 7-7"/><path d="M19 12c0-3.5-3-7-7-7"/></svg>
</div>
<div class="label">Worker Pipeline</div>
<div class="tech">6 workers · Redis queues · DuckDB state</div>
<div class="port">Gatekeeper → Producer → Consumer</div>
<span class="step-badge">·</span>
</div>
<!--
TO ADD MORE NODES: duplicate any block above, update data-id (must be unique),
data-role (color), and the inline left/top %. Then reference the new data-id
from the flows[].steps[].from/to fields below.
-->
<!-- SVG wires, drawn after nodes so we can compute positions from JS -->
<svg class="wires" id="wires" aria-hidden="true">
<defs>
<!-- arrowhead markers per color -->
<marker id="ah-mint" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L6,3 L0,6 Z" fill="var(--brand-mint)"/>
</marker>
<marker id="ah-sky" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L6,3 L0,6 Z" fill="var(--c-orch)"/>
</marker>
<marker id="ah-amber" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L6,3 L0,6 Z" fill="var(--c-embed)"/>
</marker>
<marker id="ah-violet" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L6,3 L0,6 Z" fill="var(--c-vector)"/>
</marker>
<marker id="ah-mag" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L6,3 L0,6 Z" fill="var(--c-compute)"/>
</marker>
<marker id="ah-orange" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L6,3 L0,6 Z" fill="var(--c-seed)"/>
</marker>
</defs>
<!-- wires populated by JS -->
</svg>
</div>
</section>
<aside aria-label="Current step details" id="sidepanel">
<div class="panel-head">
<div class="panel-step">STEP <strong id="panelStepIdx">—</strong> / <span id="panelStepTotal">—</span></div>
<div class="panel-mode" id="panelMode" data-mode="local">LOCAL</div>
</div>
<div class="panel-title" id="panelTitle">—</div>
<div class="panel-route" id="panelRoute"></div>
<p class="panel-desc" id="panelDesc">Select a flow and press Play to see details.</p>
<pre class="panel-payload" id="panelPayload"></pre>
<div class="panel-meta" id="panelMeta"></div>
<div class="step-nav">
<button id="btnPrev2">← Previous</button>
<button id="btnNext2">Next →</button>
</div>
</aside>
</main>
<script>
/* ─────────────────────────────────────────────────────────────────────
ARCHITECTURE DIAGRAM — interactive flow visualization
Flow data is single source of truth.
───────────────────────────────────────────────────────────────────── */
const flows = {
/* ════════════════════════════════════════════════════════════════════════
FLOWS — the heart of the diagram. Each key is one scenario the user picks
from the tab bar at the top. Steps run in order; the active step lights up
one wire and one target node, and the side panel shows the payload + chips.
Schema:
<flow_key>: {
name: "Display name shown in the panel header",
note: "(optional) One-liner for the panel sub-line",
onlyMode: "offline", // (optional) if set, flow auto-switches mode
// when user is in another mode
onlineNote: "...", // (optional) text shown when flow is offline-only
steps: [
{
from: "node_id", // source node (must exist as data-id above)
to: "node_id", // target node
color: "--c-orch", // CSS variable for the wire color; pick from --c-*
title: "Step title",
route: "POST /endpoint", // tiny route hint shown next to from→to
desc: "Plain HTML description. Use <em> for emphasis, <code> inline.",
// ONE of these three payload variants:
payload: "...", // same in both modes
payloadOffline: "...", // mode-specific (rename keys to match your modes)
payloadOnline: "...",
// optional chips below payload (auto-styled by content):
chips: ["~50ms LAN", "no auth"],
chipsOffline: [...], // mode-specific override
chipsOnline: [...]
},
...more steps
]
}
════════════════════════════════════════════════════════════════════════ */
/* ───── Flow 1: RAG Query — main pipeline (query → embed → search → LLM) ───── */
rag_query: {
name: "RAG Query (POST /api/v1/query)",
note: "Main pipeline. Demonstrates retrieval-augmented generation with citation tracking.",
steps: [
{
from:"user", to:"orch", color:"--c-user",
title:"User asks a question",
route:"POST /api/v1/query",
desc:"<em>User submits a question</em> from the Astro frontend. The request includes an optional <code>session_id</code> for conversation history and <code>limit</code> for the number of chunks to retrieve.",
payloadLocal:
`POST /api/v1/query
Content-Type: application/json
{
"query": "What is the RAG pipeline architecture?",
"session_id": "abc-123",
"limit": 5
}`,
payloadRemote:
`POST /api/v1/query
Content-Type: application/json
Authorization: Bearer <ID-TOKEN>
{
"query": "What is the RAG pipeline architecture?",
"session_id": "abc-123",
"limit": 5
}`,
chips:["~10ms LAN","~50ms WAN"]
},
{
from:"orch", to:"embed", color:"--c-embed",
title:"Embed the query",
route:"POST /v1/embeddings",
desc:"FastAPI calls the embedding model to convert the query text into a 1024-dim vector using <code>e5-large-v2</code>. Through HAProxy in remote mode for load balancing.",
payloadLocal:
`POST http://localhost:11434/v1/embeddings
{
"input": "query: What is the RAG pipeline architecture?",
"model": "e5-large-v2"
}`,
payloadRemote:
`POST http://haproxy_embd:11438/v1/embeddings
{
"input": "query: What is the RAG pipeline architecture?",
"model": "e5-large-v2"
}`,
chips:["1024 dim","~100ms"]
},
{
from:"embed", to:"orch", color:"--c-embed",
title:"Receive query vector",
route:"vector[1024]",
desc:"The embedding model returns a 1024-dimensional float array representing the query semantic meaning.",
payload:
`{
"embedding": [0.023, -0.156, 0.892, ..., 0.445],
"model": "e5-large-v2",
"usage": {"tokens": 12}
}`,
chips:["1024 dim"]
},
{
from:"orch", to:"vector", color:"--c-vector",
title:"Search vector database",
route:"POST /collections/rag/points/search",
desc:"FastAPI queries Qdrant with the query vector to find the top-k most similar chunks using <code>COSINE</code> similarity. Returns chunks with <code>[docN]</code> citation tags.",
payloadLocal:
`POST http://localhost:6333/collections/rag/points/search
{
"vector": [0.023, -0.156, 0.892, ..., 0.445],
"limit": 5,
"with_payload": true
}`,
payloadRemote:
`POST http://remote-qdrant:6333/collections/rag/points/search
{
"vector": [0.023, -0.156, 0.892, ..., 0.445],
"limit": 5,
"with_payload": true