A psychologist in your pocket — evidence-grounded, not opinion-driven.


Problem Statement

A Retrieval-Augmented Organizational Psychology Knowledge Assistant that provides evidence-based workplace recommendations grounded in psychology literature. Generic chatbots give generic advice. Employees need evidence-backed psychological support tailored to their specific workplace situation — not a list of tips from a wellness blog.


System Pipeline

Guided conversational flow (4 questions) → conv_controller
    ↓
LLM Call #1: QA pairs → natural language narrative (org psych case summary)
    ↓
Parameter Scoring: narrative → LLM → 11 psychological parameters scored 0–10
    ↓
Narrative embedded → ChromaDB retrieval → top-10 dense results
    ↓
LLM Call #2: Narrative + chunks + prompt → 3 evidence-based recommendations + sources
    ↓
User receives recommendations + cited books
    ↓
FREE CHAT MODE — query_rag_hist handles follow-ups with conversation history (last 10 turns)

📚 Corpus Architecture

The knowledge base is structured into three hierarchical layers to maintain domain coherence and retrieval precision.

Layer 1: Core Organizational Psychology (Foundational Layer)

These texts provide structured theoretical frameworks for workplace behavior, motivation, leadership, team dynamics, and organizational performance. This layer forms the conceptual backbone of the system.

  1. Organizational Behavior — Robbins & Judge
  2. Industrial and Organizational Psychology — Paul Levy
  3. Work and Organizational Psychology — John Arnold
  4. The Oxford Handbook of Organizational Climate and Culture — Schneider & Barbera
  5. Leadership in Organizations — Gary Yukl

Priority: Highest | Role: Core domain grounding

Layer 2: Workplace Stress & Burnout (Application Layer)

These works focus on stress physiology, burnout mechanisms, coping strategies, and workplace wellbeing. This layer directly supports the system’s stress and burnout-related query handling.