Skip to content

LLARS - LLM Assisted Research System

A research platform for AI-supported analysis and evaluation of online counseling communication


1. What is LLARS?

LLARS (LLM Assisted Research System) is a web-based research platform designed specifically for scientific analysis and evaluation of email counseling communication. The system combines modern Large Language Models (LLMs) with collaborative rating tools and automated analysis methods.

Core Goals

  • Standardized evaluation of counseling quality through structured rating procedures
  • LLM-assisted analysis of communication patterns in counseling conversations
  • Collaborative research through multi-user support with real-time synchronization
  • Reproducible research through systematic data collection and management

2. Core Features

2.1 Email Rating System

The core system enables structured evaluation of email threads from counseling contexts:

Function Description
Mail Rating Rate individual emails based on defined criteria
Scenario Management Organize emails into evaluation scenarios
Ranking System Comparative assessment of counseling quality
Multi-Rater Support Multiple raters can work in parallel

2.2 LLM Evaluator System

Automated pairwise comparisons of email conversations by LLMs:

Pillar A (e.g., role-play data)  vs.  Pillar B (e.g., real counseling)
              ↓                               ↓
         [LLM Evaluation]
    Winner: A/B + confidence + rationale

Use cases: - Comparing different counseling approaches - Evaluating AI-generated vs. human responses - Measuring quality across multiple data sources

2.3 OnCoCo Analysis (Online Counseling Conversations)

In-depth, sentence-level classification of counseling conversations with a specialized transformer model:

Model specification: - Base: XLM-RoBERTa Large (561M parameters) - 68 fine-grained categories (40 counselor, 28 client) - Bilingual support (German/English) - 80% accuracy, Cohen's Kappa: 0.88 (human-level)

Analysis output: - Label distributions per conversation/pillar - Transition matrices (changes between dialog acts) - Sankey diagrams (conversation flow visualization) - Pillar comparisons with statistical metrics

2.4 Collaborative Prompt Engineering

Real-time collaborative development of LLM prompts for evaluation and analysis tasks:

  • Y.js CRDT synchronization: Conflict-free collaboration
  • Cursor tracking: See where other users are working
  • Versioning: Automatic saving of all changes
  • Template management: Reusable prompt templates

Additionally, Markdown Collab enables collaborative writing of Markdown documents with live preview and Git-style diff view.

2.5 RAG Pipeline (Retrieval-Augmented Generation)

Context-aware answer generation through ChromaDB integration:

  • Document upload: PDF, TXT, DOCX, PPTX, XLSX (and more)
  • Chunking & embedding: Automated processing
  • Context search: Relevant passages for LLM queries
  • Admin interface: Knowledge base management

3. Data Sources: KIA Pillar Model

LLARS works with the structured KIA data repository (git.informatik.fh-nuernberg.de):

Pillar Name Content Research Value
1 Role plays Simulated counseling conversations Training baseline, controlled scenarios
2 Features from pillar 1 Extracted features Quantitative analysis
3 Anonymized data Real counseling conversations Ground truth, validation
4 Synthetic AI-generated conversations Augmentation, comparison studies
5 Live tests Current test data Pilot studies, A/B tests

4. Usage for Dissertation Work

4.1 Research Questions Addressed by LLARS

LLARS is particularly well-suited for research on:

  1. Quality measurement in online counseling
  2. How can counseling quality be measured objectively?
  3. Which conversation patterns correlate with successful counseling?

  4. AI in counseling support

  5. Can LLMs reliably evaluate counseling quality?
  6. How do AI-generated and human responses differ?

  7. Conversation analysis and dialog acts

  8. Which dialog acts are typical for high-quality counseling?
  9. How do conversations evolve over time?

  10. Inter-rater reliability

  11. How consistent are different raters?
  12. Can AI serve as an "objective" rater?

4.2 Method Support

Method LLARS Feature Output
Quantitative content analysis OnCoCo classification Label distributions, frequencies
Sequence analysis Transition matrices Conversation patterns, transitions
Comparative study LLM Evaluator Pairwise ratings, rankings
Inter-rater analysis Multi-user rating Agreement metrics
Qualitative exploration Prompt Engineering Structured LLM analysis

4.3 Typical Dissertation Workflow

1. Data import
   └── Synchronize KIA pillars
   └── Define scenarios

2. Manual evaluation (ground truth)
   └── Set up rater team
   └── Define rating criteria
   └── Run collaborative rating

3. Automated analysis
   └── Run OnCoCo classification
   └── Create LLM Evaluator sessions
   └── Compute transition matrices

4. Comparison & evaluation
   └── Human vs. LLM ratings
   └── Pillar comparisons
   └── Statistical tests

5. Export & documentation
   └── CSV/JSON export
   └── Generate visualizations
   └── Reproducible analysis pipeline

4.4 Concrete Example Use Cases

Example 1: Evaluating counseling quality

Research question: "Does counseling quality differ between
                   role plays and real counseling?"

LLARS approach:
1. Load pillar 1 (role plays) and pillar 3 (real data)
2. LLM Evaluator: run pairwise comparisons
3. OnCoCo: compare label distributions
4. Statistical analysis of differences

Example 2: Conversation dynamics analysis

Research question: "Which conversation patterns lead to successful
                   counseling outcomes?"

LLARS approach:
1. Run OnCoCo analysis on all threads
2. Compute transition matrices
3. Compare successful vs. unsuccessful conversations
4. Identify significant patterns

Example 3: LLM as a rating tool

Research question: "Can an LLM reliably replicate
                   human ratings?"

LLARS approach:
1. Human raters evaluate a sample
2. LLM Evaluator rates the same sample
3. Calculate inter-rater reliability (Cohen's Kappa)
4. Analyze discrepancies


5. Technical Overview

5.1 Architecture

┌─────────────────────────────────────────────────────────────┐
│                         NGINX                                │
│                    (Reverse Proxy)                           │
└────────┬──────────────┬──────────────┬──────────────┬───────┘
         │              │              │              │
    ┌────▼────┐   ┌─────▼─────┐  ┌─────▼─────┐  ┌────▼────┐
    │   Vue   │   │   Flask   │  │    YJS    │  │ Authentik│
    │Frontend │   │  Backend  │  │WebSocket  │  │   Auth   │
    └────┬────┘   └─────┬─────┘  └─────┬─────┘  └─────────┘
         │              │              │
         │        ┌─────┴─────────────┐│
         │        │     MariaDB       ││
         │        └───────────────────┘│
         │                             │
    ┌────┴─────────────────────────────┴────┐
    │              External APIs            │
    │  (LiteLLM/OpenAI, GitLab, ChromaDB)   │
    └────────────────────────────────────────┘

5.2 Tech Stack

Component Technology Purpose
Frontend Vue 3 + Vuetify User interface
Backend Flask 3.0 REST API, business logic
Auth Authentik User management
Collaboration Y.js + Socket.IO Real-time sync
Database MariaDB Persistence
LLM LiteLLM (Mistral) + OpenAI AI evaluations
RAG ChromaDB Vector database
NLP XLM-RoBERTa OnCoCo classification

5.3 Permission System

Granular RBAC with 40 permissions:

Role Permissions Typical User
Admin Full access (40 permissions) Project lead
Researcher Evaluation + Prompt Engineering + Markdown Collab + Anonymization + KAIMO (19) Scientist
Chatbot Manager Chatbots + RAG + Prompt Engineering + Markdown Collab (14) Content owner
Evaluator Read access + selected edit permissions (13) External reviewer

6. Scientific Foundations

6.1 OnCoCo Category System

The category system is based on established counseling research:

Counselor Categories (CO): - Formalities (greeting, closing) - Information Gathering (facts, emotions, goals) - Motivation (MI techniques, encouragement) - Resource Activation (social, professional) - Problem Solving (advice, explanations)

Client Categories (CL): - Problem Clarification (presentation, definition) - Objectives (goals, requests) - Feedback (positive/negative) - Resource Consideration

6.2 Methodological Foundations

  • Motivational Interviewing (MI): Specific labels for MI techniques
  • Dialog Act Classification: Hierarchical category system
  • Process Mining: Transition matrices, Sankey diagrams
  • Human-AI Collaboration: LLM Evaluator paradigm

7. Output Formats for Dissertation

7.1 Quantitative Data

# Example: Label distribution
pillar,label,count,percentage
1,CO-IF-AC-RF,245,18.3%
1,CO-IF-Mot,189,14.1%
3,CO-IF-AC-RF,312,21.7%
...

7.2 Visualizations

  • Transition matrix heatmaps: PNG/SVG export
  • Sankey diagrams: Interactive (Plotly) or static
  • Radar charts: Pillar comparisons
  • Timeline visualizations: Conversation progressions

7.3 Statistical Analyses

  • Label frequencies and distributions
  • KL divergence between pillars
  • Chi-square tests for significance
  • Cohen's Kappa for inter-rater reliability
  • ELO scores from LLM Evaluator

8. Research Advantages

Reproducibility

  • All analyses are documented and repeatable
  • Export functions for all raw data
  • Versioning of prompts and configurations

Scalability

  • Automated analysis of large datasets
  • Background workers for batch processing
  • API-based for integration with other tools

Collaboration

  • Multi-user support with roles
  • Real-time synchronization
  • Audit trail for traceability

Flexibility

  • Modular architecture
  • Extensible with new analysis modules
  • Open-source stack

9. Summary

LLARS is a specialized research platform that combines three core functions for the scientific analysis of online counseling:

  1. Structured evaluation: Multi-rater system for manual evaluation
  2. Automated analysis: OnCoCo classification and LLM Evaluator
  3. Visualization & export: Publication-ready outputs

For dissertations in e-counseling, AI-assisted communication analysis, or human-AI collaboration, LLARS offers:

  • Standardized methods for quality measurement
  • Reproducible analysis pipelines
  • Comparison capabilities across different data sources
  • Integration of manual and automated evaluation

Developer: Philipp Steigerwald Version: 3.0 Last updated: March 2026 Repository: LLARS (LLM Assisted Research System)