
演示
为帖子和文章生成主题和标签。
「How to film a two-person podcast with two iPhones」返回的是科技和创作者经济。「Cómo invertir en fondos indexados」返回的是金融。101 种语言返回的是同一套 36 个主题,进入第二个市场因此不用再配置一遍。
正确主题有 91% 的概率落在前三位,多数内容会命中两到三个主题:足够让信息流完成排序、过滤或分发,不需要分类 API。两次轻量的词级扫描就够了,一个浏览器标签页就能给帖子打标签,无需启动语言模型。
单条得分可以在一个集合内累加,于是整个播客订阅源或频道也有了自己的主题。纯英文版本能把模型压到约 15 MB。
36 个主题,101 种语言,74 MB。
36 个主题,覆盖 101 种语言,来自 74 MB 的模型,或 15 MB 纯英文。
在 572 条人工标注的真实帖子上的召回率。内部测量。
应用场景
为帖子和文章生成主题和标签。.
分发一条帖子,不用请求服务器
在设备端按主题为帖子、文章或视频打标签,信息流据此排序、过滤或路由,链路上不必再插一个分类 API。
从帖子里读出频道在讲什么
把一个账号的帖子累加成频道级主题,目录或推荐系统不必等人写简介,就能说清一档播客、一份通讯或一条信息流讲的是什么。
为排序模型给每条内容配一个主题
推荐信息流或审核队列里的每一条,都能拿到一个廉价又私密的主题信号;内容再多,也不会按调用次数计费。
设备端整理
在设备上按主题给用户自己的笔记、书签或收藏分组,个人资料库因此变得可检索,而其中没有一个文件离开设备。
灵感
用 Gist 构建的点子。把提示词复制到你的编码 agent 里就能开始。
Auto-tag articles and posts with their topics for a feed.
Use Desert Ant's Gist on-device to tag each article or post with its topics, then power a topic feed, filters, or a 'more like this' rail without a classification server. Build it with the Desert Ant SDK. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. Install: SwiftPM desert-ant-core; Maven ai.desertant:gist:3.1.0; npm i @desert-ant-labs/gist @litertjs/core. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Route content to channels by topic, no server call.
Build a router that reads a post with Desert Ant's Gist and sends it to the right channel or inbox by topic, entirely on-device. Build it with the Desert Ant SDK. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. Install: SwiftPM desert-ant-core; Maven ai.desertant:gist:3.1.0; npm i @desert-ant-labs/gist @litertjs/core. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Organize a reading list by topic, locally.
Build a read-it-later app that tags saved articles with Desert Ant's Gist on-device and groups them by topic, so the library organizes itself offline. Build it with the Desert Ant SDK. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. Install: SwiftPM desert-ant-core; Maven ai.desertant:gist:3.1.0; npm i @desert-ant-labs/gist @litertjs/core. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Give a recommender a topic-per-item signal that runs on the phone.
Add Desert Ant's Gist as an on-device feature extractor so your ranker gets Gist's topic tags (from a fixed 36-topic set) per item without shipping content to a server. Build it with the Desert Ant SDK. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. Install: SwiftPM desert-ant-core; Maven ai.desertant:gist:3.1.0; npm i @desert-ant-labs/gist @litertjs/core. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Tag a post and suggest an emoji for it.
As a user drafts a post, run Desert Ant's Gist to tag its topic and Emo to suggest a fitting emoji, both on-device. Build it with the Desert Ant SDK. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. Emo (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/emo/. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Auto-file support tickets into the right queue by topic.
Use Desert Ant's Gist on-device to tag an incoming support ticket with its topic and route it to the right queue, no classification server. Build it with the Desert Ant SDK. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. Install: SwiftPM desert-ant-core; Maven ai.desertant:gist:3.1.0; npm i @desert-ant-labs/gist @litertjs/core. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Build an OpenClaw skill that tags and language-routes text.
Write an OpenClaw skill that runs Desert Ant's Tongue to detect a text's language and Gist to tag its topics, on-device, so an agent can route content without a server call. Build it with the Desert Ant SDK. Tongue (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/tongue/. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
An Obsidian plugin that tags notes with their topics, on the device.
Build an Obsidian plugin that runs Desert Ant's Gist in Node to tag each note with its topics and build a topic index, entirely local. Build it with the Desert Ant SDK. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. Install: SwiftPM desert-ant-core; Maven ai.desertant:gist:3.1.0; npm i @desert-ant-labs/gist @litertjs/core. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
模型能做什么
- 36 个主题,从科技、金融到创作者经济;大多数内容会带上两到三个。
- 一个模型覆盖 101 种语言,不必传入语言设置。
- 双流分类器,不含 Transformer,打分只花 CPU 时间,再无别的开销。
- 紧凑的纯英文版本(15 MB),适用于纯英文应用,现在可在 Swift SDK 中通过
Gist(variant: .english)选用。
快速上手
只需几行代码,即可为你的 iOS or macOS, Android or web 应用加上 内容主题标注。 Gist 文档.
// Swift Package Manager
.package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core", from: "3.1.0")
// target dependency
.product(name: "Gist", package: "desert-ant-core")
import Gist
let gist = Gist()
let topics = try await gist.classify("How to start a podcast with just your iPhone")
// [Topic(slug: "technology", ...), ...]
Add Gist from Desert Ant Labs to this Swift project (iOS, macOS). What it does: Gist:设备端内容主题标注. SDK: Swift (iOS, macOS) Repo: https://github.com/Desert-Ant-Labs/desert-ant-core#readme // Swift Package Manager .package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core", from: "3.1.0") // target dependency .product(name: "Gist", package: "desert-ant-core") Reference: - Model page: https://desertant.com/models/gist/ - Full catalog and other models: https://desertant.com/llms.txt Add the SDK, then follow its README for the exact API and current version. Do not invent API names or method signatures; confirm them against the README.
// build.gradle.kts (Maven Central)
implementation("ai.desertant:gist:3.1.0")
import ai.desertant.gist.Gist
Gist(context).use { gist ->
val topics = gist.classify("How to start a podcast with just your iPhone")
// List<Topic>: slug, name, score
}
Add Gist from Desert Ant Labs to this Kotlin project (Android).
What it does: Gist:设备端内容主题标注.
SDK:
Kotlin (Android)
Repo: https://github.com/Desert-Ant-Labs/desert-ant-core#readme
// build.gradle.kts (Maven Central)
implementation("ai.desertant:gist:3.1.0")
Reference:
- Model page: https://desertant.com/models/gist/
- Full catalog and other models: https://desertant.com/llms.txt
Add the SDK, then follow its README for the exact API and current version. Do not invent API names or method signatures; confirm them against the README.
npm i @desert-ant-labs/gist @litertjs/core
import { Gist } from "@desert-ant-labs/gist";
const gist = await Gist.load();
const topics = await gist.classify("How to start a podcast with just your iPhone");
// [{ slug: "technology", name: "Technology & Software", score: 0.91 }, ...]
Add Gist from Desert Ant Labs to this JavaScript / TypeScript project (Web, Node.js). What it does: Gist:设备端内容主题标注. SDK: JavaScript / TypeScript (Web, Node.js) Repo: https://github.com/Desert-Ant-Labs/desert-ant-core#readme npm i @desert-ant-labs/gist @litertjs/core Reference: - Model page: https://desertant.com/models/gist/ - Full catalog and other models: https://desertant.com/llms.txt Add the SDK, then follow its README for the exact API and current version. Do not invent API names or method signatures; confirm them against the README.
规格
- 语言
- 101
- 主题
- 36,多标签
- 设备端体积
- 74 MB 多语言,或 15 MB 纯英文
- 模型
- 双流分类器:一个多语言静态嵌入加上哈希 n-gram
Gist 标的是一段文本讲什么,而不是这段文本好不好、安不安全。36 个主题是一份固定清单,清单之外的题材会被归到最接近的那一个。
常见问题
Gist 是什么?
设备端主题标注,读取标题或帖子并告诉你它的主题,支持 101 种语言,无需服务器调用。
Gist 在设备上运行吗?
是的。Gist 在设备上运行,不调用任何服务器,因此数据始终留在用户手中。
Gist 支持哪些平台?
Gist 以面向 Swift, Kotlin, JavaScript / TypeScript 的原生设备端 SDK 形式提供。
Gist 的价格是多少?
每个模型的每个 SDK 均可免费支持最多 10 万台月活跃设备。每位用户调用模型的次数不设上限。 如需定制授权,请联系我们。
Gist 的准确度和速度如何?
36 个主题,覆盖 101 种语言,来自 74 MB 的模型,或 15 MB 纯英文。