Logo

GitLab

Sign in

朱子纯 / xlyNewAi

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Snippets
  • Commits 2
  • Compare
  • Branches 2
  • Tags 0
  • xlyNewAi
21 Jul, 2026
23 commits
  • feat(M1): single ReAct agent + streaming chat + KG form-lookup tool ...
    d9117ce8
    - ReActAgent: AiServices streaming tool-loop (replaces 8-scene SceneSelector path)
    - AgentConfig: single agent = streaming Ollama(qwen2.5:14b) + KgQueryTool + per-conversation memory + L1-domain system prompt
    - SystemPromptService: injects L1 domain map (viw_kg_domain) into system prompt; degrades gracefully if KG views missing
    - KgQueryTool.findForms: read-only form-catalog lookup over local viw_ai_useful_forms (global metadata, no tenant) — interim formId resolver
    - AgentChatController: POST /api/agent/chat SSE stream ({type:token|reset|done|error}); reset drops pre-tool-call narration
    - chat.html: consume the new SSE endpoint (streamed), per-page conversationId, drop TTS-borrow path
    - application-saaslocal.yml: add to worktree (was master-only untracked -> profile silently hit remote DB)
    
    Verified running (saaslocal, :8099): streaming chat, tool loop returns real forms, write requests correctly report 'under development'.
    zichun authored
    2026-07-21 19:25:22 +0800  
    Browse File »
  • docs: lock round-2 decisions (token=ERP long-lived session, multi-named conversa… ...
    62db09e2
    …tions, standalone chat page, always user-present, designated model cloud/local, shared-DB multi-brand); backups recorded; formId deferred; refresh open-items
    zichun authored
    2026-07-21 18:16:43 +0800  
    Browse Dir »
  • docs: auto is always async (confirm returns executing, SSE terminal); persist te… ...
    a274ca68
    …rminal + reconcile on reconnect; manual stays sync
    zichun authored
    2026-07-21 17:44:06 +0800  
    Browse Dir »
  • docs: card 3-state machine; auto flow atomic+idempotent w/ rollback; manual flow… ...
    ef712cb9
    … terminal (no chaining), validate-only
    zichun authored
    2026-07-21 17:40:29 +0800  
    Browse Dir »
  • docs: chat is an event stream — confirm result rendered by frontend (no LLM); Pr… ...
    b09b1aa7
    …oposeWrite ends turn on draft
    zichun authored
    2026-07-21 17:15:12 +0800  
    Browse Dir »
  • docs: rename ai_op_queue; ProposeWrite writes draft only, execStaging in determi… ...
    27964a73
    …nistic /op/{id}/confirm endpoint (not a tool)
    zichun authored
    2026-07-21 17:12:49 +0800  
    Browse Dir »
  • docs: generalize staging into ai_write_queue (op-type/target/payload/status/resu… ...
    3009328f
    …lt); ERP real-time exec via /ai/execStaging + two link modes
    zichun authored
    2026-07-21 17:07:55 +0800  
    Browse Dir »
  • docs: authz clarified (3 layers, only tenant+row enforced); field-level permissi… ...
    c738b42d
    …on dropped, form-level only via sAuthsId; Query security simplified
    zichun authored
    2026-07-21 16:09:03 +0800  
    Browse Dir »
  • docs: backend enforces NO per-user form permission (deliberately off) -> add xly… ...
    26c0eb97
    …Ai authorization layer; Read not permission-safe + param whitelist; invoke not backend-safe
    zichun authored
    2026-07-21 15:57:54 +0800  
    Browse Dir »
  • docs: uniform in-chat final confirm before staging (all writes incl quote); Prop… ...
    d2a1c079
    …oseWrite covers mutating button-actions
    zichun authored
    2026-07-21 15:42:12 +0800  
    Browse Dir »
  • docs: add FormCollect tool (param collection, replaces quote-Skill); Read serves… ...
    b3f288a3
    … ERP procs, Query = ad-hoc-only
    zichun authored
    2026-07-21 15:28:56 +0800  
    Browse Dir »
  • docs: ProposeWrite stays unified; 报价 auto-executes ERP-side (single tool, per-form exec policy)
    840b10f2
    zichun authored
    2026-07-21 15:18:36 +0800  
    Browse Dir »
  • docs: legacy 64-tool capability inventory (migration coverage baseline)
    27f44475
    zichun authored
    2026-07-21 15:06:01 +0800  
    Browse Dir »
  • docs: lock decisions (write chaining needs cross-session state; audit mandatory)… ...
    38321fa4
    …; NL2SQL security pending investigation
    zichun authored
    2026-07-21 14:58:24 +0800  
    Browse Dir »
  • docs: xlyAi agent target architecture (single ReAct + general tools + HITL writes)
    a6e18101
    zichun authored
    2026-07-21 14:45:40 +0800  
    Browse Dir »
  • Add viw_kg_domain: L1 business-domain map for the system prompt ...
    2bdf307c
    Roll L2 flow up to domain->domain adjacency (11 domains) with anchor
    forms, form/tool counts, and the matching AI-agent scene. This is the
    coarse L1 tier meant to live in the agent system prompt for routing;
    L2/L3 stay as on-demand tools. Domains align to ai_agent's 8 business
    智能体 (+ 基础资料/设备/其他 -> ERP代理人).
    zichun authored
    2026-07-21 09:54:50 +0800  
    Browse Dir »
  • Add viw_kg_form_neighbors: 1-hop subgraph per form (GraphRAG expand step) ...
    57028160
    Materialize each form's L2 neighbors (upstream/downstream documents) and
    L3 neighbors (referenced entity tables) so the retriever can expand a
    vector-recalled form-card into a subgraph context via a single JOIN.
    702 forms have downstream, 476 upstream, 1467 reference entity tables.
    zichun authored
    2026-07-21 09:36:59 +0800  
    Browse Dir »
  • Add sql/README: document the ERP forms knowledge graph (L1/L2/L3 + GraphRAG)
    11f33a4d
    zichun authored
    2026-07-21 09:35:02 +0800  
    Browse Dir »
  • Add viw_kg_field_dict: NL2SQL term-grounding dictionary (deliverable 5a) ...
    03fa2ceb
    Map 业务中文名 -> real column -> table (38342 mappings, 6075 terms, 539
    tables), ranked by form-usage for same-name disambiguation, with FK target
    (sFkTable/sFkKey) attached from viw_kg_edge_ref so NL2SQL knows the join.
    This is the field-dictionary half of the GraphRAG package.
    zichun authored
    2026-07-21 09:33:53 +0800  
    Browse Dir »
  • Add form-card export: viw_kg_form_card + export_form_cards.sh (deliverable 4) ...
    e6dff8a6
    Assemble one structured, embeddable text card per form (1748) merging
    node metadata, upstream/downstream document names, and the field 中文名
    list. export_form_cards.sh emits JSONL for vector-store ingestion
    (group_concat_max_len raised to avoid truncating 269-field forms).
    Generated corpus is gitignored — regenerate deterministically via script.
    zichun authored
    2026-07-21 09:32:09 +0800  
    Browse Dir »
  • Add viw_kg_edge_ref: ERP entity-reference (FK) graph (L3) ...
    79dfd6cd
    Parse gdsconfigformslave.sRelation (comma-separated field&table&pk&display
    hops) into FK edges: src_table.field -> tgt_table.pk, with the set of
    display columns each FK surfaces aggregated per edge. 1597 distinct FK
    edges / 368 source tables / 109 target tables (mostly ele*/sis* master
    data). Provides the join dictionary for NL2SQL grounding.
    zichun authored
    2026-07-21 09:29:32 +0800  
    Browse Code »
  • Add viw_kg_form: enriched KG form nodes (1748) ...
    a3391c96
    One row per useful form enriched with business domain (L1, derived from
    normalized data-source prefix + AI-scene override), data source/exec type,
    and upstream/downstream flow counts from viw_kg_edge_flow. 857 forms
    participate in document flow; 63 back an AI tool; 92% domain-classified.
    zichun authored
    2026-07-21 09:26:23 +0800  
    Browse Dir »
  • Add viw_kg_edge_flow: ERP document-flow KG edges (L2) ...
    befe9392
    Materialize source-form -->generate--> target-form flow edges from the
    low-code config. Resolves BtnCopyTo.<Action>.sActiveId to the target
    gdsmodule exactly as Sp_Ai_AddCommonAfterNew does (sActiveId is the real
    target; the .ActXxx suffix is only a label).
    
    411 distinct edges / 405 (src,tgt) pairs / 51 self-loops; 404 endpoints
    hit viw_ai_useful_forms. Captures full order-to-cash and procure-to-pay
    chains plus cross-domain (order->workorder, quote->process-card).
    zichun authored
    2026-07-21 09:22:41 +0800  
    Browse Dir »

20 Jul, 2026
1 commit
  • Initial commit: xlyAi ERP AI service (Spring Boot + LangChain4j)
    62635218
    zichun authored
    2026-07-20 09:49:08 +0800  
    Browse Code »