-
Notifications
You must be signed in to change notification settings - Fork 82
/
ragmeup.drawio
182 lines (182 loc) · 17.2 KB
/
ragmeup.drawio
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
<mxfile host="app.diagrams.net" modified="2024-06-26T09:25:53.784Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" etag="Gx6bYlD7bAesogTijLPw" version="24.6.3" type="device">
<diagram name="Page-1" id="7csyN0cyG2ocL0HD3IHv">
<mxGraphModel dx="1434" dy="1846" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="njQcOx4c6HiZkvVS5jOr-52" value="Re-retrieve once" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.996;exitY=0.498;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.498;entryY=0.97;entryDx=0;entryDy=0;entryPerimeter=0;endArrow=none;endFill=0;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-49" target="njQcOx4c6HiZkvVS5jOr-44">
<mxGeometry relative="1" as="geometry">
<mxPoint x="451" y="332" as="sourcePoint" />
<mxPoint x="640" y="270" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-1" target="njQcOx4c6HiZkvVS5jOr-4">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-1" value="Loaders" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="140" y="90" width="70" height="60" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-2" target="njQcOx4c6HiZkvVS5jOr-1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-2" value="Your documents" style="html=1;verticalLabelPosition=bottom;align=center;labelBackgroundColor=#ffffff;verticalAlign=top;strokeWidth=2;strokeColor=#0080F0;shadow=0;dashed=0;shape=mxgraph.ios7.icons.documents;" vertex="1" parent="1">
<mxGeometry x="30" y="80" width="60" height="80" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-4" target="njQcOx4c6HiZkvVS5jOr-7">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-4" value="Chunking" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="252" y="90" width="70" height="60" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-8" value="" style="group" vertex="1" connectable="0" parent="1">
<mxGeometry x="360" y="60" width="80" height="100" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-6" value="<div><br></div>" style="html=1;verticalLabelPosition=bottom;align=center;labelBackgroundColor=#ffffff;verticalAlign=top;strokeWidth=2;strokeColor=#0080F0;shadow=0;dashed=0;shape=mxgraph.ios7.icons.documents;" vertex="1" parent="njQcOx4c6HiZkvVS5jOr-8">
<mxGeometry x="20" width="60" height="80" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-7" value="Chunks" style="html=1;verticalLabelPosition=bottom;align=center;labelBackgroundColor=#ffffff;verticalAlign=top;strokeWidth=2;strokeColor=#0080F0;shadow=0;dashed=0;shape=mxgraph.ios7.icons.documents;" vertex="1" parent="njQcOx4c6HiZkvVS5jOr-8">
<mxGeometry y="20" width="60" height="80" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-10" target="njQcOx4c6HiZkvVS5jOr-15">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-10" value="<div>Document</div><div>Embeddings<br></div>" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="470" y="70" width="80" height="60" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-67" target="njQcOx4c6HiZkvVS5jOr-10">
<mxGeometry relative="1" as="geometry">
<mxPoint x="510" y="14" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-6" target="njQcOx4c6HiZkvVS5jOr-10">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-15" value="<div>Vector</div><div>DB</div>" style="shape=datastore;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="604.25" y="65" width="70" height="70" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-18">
<mxGeometry relative="1" as="geometry">
<mxPoint x="675" y="540" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-18" value="User" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#232F3D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.user;" vertex="1" parent="1">
<mxGeometry x="715" y="510" width="60" height="60" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-22" value="" style="group;align=left;" vertex="1" connectable="0" parent="1">
<mxGeometry x="605" y="505" width="82.5" height="83" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-21" value="History" style="html=1;verticalLabelPosition=bottom;align=center;labelBackgroundColor=#ffffff;verticalAlign=top;strokeWidth=2;strokeColor=#666666;shadow=0;dashed=0;shape=mxgraph.ios7.icons.documents;fillColor=#f5f5f5;fontColor=#333333;" vertex="1" parent="njQcOx4c6HiZkvVS5jOr-22">
<mxGeometry x="60" y="45" width="22.5" height="30" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-90" value="Query" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#232F3D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.question;" vertex="1" parent="njQcOx4c6HiZkvVS5jOr-22">
<mxGeometry x="15" y="5" width="41" height="78" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-68" target="njQcOx4c6HiZkvVS5jOr-26">
<mxGeometry relative="1" as="geometry">
<mxPoint x="435" y="415" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-59" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-68" target="njQcOx4c6HiZkvVS5jOr-57">
<mxGeometry relative="1" as="geometry">
<mxPoint x="365" y="415" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-29" value="Yes" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.497;entryY=0.947;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-26" target="njQcOx4c6HiZkvVS5jOr-44">
<mxGeometry relative="1" as="geometry">
<mxPoint x="639" y="276" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-54" value="No" style="edgeStyle=elbowEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.25;exitDx=0;exitDy=0;entryX=1;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-26" target="njQcOx4c6HiZkvVS5jOr-47">
<mxGeometry relative="1" as="geometry">
<mxPoint x="500" y="290" as="targetPoint" />
<Array as="points">
<mxPoint x="480" y="320" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-26" value="1 Check: new documents?" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;size=0.25" vertex="1" parent="1">
<mxGeometry x="590" y="390" width="100" height="50" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" target="njQcOx4c6HiZkvVS5jOr-26">
<mxGeometry relative="1" as="geometry">
<mxPoint x="640" y="505" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-31" value="<div>Sparse</div><div>BM25<br></div>" style="shape=datastore;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="604.25" y="12" width="70" height="70" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-45" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-44" target="njQcOx4c6HiZkvVS5jOr-15">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-65" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-44" target="njQcOx4c6HiZkvVS5jOr-63">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-44" value="<div>2 Get</div><div>Documents</div>" style="html=1;whiteSpace=wrap;aspect=fixed;shape=isoRectangle;" vertex="1" parent="1">
<mxGeometry x="589.5" y="210" width="100" height="60" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-46" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.85;exitY=0.95;exitDx=0;exitDy=0;exitPerimeter=0;entryX=1.006;entryY=0.543;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-15" target="njQcOx4c6HiZkvVS5jOr-44">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-51" value="No" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-47" target="njQcOx4c6HiZkvVS5jOr-49">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-56" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-47" target="njQcOx4c6HiZkvVS5jOr-55">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-47" value="3 Check: answer in documents?" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;size=0.25" vertex="1" parent="1">
<mxGeometry x="333" y="210" width="135" height="60" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-49" value="<div>4 Rewrite</div><div>Query<br></div>" style="html=1;whiteSpace=wrap;aspect=fixed;shape=isoRectangle;" vertex="1" parent="1">
<mxGeometry x="350" y="302" width="100" height="60" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-58" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-55" target="njQcOx4c6HiZkvVS5jOr-57">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-55" value="<div style="font-size: 11px;">5 Inject documents</div><div style="font-size: 11px;">into prompt<br style="font-size: 11px;"></div>" style="html=1;whiteSpace=wrap;aspect=fixed;shape=isoRectangle;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="130" y="200" width="133.34" height="80" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-57" value="<div style="font-size: 12px;">Answer query</div><div style="font-size: 12px;">with documents<br style="font-size: 12px;"></div>" style="html=1;whiteSpace=wrap;aspect=fixed;shape=isoRectangle;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="130" y="375" width="133.34" height="80" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-60" value="Final answer" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.029;entryY=0.594;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-57">
<mxGeometry relative="1" as="geometry">
<mxPoint x="607.03" y="546.5799999999999" as="targetPoint" />
<Array as="points">
<mxPoint x="197" y="547" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-61" value="History" style="html=1;verticalLabelPosition=bottom;align=center;labelBackgroundColor=#ffffff;verticalAlign=top;strokeWidth=2;strokeColor=#666666;shadow=0;dashed=0;shape=mxgraph.ios7.icons.documents;fillColor=#f5f5f5;fontColor=#333333;" vertex="1" parent="1">
<mxGeometry x="350" y="560" width="22.5" height="30" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-66" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-63" target="njQcOx4c6HiZkvVS5jOr-47">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-63" value="Rerank" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="500" y="210" width="70" height="60" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-67" value="<div>Embedding</div><div>Model</div>" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#01A88D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.sagemaker_model;" vertex="1" parent="1">
<mxGeometry x="485" y="-42" width="50" height="50" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-72" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="njQcOx4c6HiZkvVS5jOr-68" target="njQcOx4c6HiZkvVS5jOr-49">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-68" value="<div>Chat</div><div>LLM</div>" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#01A88D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.sagemaker_model;" vertex="1" parent="1">
<mxGeometry x="370" y="385" width="60" height="60" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-87" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="20" y="190" as="sourcePoint" />
<mxPoint x="820" y="190" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-88" value="<b><font style="font-size: 20px;">Indexing</font></b>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=#82b366;fillColor=#d5e8d4;" vertex="1" parent="1">
<mxGeometry x="30" y="12" width="110" height="40" as="geometry" />
</mxCell>
<mxCell id="njQcOx4c6HiZkvVS5jOr-89" value="<font style="font-size: 20px;"><b>Querying</b></font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=#82b366;fillColor=#d5e8d4;" vertex="1" parent="1">
<mxGeometry x="715" y="443" width="110" height="40" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>