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:

graph TB subgraph "Data Ingestion" A[ Upload Files
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.

Login page
Screenshot: Login page with username/password fields

Default Credentials

Security Warning

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

  1. Log in with the default or current credentials.
  2. Navigate to Users from the sidebar (superadmin) or locate the "Change My Password" card on the Users page.
  3. Enter your current password, then your new password.
  4. Click Change Password to save.
Password Limit

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

The left sidebar is your primary navigation. It's organized into sections:

SectionPagesDescription
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
Sidebar navigation
Screenshot: Admin sidebar with section labels and navigation items
Role-Based Visibility

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:

Welcome page
Screenshot: Welcome page with quick stats and navigation cards

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:

RoleDescriptionPrimary 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
Tip

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:

  1. Change the default password
    Go to Users → Change My Password. This removes the security warning banner.
  2. Configure your LLM provider
    Go to Settings → select AWS Bedrock or Google Gemini as your AI provider.
  3. Upload your first document
    Go to Knowledge Base → drag a PDF or TXT file into the upload area.
  4. Test a search query
    Use the Search Debug page to verify your document is searchable and results are relevant.
  5. Embed the widget
    Copy the widget snippet from the Widget documentation and add it to your website.
graph LR A[ Change Password] --> B[ Configure LLM] B --> C[ Upload Document] C --> D[ Test Search] D --> E[ Embed Widget] style A fill:#ef4444,color:#fff style B fill:#f59e0b,color:#fff style C fill:#3B82F6,color:#fff style D fill:#8B5CF6,color:#fff style E fill:#22C55E,color:#fff

API Access

BABEH provides two types of API access:

APIAuthenticationBase PathUse 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
API Key Security

Keep your API key confidential. It provides access to the query endpoints. The API key is configured as an environment variable on the server.