feat: 实现 AI 智能底座 Java 网关并裁剪 WeKnora 知识面 - #1
Draft
bmeAtnju wants to merge 1 commit into
Draft
Conversation
对外提供 OpenAI 兼容的 chat.completions,由 Java 控制环生成可校验的 plan_json; WeKnora 在 knowledge profile 下只暴露 ingest/retrieve,并新增证据检索接口。 Co-authored-by: wfLi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
按「券商交易系统 AI 智能底座」设计落地 Phase 1/2:对外提供 OpenAI-compatible 虚拟专用大模型,对内把 WeKnora 裁剪为知识证据平台,由 Java 网关运行 Agentic 多轮反思/重检索控制环,输出可校验的
plan_json(字段名 + 来源,不含示例 body)。Type of Change
Related Issue
实现设计文档《AI智能底座设计》中的端到端闭环。
What changed
Java 网关
ai-gateway/POST /v1/chat/completions(鉴权、限流、观测)WeKnora 裁剪
WEKNORA_PROFILE=knowledge时不注册 IM / Embed / Wiki / Agent / MCP / 会话聊天等产品路由POST /api/v1/knowledge-bases/:id/ai-base/retrieve,把 hybrid-search 命中映射为带运营标签的 EvidenceChunkdocker-compose.ai-base.ymloverlay:默认不启动前端Testing
go test ./internal/aibase ./internal/config ./internal/handler ./internal/router通过cd ai-gateway && mvn test通过(13 tests)git diff --check origin/main...HEAD通过本地体验:
更完整说明见
docs/AI智能底座.md。Checklist
git diff --check origin/main...HEADpassesdocs/AI智能底座.md,ai-gateway/README.md)