Index

Use when the user wants to rebuild or refresh ScholarAIO keyword, full-text, FTS5, FAISS, or semantic search indexes after data or metadata changes.

zimoliao 474200b 1.1 KB Updated

File contents

重建索引

重建 FTS5 全文检索索引或 FAISS 语义向量索引。

执行逻辑

更新 FTS5 全文索引(增量):

scholaraio index

重建 FTS5 全文索引:

scholaraio index --rebuild

更新证据片段索引(增量):

scholaraio index --chunks

重建证据片段索引:

scholaraio index --chunks --rebuild

更新语义向量索引(增量):

scholaraio embed

重建语义向量索引:

scholaraio embed --rebuild

两者都更新:

scholaraio pipeline reindex

示例

用户说:"重建索引" → 执行 pipeline reindex

用户说:"只重建全文索引" → 执行 index --rebuild

用户说:"重建证据片段索引" 或 "让搜索能定位到原文行号" → 执行 index --chunks --rebuild

用户说:"更新向量" → 执行 embed

zimoliao/scholaraio/tree/main/.claude/skills/index commit 474200b817

Frequently asked questions

npx skillmds@latest add zimoliao/index