Search & retrieval

jev-document-classification

@Charlyhno-eng2TypeScriptMITupdated 2026-09-19runnable

JEV Document Classification enables the rapid and cost-effective classification of text-based documents using AI, leveraging TypeSafe's "System One" model.

Charlyhno-eng/jev-document-classification

Where it calls Jev

import { createGateway, experimental_evaluate as evaluate } from 'ai';

server/classification.ts:1

The link points at the commit we read, so the line number still holds.

What it asks Jev

These question sets are lifted from this project's source exactly as written.

from server/classification.ts:113

  1. confidentialitychoice

    Assess the sensitivity of the document content. Choose the highest applicable confidentiality level.

    • PublicSafe to share publicly; contains no sensitive business or personal information.
    • InternalFor internal use; contains routine business information that should not be public.
    • ConfidentialContains sensitive business, financial, contractual, or personal information.
    • RestrictedContains highly sensitive personal data, credentials, health data, legal privilege, or critical business secrets.

Run it on your own text

The code
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    confidentiality: { type: 'choice', instructions: 'Assess the sensitivity of the document content. Choose the highest applicable confidentiality level.',
      criteria: { Public: 'Safe to share publicly; contains no sensitive business or personal information.', Internal: 'For internal use; contains routine business information that should not be public.', Confidential: 'Contains sensitive business, financial, contractual, or personal information.', Restricted: 'Contains highly sensitive personal data, credentials, health data, legal privilege, or critical business secrets.' } },
  },
});

Other projects in this category