{% extends 'base.html' %} {% block content %}

Wuuuuhuuu! 🦉

Knowledge Management & Diary System with AI-powered RAG

🤖 RAG System

Semantic search and Q&A powered by OpenAI, Claude, or OpenRouter. Index your content and ask questions in natural language.

{% if user and user.role == 'admin' %} Manage RAG → {% else %} Admin access required {% endif %}

📔 Diary System

Personal diary entries with full-text search and AI insights. Each child has their own secure collection.

🌍 Multilingual

Full internationalization support with German and English. Server-rendered templates with language switching.

Current: {{ 'Deutsch' if lang == 'de' else 'English' }}

🔐 Secure & GDPR

Role-based access control, audit logging, and GDPR-compliant data handling for all operations.

{% if user %}

Welcome back, {{ user.email }}! 👋

You're logged in as {{ user.role }}

{% if user.role == 'admin' %} Admin Dashboard RAG Management {% endif %} API Docs
{% else %}

Get Started

Login to access the admin dashboard, manage content, and use AI-powered features.

Login Demo: demo@crumb.local / demo123
{% endif %}
Tech Stack & APIs

Backend

  • FastAPI - Modern Python web framework
  • MariaDB - Relational database
  • Qdrant - Vector database for RAG
  • Jinja2 - Template engine

API Endpoints

GET  /api/hello                    - Hello World API
POST /api/diary/index               - Index diary entry
POST /api/diary/search              - Semantic search
POST /api/diary/ask                 - RAG Q&A
GET  /api/diary/{child_id}/status   - Status check

Quick Test

curl http://localhost:8000/api/hello?lang={{ lang }}
curl http://localhost:8000/health
curl http://localhost:8000/__routes
{% if user and user.role == 'admin' %}
System Information (Admin Only)
User {{ user.email }}
Role {{ user.role }}
Locale {{ user.locale or lang }}
Language {{ lang }}
{% endif %} {% endblock %}