-
Notifications
You must be signed in to change notification settings - Fork 0
/
rag.drawio
144 lines (144 loc) · 10.4 KB
/
rag.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="Electron" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.7.17 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" version="24.7.17">
<diagram id="Yj_4PcI-ndSMpdkM6dbf" name="Page-1">
<mxGraphModel dx="1025" dy="794" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="2" value="Découper le text en petit morceau" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="310" y="160" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="4" value="Documents sources<br>(PDF)" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="130" y="160" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="7" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="4" target="2" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="210" y="220" as="sourcePoint" />
<mxPoint x="260" y="170" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="8" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="2" target="10" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="430" y="189.5" as="sourcePoint" />
<mxPoint x="550" y="189.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="10" value="Embedding model" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;" parent="1" vertex="1">
<mxGeometry x="490" y="150" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="12" value="" style="endArrow=classic;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="10" target="37" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="660" y="400" as="sourcePoint" />
<mxPoint x="580" y="280" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="14" value="" style="edgeStyle=none;html=1;fillColor=#1ba1e2;strokeColor=#006EAF;dashed=1;dashPattern=8 8;entryX=-0.032;entryY=0.583;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="13" target="37" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="430" y="310" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="17" value="Prompt utilisateur" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="14" vertex="1" connectable="0">
<mxGeometry x="0.0213" y="-2" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="13" value="Utilisateur" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" parent="1" vertex="1">
<mxGeometry x="175" y="300" width="30" height="60" as="geometry" />
</mxCell>
<mxCell id="15" value="LLM Model" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;" parent="1" vertex="1">
<mxGeometry x="490" y="455" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="16" value="" style="endArrow=classic;html=1;fillColor=#1ba1e2;strokeColor=#006EAF;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="37" target="15" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="570" y="380" as="sourcePoint" />
<mxPoint x="609.33" y="490" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="18" value="Prompt utilisateur&nbsp;+ Similitude" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="16" vertex="1" connectable="0">
<mxGeometry x="-0.0905" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="19" value="" style="endArrow=classic;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;fillColor=#1ba1e2;strokeColor=#006EAF;dashed=1;dashPattern=8 8;" parent="1" source="15" target="13" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="330" y="400" as="sourcePoint" />
<mxPoint x="210" y="340" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="20" value="Réponse" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="19" vertex="1" connectable="0">
<mxGeometry x="-0.0905" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="21" value="" style="endArrow=classic;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;exitPerimeter=0;dashed=1;dashPattern=8 8;" parent="1" source="13" target="4" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="260" y="200" as="sourcePoint" />
<mxPoint x="320" y="200" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="36" value="" style="group" parent="1" vertex="1" connectable="0">
<mxGeometry x="130" y="440" width="170" height="95" as="geometry" />
</mxCell>
<mxCell id="22" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="36" vertex="1">
<mxGeometry y="20" width="170" height="75" as="geometry" />
</mxCell>
<mxCell id="25" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#1ba1e2;fontColor=#ffffff;strokeColor=#006EAF;" parent="36" vertex="1">
<mxGeometry x="15" y="35" width="10" height="10" as="geometry" />
</mxCell>
<mxCell id="26" value="Chat IA" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="36" vertex="1">
<mxGeometry x="40" y="35" width="90" height="10" as="geometry" />
</mxCell>
<mxCell id="27" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="36" vertex="1">
<mxGeometry x="15" y="55" width="10" height="10" as="geometry" />
</mxCell>
<mxCell id="28" value="Ajout de documents" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="36" vertex="1">
<mxGeometry x="40" y="55" width="120" height="10" as="geometry" />
</mxCell>
<mxCell id="31" value="" style="endArrow=none;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;endFill=0;dashed=1;" parent="36" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="10" y="80" as="sourcePoint" />
<mxPoint x="30" y="80.25" as="targetPoint" />
<Array as="points">
<mxPoint x="20" y="80" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="33" value="Interaction utilisateur" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="36" vertex="1">
<mxGeometry x="40" y="75" width="120" height="10" as="geometry" />
</mxCell>
<mxCell id="34" value="<font style="font-size: 11px;">Légende</font>" style="rounded=0;whiteSpace=wrap;html=1;align=center;" parent="36" vertex="1">
<mxGeometry width="60" height="20" as="geometry" />
</mxCell>
<mxCell id="37" value="" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=9.846163236177858;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="520" y="280" width="60" height="80" as="geometry" />
</mxCell>
<mxCell id="42" value="" style="ellipse;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;dashed=1;" parent="1" vertex="1">
<mxGeometry x="515" y="440" width="70" height="30" as="geometry" />
</mxCell>
<mxCell id="43" value="" style="endArrow=none;dashed=1;html=1;fontSize=11;exitX=1;exitY=0;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="42" target="44" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="650" y="450" as="sourcePoint" />
<mxPoint x="630" y="430" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="44" value="Tokennisation" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;dashed=1;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="620" y="420" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="45" value="" style="ellipse;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;dashed=1;rotation=40;" parent="1" vertex="1">
<mxGeometry x="475.37" y="328.97" width="110" height="41.17" as="geometry" />
</mxCell>
<mxCell id="46" value="ChromaDB" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;dashed=1;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="574" y="310" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="47" value="" style="endArrow=none;dashed=1;html=1;fontSize=11;exitX=0.958;exitY=0.278;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="45" target="48" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="584.9327351478184" y="454.47284515981005" as="sourcePoint" />
<mxPoint x="640" y="370" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="48" value="Similarité Cosinus" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;dashed=1;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="620" y="350" width="100" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>