01 / 定位Position

知识库 = 原料供应商。
不做生成。
Knowledge base as raw-material supplier.
We don't generate.

用户不直接和知识库对话。其他 Agent—— OpenClaw / 飞书 AI / 钉钉 AI / Claude / 自研 Bot ——通过 MCP / CLI / REST 调用,拿到检索片段、结构化原料、文件超链接。 Users don't talk to the knowledge base directly. Other agents — OpenClaw / Lark AI / DingTalk AI / Claude / your in-house bot — call us via MCP / CLI / REST and get retrieval snippets, structured material, and file links.

生成(写营销话术 / 写产品规划书 / 设计海报)留给调用方 Agent。文件原件留在你本地服务器,永不外传。 Generation — marketing copy, planning docs, posters — stays with the calling agent. File originals stay on your local server, never leaving the perimeter.

这是个反 SaaS 选择。不卖通用聊天框,不抢用户注意力。我们的客户是企业,不是消费者。 This is an anti-SaaS choice. We don't sell a generic chatbox or compete for user attention. Our customer is the enterprise, not the consumer.

OpenClawCALLING AGENT
飞书 AILark AICALLING AGENT
ClaudeCALLING AGENT
MCP / CLI / REST
时光脉络ShiguangmailuoMIDDLEWARE
检索 + 原料 + 链接retrieve + ground + link
Neo4jGRAPH
QdrantVECTORS
本地文件Local filesORIGINS
02 / 三大能力Three capabilities

分析拆解 · 准确查询 · 准确理解 Decompose · Retrieve · Ground

MVP 主线只这三件事。先把这三件做扎实,再谈未来场景。 MVP is exactly these three. We make them industrial before chasing scope.
01 / DECOMPOSE

分析拆解Decompose

把复合问题拆成可查询的子问题。

"X 产品支持哪些接口、用了什么芯片、有没有兼容问题?"——这一句话至少包含三个独立检索意图:协议匹配 / 元器件清单 / 冲突关系。每个子问题走最适合它的检索路径,最后聚合。

Compound questions become atomic sub-queries.

"What interfaces does X support, which chip, any compat issues?" hides at least three retrieval intents: protocol match / component listing / conflict graph. Each routes to its own path, then aggregates.

query_expander.py · solution_reflect SHIPPED
02 / RETRIEVE

准确查询Retrieve

三路混合检索:向量库 + 知识图谱 + 全文索引

RRF 融合排序,MMR 多样性过滤,BGE Reranker 精排。意图识别后路由——快速 / 标准 / 深度三档,不浪费算力,不漏召回。

Hybrid retrieval: vector store + knowledge graph + full-text.

RRF fusion, MMR diversity, BGE Reranker for final ordering. Intent-routed: quick / standard / deep — no wasted compute, no missed recall.

hybrid_retriever.py · Qdrant · Neo4j SHIPPED
03 / GROUND

准确理解Ground

检索片段去重、矛盾标识、置信度打分,组装成结构化原料。

调用方 Agent 拿到的不是一团文字,而是 {facts: [...], citations: [...], confidence: 0.87, gaps: [...]}。每条原料都有溯源链接,不知道就明确说"信息不足"。

Dedup, conflict-flag, confidence-score — assemble into structured material.

Calling agent receives {facts: [...], citations: [...], confidence: 0.87, gaps: [...]} — not a wall of text. Every fact carries a source. When unsure, we say so explicitly.

solution_synthesis · grounded RAG IN POLISH
03 / 核心约束Core constraint

工业级 grounded RAG。
对幻觉零容忍
Industrial-grade grounded RAG.
Zero tolerance for hallucination.

未来要介入工业生产决策——这是决策辅助系统级别的责任,不是聊天玩具。 Will support industrial production decisions. That's decision-support liability, not a chat toy.
必须做到Must do

100% 溯源100% citation

每句话都有出处。无出处的话不许说。

Every sentence has a source. No source = no statement.

强制透明Forced transparency

不知道就明确说"信息不足,需要补充 X 类文档"。

If we don't know, we say "insufficient information — add docs of type X".

置信度标注Confidence labels

找近似时主动告诉调用方:"这是相关但不完全匹配的内容,置信度 0.62"。

For near-misses we surface the score: "related, not exact, confidence 0.62".

必须禁止Must not

捏造数字Fabricate numbers

大模型训练数据中类似产品的参数 ≠ 此产品的参数。一律不许生造。

Numbers from the model's training corpus for "similar" products are not this product's numbers. No invention.

混淆产品Confuse products

把 A 产品规格说成 B 产品。在电子硬件场景下这是事故级错误。

Reporting product A's spec as product B's. In hardware that's an incident-level error.

误读原文Misread the source

引用对的文件但理解错了原文。这种错误最危险——表面有出处。

Cite the right doc, get the meaning wrong. The most dangerous form — the citation looks valid.

04 / 调用方式Integration

三种调用协议。
跟着真实场景走。
Three protocols.
Picked by real scenarios.

A · MCP STDIO

MCP 协议MCP Protocol

优先方式。Claude Code、Hermes Agent、其他 MCP-aware 工具直接挂接。已通过 313/319 stdio 集成测试。

Primary path. Claude Code, Hermes Agent, other MCP-aware tools plug in directly. 313/319 stdio integration tests passing.

// 4 tools exposed
kg_search(query, top_k)
kg_graph_query(cypher)
kg_board_query(board_id)
kg_add_feedback(qid, score)
B · CLI

命令行Command line

调用方 Agent 不支持 MCP?走 CLI——子进程标准输入输出,跨语言通用。OpenCLI 适配器已就绪。

Calling agent doesn't speak MCP? Use CLI — subprocess stdin/stdout, language-agnostic. OpenCLI adapter ready.

$ shiguang search "主控板接口列表"
 facts: [3], citations: [3],
   confidence: 0.91
C · REST API

REST APIREST API

FastAPI 暴露的标准 HTTP 端点,端口 1000。前端 / 浏览器扩展 / 第三方系统直连。

FastAPI HTTP endpoints on port 1000. Frontends, browser extensions, third-party systems plug in.

POST /api/v1/retrieve
{
  "query": "...",
  "mode": "hybrid",
  "top_k": 10
}
05 / 知识图谱 SCHEMAKnowledge graph schema

8 类节点。
5 类核心关系。
8 node types.
5 core relationships.

当前 schema 服务于硬件制造场景(已在轨道交通装备客户实测)。多租户多层级版本随客户拓展演进。 Current schema serves hardware manufacturing (validated at a rail-transit equipment client). Multi-tenant version evolves with new clients.
NODE
Product
产品聚合节点。多个 Board 组成一个 Product。Product aggregator. Multiple Boards compose a Product.
NODE
Board
板卡——核心查询主体。含 parameters_json + 全文索引。Board — primary query subject. Carries parameters_json and full-text index.
NODE
Component
物理元器件。芯片、电阻、连接器、机电件。Physical component. Chips, passives, connectors, electromechanical parts.
NODE
Parameter
参数定义:名称 + 值 + 单位。挂在 Board 或 Component 下。Parameter definition: name + value + unit. Attached to Board or Component.
NODE
Document
文档元数据。file_hash 唯一约束保证不重入。Document metadata. file_hash unique constraint prevents duplicates.
NODE
SchematicComponent
原理图元器件。Gemini 2.5 解析得来。Schematic-extracted component. Parsed by Gemini 2.5.
REL
CONTAINS_COMPONENT
Product / Board → Component(含 quantity)Product / Board → Component (with quantity)
REL
COMPATIBLE_WITH · REPLACES · CONFLICTS_WITH
Component → Component。供 BOM 选型 + 替代分析使用。Component → Component. Powers BOM selection and substitute analysis.
06 / 技术栈Stack

选型只挑一个标准——
能跑在客户机房。
Selection criterion:
must run inside the customer's perimeter.

SHIGUANGMAILUO · STACK
$ stack --layer=api
FastAPI · Python 3.11 · Uvicorn · port 1000
$ stack --layer=agent
LangGraph · agent_graph/orchestrator.py · 90-turn tool loop
$ stack --layer=storage
Neo4j 5.15+ [graph] · Qdrant [vectors] · MySQL [history] · SQLite [skills]
$ stack --layer=embedding
DashScope text-embedding-v4 (1024-d) · BGE Reranker (BAAI/bge-reranker-base)
$ stack --layer=llm-routing
DeepSeek-Reasoner [structured extraction]
DeepSeek-Chat [general] · GLM-4.5 [multimodal] · Gemini 2.5 [schematic]
$ stack --layer=ocr
PaddleOCR + MinerU + LibreOffice fallback
$ stack --layer=optimization
OR-Tools CP-SAT [BOM selection]
$ stack --deployment
→ docker-compose · on-prem · air-gap capable · 完成 / OK
下一步Next

想看时光脉络在你企业的
第一性能曲线?
Want to see how Shiguangmailuo
performs against your real workflow?

30 分钟通话,我们带着可行性评估表上门。第一阶段调研免费。 A 30-minute call. We bring a feasibility checklist. Phase one is free.

预约 30 分钟通话Book a 30-min call 看完整案例See full cases