src/lib/dataset/user-samples.ts

Total Symbols
1
Lines of Code
32
Avg Complexity
1.0
Symbol Types
1

Symbols by Kind

interface 1

All Symbols

Name Kind Visibility Status Lines Signature
UserTrainingSample interface - 20-26 interface UserTrainingSample

Full Source

/**
 * User-generated training samples — populated by `npm run import:rules`.
 *
 * Do NOT edit manually; export rules from the extension options page
 * (Cache & Treino → "Exportar Regras para Dataset"), then run:
 *
 *   npm run import:rules path/to/fill-all-rules.json
 *
 * After importing, retrain and rebuild:
 *   npm run train:model
 *   npm run build
 */

import type {
  FieldType,
  TrainingDifficulty,
  TrainingSampleSource,
} from "@/types";

interface UserTrainingSample {
  signals: string;
  type: FieldType;
  source: TrainingSampleSource;
  difficulty: TrainingDifficulty;
  domain?: string;
}

/** User-generated training samples populated by `npm run import:rules`. */
export const USER_SAMPLES: UserTrainingSample[] = [
  // populated by: npm run import:rules [path/to/fill-all-rules.json]
];