{user.name}
+@{user.username}
+Access:
++ Re-ingest all documents from the data folder. This will parse, chunk, embed, and store all documents in the vector database. +
+ +RBAC Enforcement
+Enabled at vector database level
+Input Guardrails
+Injection, off-topic, PII detection
+Output Guardrails
+Grounding, citations, leakage detection
+Semantic Routing
+5 intent-based routes configured
+LLM (Groq)
+
+ Inference via backend GROQ_API_KEY — not stored in the browser
+
Advanced RAG with RBAC Enforcement
+Name
+{user.name}
+Username
+@{user.username}
+Department
+{user.department}
+Restricted Collections:
+System Info
+Start a Conversation
++ Ask FinBot any questions about your company's business data. RBAC ensures you only see + information you're authorized to access. +
++ 💡 Tip: Try asking about different collections or testing RBAC by asking about restricted content. +
+{content}
+{formatTime(timestamp)}
+{response.answer}
+Semantic Route
++ {(response.route ?? '') + .replace(/_/g, ' ') + .replace(/route/i, '') + .trim()} +
+Your Access
+
+
{source.document}
+{formatTime(timestamp)}
+{flag.type.replace(/_/g, ' ')}
+{flag.message}
+Advanced RAG System with RBAC
+Backend Connection Error
++ {error || 'Unable to connect to backend. Please ensure the Python backend is running on http://localhost:8000'} +
+⚠ Backend Online — No Documents Ingested
++ {error || 'Run document ingestion first: POST /api/admin/ingest'} +
+✓ System Online — All Collections Available
++ RBAC Demonstration: Each user has different access levels. Try logging in as different roles and querying restricted content. +
+
+ Test Queries:
+
+ - General: "What are our company policies?"
+
+ - Finance: "What was Q3 revenue?" (finance users only)
+
+ - Engineering: "Tell me about system architecture" (engineering users only)
+ - RBAC Test: Ask finance questions as a marketing user -> Access denied
+
+ Guardrails: Try prompt injection or off-topic queries to see guardrail warnings in real-time. +
++ {message || 'You do not have permission to access this information based on your role.'} +
+ {denialReason && ( ++ Reason: {denialReason} +
++ Please contact your administrator if you believe this is an error. +
+FinSolve Technologies Q&A Assistant
+Select your role to get started:
+ +