Install
openclaw skills install water-knowledge-assistant水务设备知识库 AI 助手,提供设备查询、选型建议、参数对比等功能
openclaw skills install water-knowledge-assistant根据用户输入的工况信息(如:户外污水池、腐蚀性介质、量程10米、预算有限),提供:
支持查询设备的详细技术参数,包括:
支持对不同设备型号进行参数对比,生成对比表
当用户表达购买意向时,引导用户提供:
当用户询问说明书、PDF、选型指南时,返回文档名称和下载路径
git clone <项目地址>
cd water-knowledge-assistant
# Windows
python -m venv venv
venv\Scripts\activate
# Linux/macOS
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
创建 .env 文件并添加以下内容:
# OpenAI API Key(用于嵌入模型)
OPENAI_API_KEY=your-openai-api-key
# Tavily API Key(用于实时更新)
TAVILY_API_KEY=your-tavily-api-key
根据实际情况修改 config/paths.yaml 文件中的路径配置:
source_paths:
knowledge_base: D:\code\openclaw_lakeskill\outerfiles\ # 知识库源目录
workspace_paths:
root: D:\code\openclaw_lakeskill\ # 工作目录
knowledge_base: D:\code\openclaw_lakeskill\files\ # 知识库存储目录
vector_store: D:\code\openclaw_lakeskill\water-knowledge-assistant\vector_store\ # 向量存储目录
python scripts/knowledge_base_import.py
python scripts/vector_index_builder.py
# 在Linux/macOS上
crontab -e
# 添加以下内容
0 2 * * * python /path/to/water-knowledge-assistant/scripts/knowledge_base_import.py
0 3 * * * python /path/to/water-knowledge-assistant/scripts/tavily_update.py
0 4 * * * python /path/to/water-knowledge-assistant/scripts/vector_index_builder.py
0 1 * * 0 python /path/to/water-knowledge-assistant/audit/log_cleanup.py
# 在Windows上使用任务计划程序创建类似的定时任务
# 创建zip包
zip -r water-knowledge-assistant.zip *
执行以下命令验证安装是否成功:
# 测试知识库导入
python scripts/knowledge_base_import.py
# 测试向量索引构建
python scripts/vector_index_builder.py
如果命令执行成功且没有错误信息,则安装完成。