Embedding Preview

Vector embedding visualizer with a zero baseline, positive values drawn upward in the tone color and negatives drawn downward in muted.

embedding.vec1,536 dims
[0]cosine similarity ready[15]

Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.

Import & use
import { Ai26 } from "@/components/beste/piece/ai26";

<Ai26
  label="embedding.vec"
  dims={1536}
  values={[
    0.42,
    -0.18,
    0.67,
    0.05,
    -0.31,
    0.54,
    0.22,
    -0.09,
    0.38,
    -0.48,
    0.71,
    0.13,
    -0.22,
    0.58,
    -0.05,
    0.34
  ]}
  tone="violet"
/>