Desert Ant Labs

Gist

内容主题标注可用

设备端主题标注,读取标题或帖子并告诉你它的主题,支持 101 种语言,无需服务器调用。

演示

为帖子和文章生成主题和标签。

「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 纯英文。

101
语言
36
主题
多标签
91%
正确主题进入前 3
572 条人工标注的真实帖子
74MB
设备端
或 15 MB 纯英文

在 572 条人工标注的真实帖子上的召回率。内部测量。

应用场景

为帖子和文章生成主题和标签。.

分发一条帖子,不用请求服务器

在设备端按主题为帖子、文章或视频打标签,信息流据此排序、过滤或路由,链路上不必再插一个分类 API。

从帖子里读出频道在讲什么

把一个账号的帖子累加成频道级主题,目录或推荐系统不必等人写简介,就能说清一档播客、一份通讯或一条信息流讲的是什么。

为排序模型给每条内容配一个主题

推荐信息流或审核队列里的每一条,都能拿到一个廉价又私密的主题信号;内容再多,也不会按调用次数计费。

设备端整理

在设备上按主题给用户自己的笔记、书签或收藏分组,个人资料库因此变得可检索,而其中没有一个文件离开设备。

灵感

用 Gist 构建的点子。把提示词复制到你的编码 agent 里就能开始。

Gist

Auto-tag articles and posts with their topics for a feed.

Gist

Route content to channels by topic, no server call.

Gist

Organize a reading list by topic, locally.

Gist

Give a recommender a topic-per-item signal that runs on the phone.

GistEmo

Tag a post and suggest an emoji for it.

Gist

Auto-file support tickets into the right queue by topic.

TongueGist

Build an OpenClaw skill that tags and language-routes text.

Gist

An Obsidian plugin that tags notes with their topics, on the device.

查看全部 11 个点子

模型能做什么

  • 36 个主题,从科技、金融到创作者经济;大多数内容会带上两到三个。
  • 一个模型覆盖 101 种语言,不必传入语言设置。
  • 双流分类器,不含 Transformer,打分只花 CPU 时间,再无别的开销。
  • 紧凑的纯英文版本(15 MB),适用于纯英文应用,现在可在 Swift SDK 中通过 Gist(variant: .english) 选用。

快速上手

只需几行代码,即可为你的 iOS or macOS, Android or web 应用加上 内容主题标注。 Gist 文档.

iOS, macOS
安装
// 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")
示例 - Swift
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.
Android
安装
// build.gradle.kts (Maven Central)
implementation("ai.desertant:gist:3.1.0")
示例 - Kotlin
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.
Web, Node.js
安装
npm i @desert-ant-labs/gist @litertjs/core
示例 - TypeScript
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 纯英文。

资源