返回
TDternlight-demo.vercel.app
22
·其他 · RSS

Ternlight – 7 MB embedding model that runs in browser (WASM)

查看原文
推荐理由

这条记录涉及编程工具或代码能力更新,适合开发者评估工作流变化和可复用价值。

AI 摘要

Ternlight 是一款轻量级嵌入模型,大小仅为 7 MB,可在浏览器中运行,无需 API 调用。它利用 CPU 进行计算,不依赖 GPU,能够以约 5 毫秒的速度快速嵌入文本。该模型以单个 npm 包的形式提供,无需下载额外模型或服务器,用户可以通过简单的三行代码实现语义搜索功能。…

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

Three lines to semantic search

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

React docs search

Search React's docs in your browser. Type a question — powered by @ternlight/mini , the 5 MB tier.

主题标签模型发布开源代码
原始关键词#embedding#ternlight#browser#model#runs#wasm
查看原文ternlight-demo.vercel.app
单一来源,暂无交叉验证
Ternlight – 7 MB embedding model that runs in browser (WASM) · BuzzRadr