Getting Started
Learn how to log in, navigate the admin dashboard, and begin managing your knowledge base.
What is BABEH?
BABEH (Knowledge Base as a Service) is an intelligent document management and AI-powered search platform. It allows you to upload documents, manage product pricing and specifications, and provide an AI chatbot that answers questions based on your data — with full source citations.
System Architecture
BABEH uses a hybrid search approach combining semantic understanding (Vector search) with keyword matching (BM25) to deliver highly relevant results. Here's how the system fits together:
PDF, TXT] --> C[Chunking Engine] B[ Ingest URLs
Web Scraping] --> C C --> D[ChromaDB
Vector Embeddings] C --> E[SQLite FTS5
BM25 Index] end subgraph "Data Management" F[ Pricing Database] --> D F --> G[Pricing FTS5] H[ Product Specs] --> D H --> I[Specs FTS5] end subgraph "Query Pipeline" J[ User Query] --> K{Hybrid Search} K --> L[Vector Search
Semantic] K --> M[BM25 Search
Keyword] K --> N[Pricing Search] K --> O[Spec Search] L --> P[Fusion + Threshold] M --> P N --> P O --> P P --> Q[ LLM
Bedrock / Gemini] Q --> R[ Response
with Citations] end style A fill:#3B82F6,color:#fff style B fill:#3B82F6,color:#fff style D fill:#8B5CF6,color:#fff style E fill:#F59E0B,color:#fff style Q fill:#22C55E,color:#fff style R fill:#22C55E,color:#fff
Logging In
Accessing the Admin Panel
Open your browser and navigate to the admin URL:
https://your-domain.com/admin/ You'll see the login page with the BABEH logo. Enter your username and password.
Default Credentials
The system ships with default credentials: username: admin /
password: admin.
Change this immediately after your first login! A warning banner will appear
on the dashboard until you update your password.
Changing Your Password
- Log in with the default or current credentials.
- Navigate to Users from the sidebar (superadmin) or locate the "Change My Password" card on the Users page.
- Enter your current password, then your new password.
- Click Change Password to save.
Passwords are hashed with bcrypt, which has a maximum of 72 bytes. Longer passwords will be silently truncated.
Session & Token
After login, a JWT token is issued that expires after 8 hours. You'll be automatically logged out when the token expires and redirected to the login page. There is no refresh token — simply log in again.
Navigating the Dashboard
Sidebar Navigation
The left sidebar is your primary navigation. It's organized into sections:
| Section | Pages | Description |
|---|---|---|
| Home | Home | Welcome page with quick stats and navigation cards |
| Content | Knowledge Base Pricing Database Product Specifications | Upload, manage, and organize your data sources |
| Analytics | Summary LLM Metrics Search Insights User Analytics Query History | Monitor usage, performance, and search patterns |
| Management | Users Activity Log Settings Search Debug | System configuration and administration |
Some menu items are hidden based on your role. For example, Users and Activity Log are only visible to superadmin users. See Roles & Permissions for the full access matrix.
Welcome Page
The welcome page (Home) provides:
- Personalized greeting with your username
- Quick statistics — Total queries, documents, vector embeddings, and pricing records
- Navigation cards — Grouped by Content Management, Analytics & Reports, and System Management
Dark Mode
Toggle dark mode using the / button. Your preference is saved in the browser and persists across sessions. On first visit, the system respects your OS preference.
User Roles Overview
BABEH has four user roles, each with different access levels:
| Role | Description | Primary Use |
|---|---|---|
| superadmin | Full system access | System administrators who manage users, schemas, and monitor all activity |
| manager | Content + analytics access | Team leads who manage content and review analytics |
| analyst | Analytics + settings access | Data analysts who review performance and tune settings |
| editor | Content management only | Content editors who upload documents and manage pricing/specs data |
See the Roles & Permissions page for a complete feature-by-feature access matrix.
First Steps Checklist
After logging in for the first time, follow this checklist to get up and running:
- Change the default password
Go to Users → Change My Password. This removes the security warning banner. - Configure your LLM provider
Go to Settings → select AWS Bedrock or Google Gemini as your AI provider. - Upload your first document
Go to Knowledge Base → drag a PDF or TXT file into the upload area. - Test a search query
Use the Search Debug page to verify your document is searchable and results are relevant. - Embed the widget
Copy the widget snippet from the Widget documentation and add it to your website.
API Access
BABEH provides two types of API access:
| API | Authentication | Base Path | Use Case |
|---|---|---|---|
| Public API | X-API-Key header | /api/ | Querying, searching — used by the widget and external integrations |
| Admin API | Bearer JWT token | /api/admin/ | Management operations — used by the admin dashboard |
Keep your API key confidential. It provides access to the query endpoints. The API key is configured as an environment variable on the server.