Summary
Add OKF (Open Knowledge Format) compatible export and SAG-Lite (SQLite-backed Agent Knowledge) search to MisakaNet. This positions MisakaNet as a knowledge provider that other tools can consume in a standard format.
Key insight: OKF做知识标准,SAG-Lite做搜索引擎。别叫RAG——SAG-Lite更像MisakaNet自己的东西。
What is OKF + SAG-Lite
- OKF (Open Knowledge Format): Standardized lesson export format with required fields (type, title, description, tags, timestamp)
- SAG-Lite: SQLite/D1-backed search index built from OKF bundle. Lightweight, no vector DB needed.
Acceptance Criteria
Implementation Plan
Phase 1: OKF Export (Week 1)
python3 scripts/export_okf.py --output data/okf/
# Generates: data/okf/lessons.jsonl (one lesson per line, OKF-compliant)
# Each line: {"type":"lesson","title":"...","description":"...","tags":[...],"timestamp":"...","domain":"...","source":"..."}
Phase 2: SAG-Lite Index (Week 2)
python3 scripts/build_sag_index.py --okf data/okf/ --output data/sag.db
# Generates: SQLite FTS5 index for fast text search
Phase 3: API + Frontend (Week 3)
GET /api/sag?q=database+locked&domain=devops&top=5
Response: [{"title":"...","score":0.87,"snippet":"...","lesson_url":"..."}]
Why This Matters
- OKF compatibility makes MisakaNet lessons consumable by other tools (not just
search_knowledge.py)
- SAG-Lite is lighter than BM25+RRF — SQLite FTS5, no Python dependencies for search
- Naming: "SAG-Lite Search" sounds like MisakaNet's own thing, not a generic RAG
Difficulty
Medium | Time: 2-3 weeks | Repeatable: No
Bonus: Join MisakaNet
Register as a node at https://ikalus1988.github.io to get your contributor avatar on the leaderboard.
This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount).
🕵️♂️ If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!
🙌 And when they open the PR, they can comment /claim #274 either in the PR description or in a PR's comment.
🪙 Also, everyone can tip any user commenting /tip 20 @Ikalus1988 (replace 20 with the amount, and @Ikalus1988 with the user to tip).
📖 If you want to learn more, check out our documentation.
Summary
Add OKF (Open Knowledge Format) compatible export and SAG-Lite (SQLite-backed Agent Knowledge) search to MisakaNet. This positions MisakaNet as a knowledge provider that other tools can consume in a standard format.
Key insight: OKF做知识标准,SAG-Lite做搜索引擎。别叫RAG——SAG-Lite更像MisakaNet自己的东西。
What is OKF + SAG-Lite
Acceptance Criteria
scripts/export_okf.py)type,title,description,tags,timestamp/api/sag?q=endpoint/search/frontend entry (SAG-Lite Search)search_knowledge.pypath unchanged (backward compatible)Implementation Plan
Phase 1: OKF Export (Week 1)
Phase 2: SAG-Lite Index (Week 2)
python3 scripts/build_sag_index.py --okf data/okf/ --output data/sag.db # Generates: SQLite FTS5 index for fast text searchPhase 3: API + Frontend (Week 3)
Why This Matters
search_knowledge.py)Difficulty
Medium | Time: 2-3 weeks | Repeatable: No
Bonus: Join MisakaNet
Register as a node at https://ikalus1988.github.io to get your contributor avatar on the leaderboard.
This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting
/reward 100(replace100with the amount).🕵️♂️ If someone starts working on this issue to earn the rewards, they can comment
/tryto let everyone know!🙌 And when they open the PR, they can comment
/claim #274either in the PR description or in a PR's comment.🪙 Also, everyone can tip any user commenting
/tip 20 @Ikalus1988(replace20with the amount, and@Ikalus1988with the user to tip).📖 If you want to learn more, check out our documentation.