WeKnora/internal/application
lyingbug 1b24132566
fix(agent): let the WeKnora assistant search without its own rerank model (#4315)
* fix(agent): let the WeKnora assistant search without its own rerank model

Every assistant run with a knowledge base in scope failed with "rerank
model is not configured: please set rerank_model_id on the agent". The
assistant lists search_knowledge, and agents with that tool must name a
rerank model; but the assistant is hidden from agent management, so no
one can set one.

Internal built-in agents now take the workspace's rerank model: its
default active one, else its first active one. With none, search_knowledge
keeps retrieval order, as it already does when reranking fails.
User-configured agents still have to name their rerank model.

UsesFallbackChatModel becomes UsesWorkspaceModelFallback, since it now
covers both models.

* fix(ci): wrap assistant rerank fallback log calls
2026-10-15 14:45:40 +08:00
..
access feat(wiki): 增加跨知识库 Wiki 搜索 POST /wiki-search (#3535) 2026-09-25 22:22:58 +08:00
attachment fix(agent): clarify attachment image paths and chart readings (#4283) 2026-10-14 14:23:28 +08:00
repository feat(agent): persist human-in-the-loop prompts with a shared broker (#4250) 2026-10-14 20:37:28 +08:00
service fix(agent): let the WeKnora assistant search without its own rerank model (#4315) 2026-10-15 14:45:40 +08:00