linus-liu-web
linus-liu-web
### Affected Component Backend Service & API ### Bug Description `wikiIngestService.selectRelevantFolders` 直接调用了 `embedder.BatchEmbed(ctx, …)`(`internal/application/service/wiki_ingest_taxonomy.go:195` 和 `:200`),把整个目录池 / item 分块一次性发出去,绕过了仓库既有的池化通道(`BatchEmbedWithPool` + `BATCH_EMBED_SIZE`,默认 5)。仓库里其他多文本调用点走的都是池化通道,例如 `internal/application/service/retriever/keywords_vector_hybrid_indexer.go:139`。 当某个知识库的目录数超过 `wikiTaxonomyFeedAllMaxFolders`(60)时,目录池不再整体下发,相似度预处理就会把最多 `wikiTaxonomyFolderPoolMax`(400)条目录文本塞进**同一个**请求。按条数限流的供应商会直接拒绝:阿里云百炼 OpenAI 兼容的 `text-embedding-v3/v4` 文档写明...
### Affected Component Model Service ### Bug Description `AliyunReranker.Rerank` (internal/models/rerank/aliyun_reranker.go) puts every document into a single request — `Input.Documents = documents` with `TopN: len(documents)`. DashScope's text-rerank endpoint caps documents per...
### Affected Component Vector Database ### Bug Description `Neo4jRepository.SearchNode` (internal/application/repository/retriever/neo4j/repository.go) matches entity names by substring and returns every (node, relation) pair around the matches, with no bound: MATCH (n:label)-[r]-(m:label) WHERE...
### Affected Component Frontend UI ### Bug Description Every wiki page update hands the whole page to the chat model and takes back a full rewrite (wiki_ingest_batch.go:2042, agent.WikiPageModifyUserPrompt), then writes...
### Affected Component Frontend UI ### Bug Description 同一份文档重复摄取时,同一个东西会被建成两个页面(`concept/X` + `entity/X`),内容高度重复,而且互相循环链接。 实测:知识库做一次全库重建后只剩 1 组重复;**对同一份文档做一次 reparse 后变成 13 组**。13 组全部是 `concept/X` + `entity/X` 同名对,例如: concept/ailpha-big-data-intelligent-security-platform + entity/ailpha-big-data-intelligent-security-platform concept/anheng-industrial-firewall + entity/anheng-industrial-firewall concept/tianshan-guwang-cup-cybersecurity-competition...
### Affected Component Frontend UI ### Bug Description 通过内置 MCP Server(`/mcp/`)调用 `ask` 工具 100% 失败,返回: failed to answer: failed to create user message: session not found `search_knowledge` / `grep_chunks` /...
### Affected Component **根因不是"某个模型被标错",而是"解析失败后静默跳过"。** 新架构下,如果一个已配置的 rerank 模型条目带 unsupported_reason,catalog 会拒绝解析它。这类拒绝目前**不产生错误**:rerank_model 变成空字符串,管线写一条 skip reason=empty_model_id 就把整个重排阶段跳过了。表现是:配置能保存、检索也正常返回结果,但精排这一道质量闸门**从未执行**,日志里也看不出根因。 实测(升级到 main 33c0333 后): stage=Rerank rerank_model="" → skip reason=empty_model_id 具体触发模型是 qwen3-rerank(internal/models/vendors/aliyun/models.json 里标了 deprecated: true + unsupported_reason: "......
### Affected Component 新的通用分批层只在厂商声明了上限时才切分: internal/models/api/batch.go:62 if limits.MaxItems
### Affected Component PluginFilterTopK 在排序后直接切片: internal/application/service/chat_pipeline/filter_top_k.go:41-48 filterTopK := func(searchResult []*types.SearchResult, topK int) []*types.SearchResult { sortSearchResultsDeterministically(searchResult) if topK > 0 && len(searchResult) > topK { pipelineInfo(ctx, "FilterTopK", "filter", ...) // 只记日志...
### 位置 `internal/agent/tools/sanitize_messages.go:29-37`(由 `internal/agent/think.go:540` 在每轮请求前调用) ### 问题 合并相邻的同一 role 消息时只拼接 `Content`,**没有合并后一条的 `ToolCalls`**: ```go if last.Role == m.Role { last.Content += "\n" + m.Content continue // ← m.ToolCalls 在这里被丢弃 } ```...