SPB Git

spb/llmindex Public

The discriminative, contamination-resistant, fully transparent LLM ranking — updated live.

TypeScript 77.9% TeX 15.2% Python 3.7% SQL 1.4% JavaScript 1.1% Shell 0.5%
1.1 KB · 40 lines typescript
Raw Blame History
1/**2 * llmindex.io — GET /api/v1/methodology (machine-readable weights + IRT hyperparams)3 * Author:  Simon-Pierre Boucher4 * Contact: contact@spboucher.ai5 * License: Proprietary — © Simon-Pierre Boucher, all rights reserved6 */7import { type NextRequest } from 'next/server';8import {9  CONTAMINATION_DELTA_FLOOR,10  DOMAINS,11  DOMAIN_WEIGHTS,12  INDEX_VERSION,13  IRT_HYPERPARAMS,14  SUBMETRIC_WEIGHTS,15  THETA_SCALE,16} from '@llmindex/scoring';17import { apiJson } from '@/lib/api';18import { rateLimit } from '@/lib/rate-limit';1920export const dynamic = 'force-dynamic';2122export async function GET(req: NextRequest) {23  const limited = await rateLimit(req);24  if (limited) return limited;25  return apiJson(26    {27      index_version: INDEX_VERSION,28      domains: DOMAINS,29      domain_weights: DOMAIN_WEIGHTS,30      submetric_weights: SUBMETRIC_WEIGHTS,31      irt_hyperparams: IRT_HYPERPARAMS,32      theta_scale: THETA_SCALE,33      contamination_delta_floor: CONTAMINATION_DELTA_FLOOR,34      notes:35        'Latency and cost are never blended into quality scores; they are published as an efficiency (Pareto) frontier.',36    },37    { cacheSeconds: 3600 },38  );39}40