Yiliu - AI Note-Taking Knowledge Base
Capture anytime, auto-organize, surface on demand.
✨ What's New (v1.2.0)
- - LibSQL Storage: Replaced sql.js with LibSQL for better performance
- Semantic Search: Vector similarity search with hybrid ranking
- AI Enhancement: Auto-generated summaries and tags
- Local Embeddings: Support for HuggingFace Transformers (no API key needed)
- Version Management: Auto-save + manual marking for important versions
Features
| Feature | Description | Command |
|---|
| Record | Quick capture with AI enhancement | INLINECODE0 or type directly |
| Semantic Search |
Find content by intent |
/搜 <keyword> |
| List | View recent notes |
/列表 |
| Edit | Modify existing notes |
/编辑 <id> <content> |
| History | View version history |
/历史 <id> |
| Export | Export to Markdown |
/导出 |
| Stats | View statistics |
/统计 |
Quick Start
Install
CODEBLOCK0
Configure AI (Optional)
CODEBLOCK1
Without API Key: Falls back to local embeddings via @huggingface/transformers. Core features still work.
Usage
CODEBLOCK2
AI Features
| Feature | Model | Description |
|---|
| Embeddings | text-embedding-3-small / all-MiniLM-L6-v2 | Semantic search |
| Summaries |
gpt-4o-mini | Auto summaries |
| Tags | gpt-4o-mini | Auto tags |
No API Key: Falls back to keyword search, core features remain functional.
Data Storage
- - LibSQL: Notes, version history
- Vector Index: Semantic search
- Path:
data/yiliu.db, INLINECODE9
Architecture
CODEBLOCK3
Version History
- - v1.2.0 (2026-03-20) - LibSQL, semantic search, AI enhancement, local embeddings
- v1.0.0 (2026-03-19) - MVP release
License
MIT License
Yiliu - AI 笔记知识库
随时记录,自动整理,按需呈现。
✨ 新特性 (v1.2.0)
- - LibSQL 存储:用 LibSQL 替换了 sql.js,性能更佳
- 语义搜索:支持向量相似度搜索与混合排序
- AI 增强:自动生成摘要和标签
- 本地嵌入:支持 HuggingFace Transformers(无需 API 密钥)
- 版本管理:自动保存 + 手动标记重要版本
功能
| 功能 | 描述 | 命令 |
|---|
| 记录 | 快速记录,AI 增强 | /记 或直接输入 |
| 语义搜索 |
按意图查找内容 | /搜 <关键词> |
| 列表 | 查看最近笔记 | /列表 |
| 编辑 | 修改已有笔记 | /编辑
<内容> |
| 历史 | 查看版本历史 | /历史 |
| 导出 | 导出为 Markdown | /导出 |
| 统计 | 查看统计数据 | /统计 |
快速开始
安装
bash
git clone https://github.com/DamingDong/yiliu.git
cd yiliu
npm install
npm run build
配置 AI(可选)
bash
export OPENAIAPIKEY=your-api-key
可选:自定义 API 端点
export OPENAIBASEURL=https://api.openai.com/v1
无 API 密钥:回退到通过 @huggingface/transformers 的本地嵌入。核心功能仍可使用。
使用
记录笔记(AI 自动摘要 + 标签)
/记 今天我了解了基于最后写入获胜策略的 CRDT 同步
语义搜索(理解意图)
搜 分布式同步方法
列出笔记
/列表
查看统计
/统计
导出备份
/导出
AI 功能
| 功能 | 模型 | 描述 |
|---|
| 嵌入 | text-embedding-3-small / all-MiniLM-L6-v2 | 语义搜索 |
| 摘要 |
gpt-4o-mini | 自动摘要 |
| 标签 | gpt-4o-mini | 自动标签 |
无 API 密钥:回退到关键词搜索,核心功能仍可用。
数据存储
- - LibSQL:笔记、版本历史
- 向量索引:语义搜索
- 路径:data/yiliu.db、data/vectors.json
架构
yiliu/
├── src/
│ ├── index.ts # 入口
│ ├── commands/ # 命令处理器
│ ├── storage/ # 存储(LibSQL + 向量)
│ ├── ai/ # AI 能力
│ └── types/ # 类型定义
├── data/ # 数据目录
└── SKILL.md
版本历史
- - v1.2.0(2026-03-20)- LibSQL、语义搜索、AI 增强、本地嵌入
- v1.0.0(2026-03-19)- MVP 版本发布
许可证
MIT 许可证