testtest123 commited on
Commit
7a01d82
Β·
1 Parent(s): 9748ae9

Elaborate RAG Fundamentals page with real-world applications and concrete examples

Browse files
RAG_FULL_APPLICATION_FRONTEND/src/pages/FundamentalsPage.jsx CHANGED
@@ -122,6 +122,88 @@ export default function FundamentalsPage() {
122
  </ul>
123
  </div>
124
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  </div>
126
  );
127
  }
 
122
  </ul>
123
  </div>
124
  </div>
125
+
126
+ {/* Real World Applications & Examples */}
127
+ <div className="card space-y-6 mt-8">
128
+ <h2 className="text-lg font-bold text-white flex items-center gap-2 border-b border-surface-800 pb-3">
129
+ <Sparkles className="w-5 h-5 text-accent-400" />
130
+ Real-World Applications & Concrete Examples
131
+ </h2>
132
+
133
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-6">
134
+ {/* Application 1 */}
135
+ <div className="bg-surface-900 border border-surface-800 p-5 rounded-xl hover:border-accent-500/30 transition-colors">
136
+ <h3 className="text-sm font-bold text-white mb-2 flex items-center gap-2">
137
+ <span className="bg-accent-500/20 text-accent-400 p-1.5 rounded-lg"><BookOpen className="w-4 h-4" /></span>
138
+ Enterprise Internal Knowledge Base
139
+ </h3>
140
+ <p className="text-xs text-gray-400 mb-4 leading-relaxed">
141
+ Companies have thousands of HR policies, IT manuals, and SOPs scattered across PDFs and Word documents. Employees waste hours searching for specific clauses.
142
+ </p>
143
+ <div className="bg-black/30 p-3 rounded-lg border border-surface-800">
144
+ <p className="text-[11px] font-mono text-gray-300"><span className="text-accent-400 font-bold">User:</span> "What is the maternity leave policy for employees in the Bangalore office?"</p>
145
+ <div className="my-2 border-l-2 border-surface-600 pl-2">
146
+ <p className="text-[10px] text-gray-500 font-mono italic">πŸ” System retrieves Chunk #402 (HR_Policy_India.pdf, page 12) & Chunk #89 (Global_Benefits.docx)</p>
147
+ </div>
148
+ <p className="text-[11px] font-mono text-emerald-400"><span className="font-bold">RAG LLM:</span> "According to the HR Policy India document (Page 12), employees in the Bangalore office are entitled to 26 weeks of paid maternity leave..."</p>
149
+ </div>
150
+ </div>
151
+
152
+ {/* Application 2 */}
153
+ <div className="bg-surface-900 border border-surface-800 p-5 rounded-xl hover:border-accent-500/30 transition-colors">
154
+ <h3 className="text-sm font-bold text-white mb-2 flex items-center gap-2">
155
+ <span className="bg-blue-500/20 text-blue-400 p-1.5 rounded-lg"><Cpu className="w-4 h-4" /></span>
156
+ Customer Support Automation
157
+ </h3>
158
+ <p className="text-xs text-gray-400 mb-4 leading-relaxed">
159
+ Customer service bots often give generic answers. By linking the bot to a live database of product manuals and past resolved tickets via RAG, it can give highly technical, accurate answers.
160
+ </p>
161
+ <div className="bg-black/30 p-3 rounded-lg border border-surface-800">
162
+ <p className="text-[11px] font-mono text-gray-300"><span className="text-blue-400 font-bold">User:</span> "My Router X200 is blinking red continuously, what do I do?"</p>
163
+ <div className="my-2 border-l-2 border-surface-600 pl-2">
164
+ <p className="text-[10px] text-gray-500 font-mono italic">πŸ” System retrieves Chunk #12 (Troubleshooting_X200.pdf, Section 4.1)</p>
165
+ </div>
166
+ <p className="text-[11px] font-mono text-emerald-400"><span className="font-bold">RAG LLM:</span> "A continuous red blinking light on the X200 indicates a firmware update failure. Please hold the reset button for 15 seconds to enter recovery mode (Source: Troubleshooting Guide, Sec 4.1)."</p>
167
+ </div>
168
+ </div>
169
+
170
+ {/* Application 3 */}
171
+ <div className="bg-surface-900 border border-surface-800 p-5 rounded-xl hover:border-accent-500/30 transition-colors">
172
+ <h3 className="text-sm font-bold text-white mb-2 flex items-center gap-2">
173
+ <span className="bg-purple-500/20 text-purple-400 p-1.5 rounded-lg"><CheckCircle2 className="w-4 h-4" /></span>
174
+ Legal & Medical Contract Analysis
175
+ </h3>
176
+ <p className="text-xs text-gray-400 mb-4 leading-relaxed">
177
+ Lawyers and doctors need to quickly find specific clauses in 500-page contracts or patient histories. RAG instantly surfaces the exact paragraph they need.
178
+ </p>
179
+ <div className="bg-black/30 p-3 rounded-lg border border-surface-800">
180
+ <p className="text-[11px] font-mono text-gray-300"><span className="text-purple-400 font-bold">User:</span> "Are there any non-compete clauses for the software engineering role?"</p>
181
+ <div className="my-2 border-l-2 border-surface-600 pl-2">
182
+ <p className="text-[10px] text-gray-500 font-mono italic">πŸ” System retrieves Chunk #56 (Employment_Contract_Template.pdf)</p>
183
+ </div>
184
+ <p className="text-[11px] font-mono text-emerald-400"><span className="font-bold">RAG LLM:</span> "Yes, Section 8.2 of the employment contract states a 12-month non-compete period within a 50-mile radius for software engineering roles."</p>
185
+ </div>
186
+ </div>
187
+
188
+ {/* Application 4 */}
189
+ <div className="bg-surface-900 border border-surface-800 p-5 rounded-xl hover:border-accent-500/30 transition-colors">
190
+ <h3 className="text-sm font-bold text-white mb-2 flex items-center gap-2">
191
+ <span className="bg-emerald-500/20 text-emerald-400 p-1.5 rounded-lg"><RefreshCw className="w-4 h-4" /></span>
192
+ Educational Tutoring (CBSE / NCERT)
193
+ </h3>
194
+ <p className="text-xs text-gray-400 mb-4 leading-relaxed">
195
+ Students can ask a bot questions about their textbooks. The bot uses RAG to pull the exact chapter and page from the NCERT syllabus to provide the answer, preventing hallucinations.
196
+ </p>
197
+ <div className="bg-black/30 p-3 rounded-lg border border-surface-800">
198
+ <p className="text-[11px] font-mono text-gray-300"><span className="text-emerald-400 font-bold">User:</span> "Explain the AAA criterion for similarity of triangles."</p>
199
+ <div className="my-2 border-l-2 border-surface-600 pl-2">
200
+ <p className="text-[10px] text-gray-500 font-mono italic">πŸ” System retrieves Chunk #304 (Class10_Mathematics.pdf, Page 129)</p>
201
+ </div>
202
+ <p className="text-[11px] font-mono text-emerald-400"><span className="font-bold">RAG LLM:</span> "The AAA (Angle-Angle-Angle) criterion states that in two triangles, if corresponding angles are equal, then their corresponding sides are in the same ratio (or proportion) and hence the two triangles are similar."</p>
203
+ </div>
204
+ </div>
205
+ </div>
206
+ </div>
207
  </div>
208
  );
209
  }