Skip to content
iflabxPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

91 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LangSet

中文 · Documentation · Setup guide

LangSet is a workspace for building test datasets, evaluating agents, and running regression tests. Teams can turn source files into versioned test cases, compare two runs on the same cases, and keep cases that need improvement or protection for the next acceptance run. Evaluation and regression reports let you trace a result back to the dataset version and source case.

What you can do

Area Capabilities
Projects and access Sign in with individual accounts and invite teammates to projects. Project permissions govern access to source material, draft editing, and connection settings.
Source material and selection Upload CSV, JSON, and JSONL. Map fields while retaining original files, then filter and preview all matches or a random sample before adding cases to a draft.
Test datasets Add cases manually or select them from source material. Use the same editor for follow-up turns, expected outputs, and nested metadata. Edit shared drafts with field-level autosave, publish fixed versions, and export data with provenance. New chat dataset versions can round-trip single- and multi-turn cases in one CSV.
Data processing and project assistant Clean, rewrite, or expand cases, or generate candidates from background documents. Review candidates before saving to a draft. The project assistant, available as a trial, can also find materials, prepare drafts, and review results. Administrators can configure multiple OpenAI-compatible services and keys. Users choose among enabled models in the assistant or a processing task.
Evaluations and execution details Connect Dify Chat or Chatflow, or connect LangChain and LangGraph through Agent Server. Run all or a subset of cases from a published version and inspect per-turn answers and any model or tool nodes the application exposes.
Langfuse scoring and datasets Sync a local version, bind an external dataset, or start a configured run from Langfuse. Review available scores and reasons, and define pass criteria. With on-demand rules configured, select one or more evaluators when starting a run from a local version.
Agent comparison Align two completed standard evaluations of the same published dataset version by test case. Filter evaluators, inspect averages, declines, and missing scores, and export an HTML report or CSV details.
Regression testing Collect below-target cases from a report, declines from a comparison, or cases that should continue to pass. Publish a regression suite with acceptance criteria, rerun it, and trace the results back to the original cases and answers.

Run your first evaluation

  1. Sign in and open a project. Under Data Management → Test Sets, choose a published version. If you just have a file, import it as source material, add a few cases to a draft, and publish the draft.
  2. An administrator connects and checks the target application under Settings. For scoring, check the project's Langfuse connection. To run selected evaluators on demand, configure their trigger rules first. Evaluation guide · On-demand scoring setup
  3. Start an evaluation from the version page, choose the target application, and try one case. Open the run under Evaluations to inspect the answer and available execution details. When scoring is complete, review the score and its reason.
  4. To compare an upgrade, repeat the run with the same version and test cases. Under Evaluations → Agent Comparison, select the baseline and comparison runs. Add cases you want to track to Regression Testing for the next acceptance run.

Open Help above Settings in the application sidebar, or go to /help on your LangSet instance. The in-app guides cover imports, evaluation, and regression workflows. Search for the task or the symptom you see, such as a missing score. Dify setup · LangChain setup · Agent comparison · Regression testing

Getting started

The setup guide covers Docker Compose installation, first-administrator setup, model worker configuration, and source development with Node.js 24. The default Compose configuration requires explicit credentials and disables test identities.

A new account-enabled instance opens administrator setup on first access. Existing instances use their existing accounts. For upgrades from a single-owner instance, follow the account migration runbook.

Architecture

Component Responsibility
React Web The formal frontend in apps/web/, with TanStack Router, TanStack Query, and Tailwind CSS.
Fastify Web service Authentication, project permissions, business APIs, assistant requests, and the built frontend.
Ordinary Worker Dataset, evaluation, and cleanup jobs.
Model Worker Model-processing jobs, using the same worker entry point with WORKER_TASK_GROUP=model.
PostgreSQL Accounts, project state, drafts, versions, jobs, assistant progress, and evaluation results.
MinIO Original files, processing artifacts, and exports.

The assistant uses AI SDK with an OpenAI-compatible provider. The application persists requirements, execution progress, budgets, and business receipts; models propose business operations within the current user's permissions. Details are in the architecture and ADR.

Repository map

Path Contents
apps/web/ Formal frontend; its README explains local commands.
apps/api/ Fastify startup, HTTP plugins, and routes.
apps/worker/ Queue coordination and background task handlers.
packages/ Application use cases, domain rules, adapters and shared code.
tests/ Unit, integration, and browser tests.
docs/ Documentation index, product contracts, architecture, runbooks, and research.
.scratch/ Local-only specifications, tickets, and acceptance evidence; excluded from public source.

Status and validation

This overview describes the checked-out revision. Use repository tags and Releases to identify published versions. The project assistant is available as a trial.

Contributing and security

See Contributing, the Code of Conduct, and Security Policy. Keep model keys, session cookies, deployment secrets, and private datasets out of commits. Run npm run security:check before publishing. Raw acceptance evidence stays in private storage.

Licensed under Apache-2.0.

Source provenance and retained copyright information: Source and Attribution.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages