rag-ingest
Usage
CODEBLOCK0
Parameters
| Param | Required | Example | Description |
|---|
| INLINECODE0 | yes | INLINECODE1 | 文档 ID,用于标识/覆盖同一文档 |
| INLINECODE2 |
yes |
net,security | 逗号分隔标签,用于检索过滤 |
|
--content | no |
"..." | 正文;不传时从 stdin 读取 |
|
--source | no |
"https://example.com" | 来源标识,写入 payload.source |
|
--collection | no |
kb_main | Qdrant collection 名称 |
rag-ingest
用法
bash
直接通过 --content 传入正文
node skills/rag-ingest/scripts/ingest.mjs \
--doc-id doc-001 \
--topic-tags net,security \
--content 已解读好的长文本...
从 stdin 读取正文(推荐与 deep-research/summarize 配合)
echo 已解读好的长文本... | node skills/rag-ingest/scripts/ingest.mjs \
--doc-id doc-002 \
--topic-tags web,http \
--source https://example.com/article
参数
| 参数 | 必填 | 示例 | 说明 |
|---|
| --doc-id | 是 | doc-001 | 文档 ID,用于标识/覆盖同一文档 |
| --topic-tags |
是 | net,security | 逗号分隔标签,用于检索过滤 |
| --content | 否 | ... | 正文;不传时从 stdin 读取 |
| --source | 否 | https://example.com | 来源标识,写入 payload.source |
| --collection | 否 | kb_main | Qdrant collection 名称 |