Files
PlantAI-rag/docs/architecture/rag_complete_workflow.html
2026-07-10 17:59:59 +08:00

254 lines
7.6 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gene Family MAS V2 - 完整RAG工作流架构</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
min-height: 100vh;
padding: 20px;
color: #fff;
}
.container {
max-width: 1800px;
margin: 0 auto;
}
h1 {
text-align: center;
margin-bottom: 30px;
font-size: 2.5em;
background: linear-gradient(90deg, #00d4ff, #7b2cbf);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}
.workflow-container {
display: flex;
flex-direction: column;
gap: 20px;
}
.phase {
background: rgba(255, 255, 255, 0.05);
border-radius: 15px;
padding: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.phase-header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid;
}
.phase-number {
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5em;
font-weight: bold;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.phase-title {
font-size: 1.4em;
font-weight: 600;
}
.phase-desc {
font-size: 0.9em;
color: #a0a0a0;
margin-left: auto;
}
/* Phase specific colors */
.phase-1 .phase-header { border-color: #ff6b6b; }
.phase-1 .phase-number { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%); }
.phase-2 .phase-header { border-color: #4ecdc4; }
.phase-2 .phase-number { background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%); }
.phase-3 .phase-header { border-color: #ffe66d; }
.phase-3 .phase-number { background: linear-gradient(135deg, #ffe66d 0%, #f4d03f 100%); }
.phase-4 .phase-header { border-color: #a8e6cf; }
.phase-4 .phase-number { background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%); }
.phase-5 .phase-header { border-color: #c7ceea; }
.phase-5 .phase-number { background: linear-gradient(135deg, #c7ceea 0%, #b8b8d1 100%); }
.phase-6 .phase-header { border-color: #ffd3b6; }
.phase-6 .phase-number { background: linear-gradient(135deg, #ffd3b6 0%, #ffaaa5 100%); }
.phase-7 .phase-header { border-color: #dcedc1; }
.phase-7 .phase-number { background: linear-gradient(135deg, #dcedc1 0%, #c5e99b 100%); }
.phase-8 .phase-header { border-color: #ff8b94; }
.phase-8 .phase-number { background: linear-gradient(135deg, #ff8b94 0%, #ff6b6b 100%); }
.modules-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 15px;
}
.module {
background: rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 15px;
border: 1px solid rgba(255, 255, 255, 0.15);
transition: all 0.3s ease;
position: relative;
}
.module:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
border-color: rgba(255, 255, 255, 0.3);
}
.module-title {
font-size: 1.1em;
font-weight: 600;
margin-bottom: 10px;
color: #fff;
display: flex;
align-items: center;
gap: 8px;
}
.module-icon {
font-size: 1.2em;
}
.module-content {
font-size: 0.85em;
color: #b0b0b0;
line-height: 1.6;
}
.module-files {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.8em;
color: #888;
}
.file-path {
font-family: 'Consolas', monospace;
color: #4ecdc4;
margin: 3px 0;
}
.arrow-down {
text-align: center;
font-size: 2em;
color: rgba(255, 255, 255, 0.3);
margin: 10px 0;
}
.data-flow {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
padding: 15px;
background: rgba(0, 0, 0, 0.2);
border-radius: 10px;
margin: 15px 0;
}
.data-node {
background: rgba(255, 255, 255, 0.1);
padding: 10px 20px;
border-radius: 8px;
font-size: 0.9em;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.arrow-right {
font-size: 1.5em;
color: rgba(255, 255, 255, 0.4);
}
.agentic-section {
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
border: 2px solid rgba(102, 126, 234, 0.3);
border-radius: 15px;
padding: 20px;
margin-top: 20px;
}
.agentic-title {
text-align: center;
font-size: 1.3em;
font-weight: 600;
margin-bottom: 20px;
color: #c7ceea;
}
.langgraph-flow {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}
.langgraph-node {
background: rgba(102, 126, 234, 0.2);
border: 2px solid rgba(102, 126, 234, 0.5);
border-radius: 10px;
padding: 15px 30px;
min-width: 200px;
text-align: center;
position: relative;
}
.langgraph-node::after {
content: '▼';
position: absolute;
bottom: -25px;
left: 50%;
transform: translateX(-50%);
color: rgba(102, 126, 234, 0.5);
font-size: 1.2em;
}
.langgraph-node:last-child::after {
display: none;
}
.rerank-section {
background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 90, 0.1) 100%);
border: 2px solid rgba(255, 107, 107, 0.3);
border-radius: 15px;
padding: 20px;
margin-top: 20px;
}
.hybrid-section {
background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(68, 160, 141, 0.1) 100%);
border: 2px solid rgba(78, 205, 196, 0.3);
border-radius: 15px;
padding: 20px;
margin