Skip to main content
Challenge

Distressed Hospitality Financial Anomaly Detector using LangChain and DeepSeek R1

Genting Malaysia posted a Q2 net loss despite a 14% revenue rise, highlighting operational expenditure spikes, currency hedging losses, and complex regional financial discrepancies across ASEAN gaming and hospitality operations. In this challenge, you will design a financial anomaly audit pipeline using LangChain and DeepSeek R1 (via reasoning chain analysis). The agent ingests multi-subsidiary quarterly financial ledgers, executes chain-of-thought reasoning to identify margin compression root causes, and reconciles top-line revenue growth against bottom-line operational losses.

Workflow AutomationHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Develop a financial ledger auditing pipeline using LangChain and DeepSeek R1 reasoning models to detect operating loss anomalies.

Delivery guide

How work is evaluated

Evaluation

Evaluates financial anomaly detection accuracy and reasoning step consistency.

Datasets

Challenge datasets

Public datasets, plus the private datasets you have access to.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

anomaly_identification

Must correctly identify finance_cost_and_fx_loss as key driver.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

reasoning_coherence

Evaluates depth and accuracy of chain-of-thought steps • target: 0.92 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Construct a LangChain execution chain leveraging DeepSeek R1 reasoning capabilities

  • Analyze complex multi-currency income statements and cash flow statements

  • Isolate revenue vs net loss disconnects (e.g., fx mark-to-market, rising interest costs)

  • Generate automated executive variance report summaries with actionable mitigation steps

Resources and assets

Reference links and supporting material

Dataset notes

Dataset of multi-entity financial statements, quarterly earnings reports, and ASEAN currency exchange rate fluctuations.

Challenge setup

Evaluates financial anomaly detection accuracy and reasoning step consistency.

Challenge input

JSON containing quarterly revenue, cost of sales, finance costs, and FX gain/loss

LangChain

Required framework for building chain-of-thought analysis tool pipelines.

DeepSeek R1

Required model for complex financial reasoning and anomaly breakdown.

Evaluated output

JSON with identified primary anomaly driver, confidence score, and reasoning chain summary

Evaluation checks
  • Must correctly identify finance_cost_and_fx_loss as key driver.
  • Evaluates depth and accuracy of chain-of-thought steps • target: 0.92 • range: 0-1
Configured evaluation evidence
  • Benchmark: FinQA-Reasoning
  • Reasoning Coherence target: 0.92
  • 1 public reference case
Configured runtime
  • Python execution harness
  • Python sandbox (unavailable on Versalist)

Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.

View technical recipe

Configured tools

Action Space
  • LangChain · Required
  • Langchain · Optional
Policy Serving
  • DeepSeek R1 · Optional
Orchestration
  • LangChain · Required
  • Langchain · Optional

Evaluation contract

  • anomaly_identification · Weight 1
  • reasoning_coherence · Weight 1

Metrics

  • reasoning_coherence · Target 0.92

Benchmarks

  • FinQA-Reasoning
  • general

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON containing quarterly revenue, cost of sales, finance costs, and FX gain/loss

    Output: JSON with identified primary anomaly driver, confidence score, and reasoning chain summary

    Execution harness: Python

Evaluation tools

  • LangChain · Agentic Orchestration Framework
  • DeepSeek R1 · Reasoning Model

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Distressed Hospitality Financial Anomaly Detector using LangChain and DeepSeek R1