forked from nilsherzig/LLocalSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
infra.drawio
144 lines (144 loc) · 12.2 KB
/
infra.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
<mxfile host="app.diagrams.net" modified="2024-04-02T10:11:23.695Z" agent="Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0" etag="BrItqvzg_UyCPnV1fcfO" version="24.2.1" type="github">
<diagram name="Page-1" id="lsalOI1iWs8yBsNEwPmH">
<mxGraphModel dx="1352" dy="1676" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="a02coUsWN-jzRaUd7oGF-5" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-2" target="a02coUsWN-jzRaUd7oGF-4">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-6" value="sends to" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" vertex="1" connectable="0" parent="a02coUsWN-jzRaUd7oGF-5">
<mxGeometry x="-0.1939" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-2" value="<div>user prompt</div><div>"how much does a llama weight?"<br></div>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="-126" y="-364" width="214" height="70" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-8" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-4" target="a02coUsWN-jzRaUd7oGF-7">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-4" value="<div>layer 1 chain</div>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="-79" y="-219" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-12" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;fillColor=#f8cecc;strokeColor=#b85450;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-7" target="a02coUsWN-jzRaUd7oGF-13">
<mxGeometry relative="1" as="geometry">
<mxPoint x="-85.29411764705878" y="47.529411764705856" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-14" value="no" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" vertex="1" connectable="0" parent="a02coUsWN-jzRaUd7oGF-12">
<mxGeometry x="0.0783" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-16" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;fillColor=#d5e8d4;strokeColor=#82b366;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-7" target="a02coUsWN-jzRaUd7oGF-10">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-17" value="<div>yes websearch&nbsp;</div><div>"how much does a llama weight"</div>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" vertex="1" connectable="0" parent="a02coUsWN-jzRaUd7oGF-16">
<mxGeometry x="0.0418" y="2" relative="1" as="geometry">
<mxPoint y="5" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-7" value="needs tool usage?" style="rhombus;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="-63.5" y="-80" width="89" height="84" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-21" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-10" target="a02coUsWN-jzRaUd7oGF-19">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-23" value="<div>"llama weight"</div>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" vertex="1" connectable="0" parent="a02coUsWN-jzRaUd7oGF-21">
<mxGeometry x="-0.0122" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-31" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-10" target="a02coUsWN-jzRaUd7oGF-30">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-33" value=""llama weight"" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" vertex="1" connectable="0" parent="a02coUsWN-jzRaUd7oGF-31">
<mxGeometry x="-0.1136" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-40" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-10" target="a02coUsWN-jzRaUd7oGF-41">
<mxGeometry relative="1" as="geometry">
<mxPoint x="339" y="-1" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-10" value="<div>layer 2 chain</div>"websearch"" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="279" y="-68" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-53" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-13" target="a02coUsWN-jzRaUd7oGF-2">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-249" y="-93" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-54" value="next user prompt" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" vertex="1" connectable="0" parent="a02coUsWN-jzRaUd7oGF-53">
<mxGeometry x="0.2875" y="-82" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-13" value="answer prompt" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="-79" y="120" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-25" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-19" target="a02coUsWN-jzRaUd7oGF-24">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-19" value="fetch search results" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="279" y="-308" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-27" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-24" target="a02coUsWN-jzRaUd7oGF-26">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-24" value="run searXNG query" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" vertex="1" parent="1">
<mxGeometry x="547" y="-308" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-29" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-26" target="a02coUsWN-jzRaUd7oGF-19">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-26" value="split results into little chunks and saves them into vector db" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" vertex="1" parent="1">
<mxGeometry x="547" y="-206" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-50" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-30" target="a02coUsWN-jzRaUd7oGF-51">
<mxGeometry relative="1" as="geometry">
<mxPoint x="605" y="92" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-30" value="query vector db" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="545" y="-68" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-42" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;fillColor=#d5e8d4;strokeColor=#82b366;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-41" target="a02coUsWN-jzRaUd7oGF-13">
<mxGeometry relative="1" as="geometry">
<mxPoint x="175.33333333333326" y="100" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-44" value="yes, provide information for answer" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" vertex="1" connectable="0" parent="a02coUsWN-jzRaUd7oGF-42">
<mxGeometry x="-0.0496" y="-1" relative="1" as="geometry">
<mxPoint y="5" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-48" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;fillColor=#f8cecc;strokeColor=#b85450;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-41" target="a02coUsWN-jzRaUd7oGF-10">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="423" y="65" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-49" value="no, repeat actions" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=12;" vertex="1" connectable="0" parent="a02coUsWN-jzRaUd7oGF-48">
<mxGeometry x="-0.3988" y="23" relative="1" as="geometry">
<mxPoint x="18" y="-14" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-41" value="found the answer?" style="rhombus;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="299" y="110" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-52" style="edgeStyle=none;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=12;startSize=8;endSize=8;" edge="1" parent="1" source="a02coUsWN-jzRaUd7oGF-51" target="a02coUsWN-jzRaUd7oGF-10">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="a02coUsWN-jzRaUd7oGF-51" value="return n splits with score higher than x with sources" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" vertex="1" parent="1">
<mxGeometry x="545" y="36" width="120" height="60" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>