Runs in your browser
no API call
原始链接: https://ternlight-demo.vercel.app/
一个 7 MB 大小的嵌入模型。在 CPU 上运行。无需 API。直接集成,毫秒级文本嵌入,无需调用服务器。 在浏览器中运行,无 API 调用。 引擎 + 权重 · 7 MB 迷你版 · 5 MB 快速嵌入 · 约 5 毫秒 仅限 CPU · 无需 GPU 使用它 三行代码实现语义搜索。 作为单个 npm 包提供。无需下载模型,无需服务器。 $ npm install @ternlight/base example.js import { embed, similar } from '@ternlight/base'; similar('easy weeknight dinner ideas', recipes, { topK: 3 }); // → 排序后的匹配结果 · 约 5 毫秒 · 零网络延迟 示例 React 文档搜索 在浏览器中搜索 React 文档。输入问题 — 由 5 MB 大小的 @ternlight/mini 驱动。
An embedding model in 7 MB.
Runs on your CPU. No API.
Drop it in, embed text in milliseconds, and never call a server.
Runs in your browser
no API call
Engine + weights · 7 MB
mini variant · 5 MB
Fast embeddings · ~5 ms
CPU only · no GPU
USE IT
Ships as a single npm package. No model download step, no server.
$
npm install @ternlight/base
example.js
import { embed, similar } from '@ternlight/base';
similar('easy weeknight dinner ideas', recipes, { topK: 3 });
// → ranked matches · ~5 ms · zero network
EXAMPLE
Search React's docs in your browser. Type a question — powered by @ternlight/mini, the 5 MB tier.