360 Secure SkillHub
360 安全技能中心

index1 Doctor

该 Skill 通过依次执行 index1 doctor、index1 status 与 ollama list 三条命令,检查 Python 与 SQLite 版本、sqlite-vec 扩展、ONNX 嵌入、Ollama 连通性、嵌入模型及中文支持,并查看索引文档、分块与数据库规模,最后按检查结果给出对应修复建议。

gladego
gladego
热度 68.67
最近更新 2026-05-17 12:11:38
分类:开发依赖:代码执行应用场景:调试排错 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add index1-doctor
Metadata
name
index1-doctor
description
Diagnose index1 environment - check Python, Ollama, models, index health.
version
2.0.3
license
Apache-2.0
author
gladego
tags
["index1","diagnostics","mcp","troubleshooting"]

index1 Doctor

Environment diagnostic skill for index1. Runs health checks and provides fix recommendations.

Usage

Type /doctor or ask the agent to diagnose index1.

What it checks

The skill runs three commands sequentially and analyzes results:

1. Environment Check

index1 doctor

Checks:

  • Python version (>= 3.10 required)
  • SQLite version (>= 3.43.0 for full features)
  • sqlite-vec extension
  • ONNX embedding (built-in, bge-small-en-v1.5)
  • Ollama connectivity (optional, for multilingual/CJK)
  • Embedding model availability
  • CJK/Chinese support (jieba)

2. Index Status

index1 status

Shows:

  • Document count and chunk count
  • Collections list
  • Last index time
  • Database size

3. Ollama Models

ollama list

Shows installed models. Recommended embedding models:

  • nomic-embed-text — Standard, 270MB
  • bge-m3 — Best for CJK content, 1.2GB

Interpreting Results

Check Pass Fail Fix
Python >= 3.10 Install Python 3.11+
SQLite >= 3.43.0 Auto-degrades, no action needed
sqlite-vec Loaded pip install index1 (bundled)
Ollama Connected curl -fsSL https://ollama.com/install.sh | sh
Model Available ollama pull nomic-embed-text
CJK jieba loaded pip install index1[chinese]
Index Has documents index1 index ./src ./docs

When to use

  • First-time setup verification
  • After upgrading index1
  • When search returns unexpected results
  • When vector search stops working
  • Before reporting issues