Skip to content
NotArsenicPublic

Repository files navigation

Orato

Multi-Agent Mock Interview Platform

Voice-based interview practice with a panel of LLM interviewers, built on LangGraph.


Python LangGraph LangChain FastAPI Streamlit SQLite

OpenRouter vLLM Whisper Piper PyTorch Docker


Overview • Features • How It Works • Interviewer Panel • Model Providers • Installation • Usage • API • Structure


Overview

Orato simulates a technical job interview conducted by a panel rather than a single interviewer. The candidate uploads a resume and a job description, then answers questions out loud. A panel of interviewer agents, each with a defined role and area of expertise, take turns asking questions based on the conversation so far and on the documents the candidate provided.

The panel is coordinated by a moderator. After every answer, the interviewer who asked the last question decides whether a follow-up is needed. If not, the other interviewers propose questions in parallel and the moderator selects the most relevant one. This produces a conversation where topics shift naturally between behavioral, technical and design discussions, much like a real panel interview.

Answers are transcribed locally with Whisper, which also measures how each answer was delivered: speaking rate, filler words and long pauses. Each interviewer responds with a synthesized voice through Piper. When the interview ends, the transcript and the delivery measurements are analyzed against a knowledge base of interviewing guidance, and the candidate receives a structured coaching report as a PDF.


Features

Multi-Agent Panel

Four interviewers with individual roles, expertise, questioning styles and voices. New interviewers can be added with a single JSON file.

Resume-Aware Questions

The resume and job description are indexed for each session. Interviewers can pull specific details from them while forming questions.

Moderated Turn-Taking

Interviewers bid for the next question in parallel. A moderator scores each bid and selects a speaker, with safeguards against one interviewer dominating the session.

Adaptive Follow-Ups

The previous interviewer reviews each answer and can accept it, ask for more detail, or correct a misconception before the floor passes to someone else.

Configurable Sessions

Choose which interviewers sit on the panel and how long each interview phase lasts before starting.

Voice Interaction

Answers are recorded in the browser and transcribed with Whisper. Questions are spoken back with Piper, in a voice assigned to each interviewer.

Measured Delivery

Word timestamps from Whisper give real numbers for speaking rate, filler words and pauses, rather than estimates.

Hosted or Self-Hosted Models

Runs on any model available through OpenRouter, or on your own GPU with vLLM. Sessions are saved to SQLite and survive server restarts.


How It Works

Session Lifecycle

Session lifecycle: upload documents, then each turn the panel asks, the candidate answers, Whisper transcribes, and the agents pick the next turn, ending in a coaching report

  1. Upload documents. The candidate enters their name, uploads a resume and job description, and optionally adjusts the panel and phase durations. The backend splits both documents into chunks and indexes them in a FAISS store dedicated to the session.
  2. Panel asks a question. The first interviewer opens with an introductory question, which is converted to speech in that interviewer's voice and played back.
  3. Candidate answers. The candidate records an answer through the browser microphone.
  4. Whisper transcribes. The answer is transcribed with word-level timestamps, which are used to measure speaking rate, filler words and long pauses. The text and the measurements are sent to the backend together.
  5. Agents pick the next turn. The agent graph decides who speaks next and what they ask. Steps 2 to 5 repeat until the interview concludes.
  6. Coaching report. After the last turn, the candidate can download a PDF report built from the transcript and the delivery measurements.

Interview Phases

Each phase changes the guidance given to the interviewers, so the tone and depth of questions shift as the session progresses.

Phase Default Length Purpose
Warm-Up 10 minutes Builds rapport through questions about background, motivation and interests
Technical 15 minutes Assesses role-specific skills through problem solving, coding and system design questions
Candidate Q&A 5 minutes The candidate asks the panel questions. Each one is answered by the interviewer whose expertise matches it best
Closing The lead interviewer thanks the candidate and outlines next steps

Phase lengths can be changed per session from the Panel settings section of the setup screen, or through the phase_minutes field of the API. The defaults live in DEFAULT_PHASE_TIME_LIMITS in agent_engine/agents/initializer_agent.py. The interview also ends early if the candidate indicates they have no further questions during the Q&A phase.

Agent Graph

The interview runs as a LangGraph state machine. All agents read from and write to a shared state object containing the transcript, the current phase, the active interviewers and their bids. The graph pauses before process_input while waiting for the candidate, then resumes from the same point when an answer arrives. State is checkpointed to SQLite after every step, so a session can be resumed even after the server restarts.

flowchart TD
    START([Start]) --> init[Initializer]
    init --> load[Load Profiles]
    load --> exec[Execute Turn]

    exec -->|awaiting answer| input[Process Input]
    exec -->|Q&A phase| timer[Phase Time Check]

    input --> timer
    input -->|Q&A phase| answer[Answer Candidate Question]
    input -->|interview over| bye[Closing Statement]

    timer -->|time limit reached| trans[Phase Transition]
    timer --> lq[Follow-Up Decision]

    lq -->|PROBE / CORRECT| exec
    lq -->|ACCEPT / PASS| bids[[Parallel Interviewer Bids]]
    bids --> arb[Moderator Arbitration]

    arb -->|winner selected| exec
    arb -->|no qualifying bids| trans

    answer --> exec
    bye --> exec
    trans --> exec
    exec -->|interview ended| END([End])
Loading
View the compiled LangGraph diagram

Compiled interview graph

Turn Selection

Deciding who speaks next is the core of the system. It happens in four stages after every answer.

1. Follow-up decision. The interviewer who asked the previous question reads the answer and chooses one of three actions:

Action Meaning
ACCEPT The answer is sufficient. The floor opens to the rest of the panel
PROBE The answer is vague or incomplete. The same interviewer asks a follow-up
CORRECT The answer contains an error. The same interviewer addresses it

To keep the conversation balanced, an interviewer who has already asked two questions in a row must pass.

2. Parallel bidding. Every other interviewer drafts a question at the same time. Each bid includes the question, a justification for asking it now, and an estimated discussion time. While drafting, interviewers can call two tools, fetch_resume_content and fetch_job_description, which search the session's indexed documents.

3. Moderator arbitration. The moderator scores each bid from 0 to 100 based on relevance, novelty, brevity and importance. Bids scoring below 40 are discarded, and the highest remaining bid wins. When scores are tied, the interviewer who has spoken least is chosen. If the scoring model fails, a rule-based fallback scorer is used.

4. Phase transition. If no bid meets the threshold, the panel has run out of useful questions and the interview moves to candidate Q&A.

Delivery Measurement

Whisper is run with word-level timestamps and a short verbatim prompt, which keeps hesitations such as "um" and "uh" in the transcript instead of cleaning them up. Each answer then yields:

Metric How it is measured
Speaking rate Words divided by the time from the first word to the last
Filler words Count and rate per minute of words such as "um", "uh", "er" and "hmm"
Long pauses Gaps of 2 seconds or more between consecutive words

The measurements travel with the answer and are stored on its transcript entry. At report time they are combined across the whole session and passed to the report model as fixed values. When an answer was typed instead of spoken, the report falls back to estimates and labels them as such.

Coaching Report

Once the interview ends, the transcript is used to generate a feedback report through a retrieval-augmented pipeline.

Report pipeline: the interview transcript retrieves passages from the knowledge base, the report model combines them with the transcript, speech metrics and template into a Markdown report, which is rendered to PDF

The knowledge base contains the interviewer profiles and the guidance documents in services/Report_Generation/chroma_data/. It is built automatically the first time a report is generated, and rebuilt separately for each embedding model, since vectors from different models cannot be mixed. The most relevant passages are retrieved for the transcript and passed to the report model along with report_template.txt. Recommendations that draw on a retrieved document cite it inline. The Markdown output is then rendered to a formatted PDF with ReportLab.

Section Contents
Executive Summary Overall assessment, main strength, main gap and a recommended next step
Speech and Delivery Clarity, tone, vocabulary, answer structure and listening
Strengths Specific things the candidate did well, supported by quotes from the transcript
Areas for Improvement Each issue with an explanation of why it matters and steps to address it
7-Day Practice Plan Short, concrete drills for the following week
30/60/90-Day Plan Longer-term habits and goals
Metrics Measured speaking rate, fillers and pauses, plus 1 to 5 scores for fluency, clarity, vocabulary and more
JSON Footer Machine-readable summary of metrics, strengths and fixes

Interviewer Panel

Each interviewer is defined by a profile containing their name, title, expertise, biography, voice and a system prompt that sets their interviewing approach. Profiles are stored in agent_engine/Interviewer_Profiles_DB/.

Sarah Chen
Engineering Manager
Core Platform


Behavioral questions using the STAR method. Focuses on teamwork, conflict and delivery under deadlines.


Conversational

David Lee
Senior Software Engineer
Search & AI


Algorithm and data structure problems. Evaluates reasoning, code quality and complexity analysis.


Technical Deep Dive

Priya Sharma
Staff Engineer
Cloud Infrastructure


System design fundamentals. Looks at components, APIs, data models and trade-offs.


Whiteboarding

Marcus Cole
Senior Technical Recruiter
Talent Acquisition


Motivation, career goals and culture fit. Explains next steps in the process.


Informal Chat

Adding an Interviewer

Create a new JSON file in the profiles directory. When the graph is built, a bidding node is created automatically for every profile it finds, and the new interviewer appears in the panel settings of the web interface. No code changes are needed.

{
  "id": "INT-005",
  "name": "Jordan Park",
  "title": "Principal Product Designer",
  "voice": "joe",
  "expertise": ["UX Research", "Design Systems", "Accessibility"],
  "bio": "Jordan leads design for the developer platform.",
  "system_prompt": "You are Jordan Park, a Principal Designer. Assess how the candidate reasons about users...",
  "stats": {
    "focus": "Product Sense",
    "experience_years": "10",
    "interview_style": "Scenario-based"
  }
}

Note

voice must match a voice listed in VOICE_MODEL_MAP in services/TTS/pipr_stt_service.py. Profiles without one are assigned a voice automatically.


Model Providers

Every model call goes through an OpenAI-compatible API, so Orato can use hosted models through OpenRouter or models running on your own hardware through vLLM. The provider is chosen with LLM_PROVIDER in .env, and nothing else in the code changes.

Model Used for OpenRouter default vLLM default
Interview Interviewer questions, follow-ups and bid scoring google/gemini-3.5-flash-lite The model the server is serving
Report Coaching report mistralai/mistral-small-3.2-24b-instruct The model the server is serving
Embeddings Resume search and the report knowledge base openai/text-embedding-3-small BAAI/bge-base-en-v1.5, run locally

OpenRouter

Set OPENROUTER_API_KEY and the defaults above are used. Any model from the OpenRouter catalog can be swapped in with INTERVIEW_MODEL, REPORT_MODEL and EMBEDDING_MODEL. The interview model should support tool calling, so interviewers can search the candidate's documents.

vLLM

Start a vLLM server with tool calling enabled, then point Orato at it:

vllm serve Qwen/Qwen3-4B-Instruct-2507 --port 8001 \
    --enable-auto-tool-choice --tool-call-parser hermes
LLM_PROVIDER=vllm
VLLM_BASE_URL=http://localhost:8001/v1

Orato asks the server which model it is serving, so no model name is needed. Port 8000 is left free for the Orato API.

On a 16 GB GPU, add --max-model-len 16384 --gpu-memory-utilization 0.80 to leave room for the cache and other applications. If startup fails with Could not find nvcc, the machine has no CUDA toolkit for compiling kernels; run vllm download-kernels once to install precompiled ones.

How the vLLM Integration Works

All model access is created in services/llm_provider.py, which builds LangChain's OpenAI clients for chat and embeddings. Since vLLM serves the same OpenAI-compatible API as OpenRouter, switching providers changes only the base URL and model names, and the agents, tools and report pipeline run unchanged.

  • Model discovery. When no model is named, Orato reads /v1/models from the server and uses the model it is serving.
  • Tool calling. Interviewers search the resume and job description through vLLM's native tool calling. If the server rejects a tool request, the client switches to plain generation for the rest of the session instead of failing.
  • Embeddings. Documents are embedded locally with sentence-transformers unless a vLLM embedding server is configured. Each embedding model gets its own knowledge base directory, so switching providers never mixes incompatible vectors.
  • Limits. Output caps and automatic retries apply to vLLM the same way they do to OpenRouter.

A full interview, from the opening question through candidate Q&A and the PDF report, has been run with vLLM 0.32.0 serving Qwen/Qwen3-4B-Instruct-2507 on a 16 GB RTX 5060 Ti. Generation ran at about 85 tokens per second, giving 13 to 19 seconds per turn, since each turn makes several model calls for the parallel bids, document searches and moderation.

Embeddings run locally with sentence-transformers by default, so no second server is required. To serve embeddings from vLLM instead, start an embedding model on another port and set EMBEDDING_PROVIDER=vllm:

vllm serve BAAI/bge-base-en-v1.5 --port 8002

Note

If the server was started without --enable-auto-tool-choice, Orato detects the rejected tool call and continues without tools. Interviews still work, but interviewers can no longer search the resume and job description. The right --tool-call-parser depends on the model family; see the vLLM tool calling guide.


Tech Stack

Layer Technology Role
Orchestration LangGraph, LangChain Agent graph, shared state, parallel execution, tool calls
Model Access OpenRouter or vLLM OpenAI-compatible API for every model call
Interview Model google/gemini-3.5-flash-lite by default Question generation, follow-up decisions, bid scoring
Report Model mistralai/mistral-small-3.2-24b-instruct by default Coaching report generation
Embeddings openai/text-embedding-3-small by default, or local BAAI/bge-base-en-v1.5 Resume and job description index, report knowledge base
Vector Stores FAISS, Chroma Per-session document search, report retrieval
Persistence SQLite, LangGraph checkpointer Session registry and conversation state
Speech-to-Text OpenAI Whisper small Local transcription with word timestamps. Runs on CPU or CUDA
Text-to-Speech Piper Local voice synthesis from ONNX models
Backend FastAPI, Uvicorn Session management and REST API
Frontend Streamlit Interview interface, audio recording and playback
PDF ReportLab Report rendering

Installation

Prerequisites

  • Python 3.12
  • ffmpeg installed and available on PATH, which Whisper requires
  • An OpenRouter API key, or a running vLLM server
  • An NVIDIA GPU is optional for OpenRouter, but speeds up transcription considerably

1. Clone the repository

git clone https://github.com/NotArsenic/Orato.git
cd Orato
python3.12 -m venv .venv
source .venv/bin/activate

2. Install dependencies

pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt

This installs the CPU build of PyTorch. For GPU transcription, install the CUDA build instead:

pip install --extra-index-url https://download.pytorch.org/whl/cu132 -r requirements.txt

3. Configure the model provider

Copy the example environment file:

cp .env.example .env

For OpenRouter, only the key is needed:

OPENROUTER_API_KEY=sk-or-...

For vLLM, see Model Providers.

Variable Default Purpose
LLM_PROVIDER openrouter openrouter or vllm
OPENROUTER_API_KEY Required when using OpenRouter
INTERVIEW_MODEL See Model Providers Model for the interviewer agents
REPORT_MODEL See Model Providers Model for the coaching report
EMBEDDING_PROVIDER openrouter, or local with vLLM openrouter, vllm or local
EMBEDDING_MODEL See Model Providers Model for document embeddings
VLLM_BASE_URL http://localhost:8001/v1 vLLM server for chat models
VLLM_EMBEDDING_BASE_URL http://localhost:8002/v1 vLLM server for embeddings
VLLM_API_KEY Only needed if vLLM was started with --api-key
ORATO_DB_PATH data/orato.db Location of the SQLite database
ORATO_API_URL http://localhost:8000 Backend address used by the web interface

4. Download speech models

python scripts/download_models.py

This downloads the two Piper voices into models/TTS/ and the Whisper small model into ~/.cache/whisper. Files that already exist are skipped.

Tip

If no Piper voices are found, the interview still works and questions are shown as text.

5. Rebuild the report knowledge base (optional)

The knowledge base is built automatically the first time a report is generated. Rebuild it after changing interviewer profiles or adding guidance documents to chroma_data/:

python -m services.Report_Generation.chroma_ingest

Usage

Web Interface

Start the backend and frontend in two separate terminals, both from the project root:

# Terminal 1: API server on http://localhost:8000
python fast_main.py
# Terminal 2: Web interface on http://localhost:8501
streamlit run interview_loop.py

Open the web interface, enter your name, and upload a resume (PDF or DOCX) and a job description (PDF, DOCX or TXT). Expand Panel settings to choose interviewers and phase lengths, then select Start Interview. Record each answer using the microphone control under your card. When the interview ends, the report download appears on the same page.

Docker

The included Compose file runs the backend and the web interface as separate containers that share uploaded files, voice models and the session database.

docker compose up --build

The image uses CPU PyTorch by default. Pass --build-arg TORCH_INDEX=https://download.pytorch.org/whl/cu132 for a CUDA build.

To run a self-hosted model alongside the app, set LLM_PROVIDER=vllm in .env and enable the vllm profile. It serves Qwen/Qwen3-4B-Instruct-2507 on the GPU by default, which can be changed with VLLM_MODEL.

docker compose --profile vllm up --build

Download the speech models into the shared models folder before the first run:

docker compose run --rm ui python scripts/download_models.py

Command Line

The agent graph can also be run in the terminal with typed answers. This is useful for testing agent behavior without audio or the web interface.

python agent_main.py

Tests

The test suite runs the full agent graph and API against a stub language model and a mock OpenAI-compatible server, so it needs no API keys or GPU.

pytest

API Reference

The backend in fast_main.py exposes a REST API, so the interview engine can be used with a different frontend.

Method Endpoint Body Description
GET /interviewers Lists available interviewer profiles and the default phase lengths
POST /session/create user_name, resume_path, jd_path, interviewer_ids, phase_minutes Creates a session. Returns the session ID, panel details and the first question
POST /session/input session_id, user_input, speech_metrics Submits an answer. Returns the next speaker, their response and the current phase
GET /session/{id}/state Returns the current phase, last questioner and message count
GET /session/{id}/messages Returns the full transcript, including delivery metrics for each answer
POST /session/{id}/report user_name Generates the coaching report and returns it as a PDF
DELETE /session/{id} Deletes the session, its saved state and its indexed documents
GET /health Returns service status and the number of stored sessions

All body fields other than user_name, session_id and user_input are optional.

Example: create a session with a custom panel
curl -X POST http://localhost:8000/session/create \
  -H "Content-Type: application/json" \
  -d '{
        "user_name": "Alex",
        "resume_path": "uploaded_files/resume.pdf",
        "jd_path": "uploaded_files/jd.pdf",
        "interviewer_ids": ["INT-001", "INT-002"],
        "phase_minutes": {"WARMUP": 5, "TECHNICAL": 20, "CANDIDATE_Q": 5}
      }'
{
  "session_id": "3f2a9c1e-...",
  "message": "Session created. First speaker: INT-001",
  "generated_response": "Hello! I'm Sarah Chen, and I'll be one of your interviewers today...",
  "phase": "WARMUP",
  "is_complete": false,
  "last_questioner_id": "INT-001",
  "interviewers": { "...": "..." }
}
Example: submit an answer with delivery metrics
curl -X POST http://localhost:8000/session/input \
  -H "Content-Type: application/json" \
  -d '{
        "session_id": "3f2a9c1e-...",
        "user_input": "Um, I led the migration of our billing service to Kubernetes.",
        "speech_metrics": {
          "word_count": 11,
          "speaking_seconds": 4.6,
          "words_per_minute": 143.5,
          "filler_count": 1,
          "fillers_per_minute": 13.04,
          "long_pause_count": 0
        }
      }'

Project Structure

Orato/
├── fast_main.py                    # FastAPI backend
├── interview_loop.py               # Streamlit frontend
├── agent_main.py                   # Graph construction and CLI runner
├── requirements.txt                # Pinned dependencies
├── Dockerfile                      # Container image
├── docker-compose.yml              # Backend, frontend and optional vLLM services
├── .env.example                    # Environment variable template
│
├── agent_engine/
│   ├── interview_state.py          # Shared graph state
│   ├── interviewer_profiles.py     # Interviewer profile schema
│   ├── Interviewer_Profiles_DB/    # Interviewer profile JSON files
│   └── agents/
│       ├── initializer_agent.py    # Session setup, phase defaults and panel selection
│       ├── moderator_agent.py      # Input handling, arbitration and phase timing
│       ├── interviewer_agent.py    # Bidding, follow-ups, candidate Q&A and closing
│       ├── llm_client.py           # Model client, tool calls, structured output and bid scoring
│       ├── helper_functions.py     # Speaker scheduling and expertise matching
│       ├── tools.py                # Resume and job description search tools
│       └── constants.py            # Shared JSON schemas
│
├── services/
│   ├── llm_provider.py             # OpenRouter and vLLM model configuration
│   ├── session_store.py            # SQLite session registry
│   ├── Document_Ingestion/         # Per-session resume and job description index
│   ├── Report_Generation/
│   │   ├── rag_report_gen.py       # Report pipeline
│   │   ├── chroma_ingest.py        # Knowledge base ingestion
│   │   ├── report_template.txt     # Report template
│   │   ├── chroma_data/            # Guidance documents
│   │   └── Report_tools/
│   │       └── markdown_parser.py  # Markdown to PDF conversion
│   ├── STT/
│   │   ├── whisper_stt_service.py  # Whisper transcription with word timestamps
│   │   ├── speech_metrics.py       # Speaking rate, filler and pause measurement
│   │   └── stt_service_vosk.py     # Alternative Vosk transcription
│   └── TTS/
│       └── pipr_stt_service.py     # Piper speech synthesis
│
├── scripts/
│   └── download_models.py          # Piper voice and Whisper model download
├── docs/                           # README diagrams
└── tests/                          # Graph, API, provider, tools and metrics tests

Built with LangGraph, FastAPI and Streamlit

Releases

Packages

Used by

Contributors

Languages