SPB Git

Repository Public MIT Research preview

S07-F02-pipeline-rag.tex 3.7 KB 51 lines latex

1% S07-F02 — La chaîne complète de la génération augmentée par récupération (figure phare 10).2% Idée : deux temps distincts. AVANT toute question, on prépare un index ; À CHAQUE question, on cherche,3% on trie, on décide de répondre ou non, on rédige et on cite. Quatre points de défaillance numérotés :4% chacun se diagnostique à un endroit précis de la chaîne. Schéma conceptuel, sans produit particulier.5\begin{tikzpicture}[x=1mm, y=1mm]6  % ---------- Couloir du haut : préparer ----------7  \draw[atlas region, dash pattern=on 4pt off 2.5pt] (0,29) rectangle (58.5,50);8  \node[atlas tag=atlasMuted, anchor=west] at (3,50) {AVANT : préparer la collection};9  \pic[atlasMuted, scale=.5] at (7,43.4) {atlas doc};10  \node[atlas label, anchor=north, text width=21mm] at (10.8,37.6) {documents\\ + provenance};11  \node[atlas block, text width=13.5mm, minimum height=10.5mm] (dec) at (26.5,41.8) {Découper};12  \node[atlas block, text width=15.5mm, minimum height=10.5mm] (idx) at (47,41.8) {Vectoriser, indexer};13  \draw[atlas arrow muted] (11.5,41.8) -- (dec.west);14  \draw[atlas arrow muted] (dec) -- (idx);15  % Index : le produit de la préparation, consulté à chaque question16  \node[atlas store, minimum width=20mm, minimum height=9mm] (store) at (72,41.8) {\textbf{Index}};17  \node[atlas note, anchor=west, align=left] at (83.6,41.8) {vecteurs,\\ mots,\\ provenance};18  \draw[atlas arrow muted] (idx.east) -- (store.west);19  % ---------- Couloir du bas : répondre ----------20  \node[atlas tag=atlasFlow, anchor=west] at (0,19.4) {À CHAQUE QUESTION};21  \pic[atlasFlow, scale=.5] at (7,10) {atlas person};22  \node[atlas label] at (7,3.8) {question};23  \node[atlas block flow, text width=16mm, minimum height=11mm] (rech) at (31,9.6) {\textbf{Chercher}\\ vecteurs + mots-clés};24  \node[atlas block flow, text width=18.6mm, minimum height=11mm] (recl) at (56.6,9.6) {\textbf{Trier}\\ fusion, reclassement};25  \node[atlas gate, text width=11.6mm, inner sep=.6pt] (porte) at (86.5,9.6) {Assez proche ?};26  \node[atlas block strong, text width=12mm, minimum height=11mm] (gen) at (111,9.6) {\textbf{Rédiger}\\ modèle};27  \node[atlas block valid, text width=11.5mm, minimum height=11mm] (rep) at (131.6,9.6) {Réponse + citation};28  \draw[atlas arrow] (12,9.6) -- (rech.west);29  \draw[atlas arrow muted] (store.south) -- (72,23.6) -- (31,23.6) -- (rech.north);30  \node[atlas note, anchor=south] at (50,23.8) {l'index est consulté, jamais modifié};31  \draw[atlas arrow] (rech) -- (recl);32  \draw[atlas arrow] (recl) -- (porte);33  \draw[atlas arrow] (porte) -- node[atlas note, above, inner sep=1.2pt] {oui} (gen);34  \draw[atlas arrow valid] (gen) -- (rep);35  \node[atlas block uncertain, text width=15mm] (abst) at (86.5,27.6) {S'abstenir};36  \draw[atlas arrow] (porte.north) -- node[atlas note, right] {non} (abst.south);37  \node[atlas note, anchor=north, align=center] at (111,3.4) {contexte = question + passages};38  % ---------- Points de défaillance ----------39  \node[atlas step=atlasHazard] at (13.2,46.8) {1};40  \node[atlas step=atlasHazard] at (dec.north east) {2};41  \node[atlas step=atlasHazard] at (rech.north east) {2};42  \node[atlas step=atlasHazard] at (96.4,16.4) {3};43  \node[atlas step=atlasHazard] at (rep.north east) {4};44  \draw[draw=atlasHazard, line width=.9pt, rounded corners=2.2pt, dash pattern=on 4pt off 2.4pt] (106,22.4) rectangle (142,50);45  \node[atlas tag=atlasHazard, anchor=west] at (108.5,50) {QUATRE PANNES};46  \foreach \n/\yy/\texte in {1/44.2/document périmé, 2/38/{bon document, mauvais passage}, 3/31.8/rien de pertinent, 4/26.2/citation sans appui} {47    \node[atlas step=atlasHazard, minimum size=4.2mm] at (110.4,\yy) {\n};48    \node[atlas note, anchor=west, text=atlasFg, align=left, text width=27mm] at (113.2,\yy) {\texte};49  }50\end{tikzpicture}51
Files main
Menu

Theme