Commit Graph

173 Commits

Author SHA1 Message Date
mengyonghao
e08e761319 fix(workflow): adapt node ID regex to support symbols 2025-12-31 12:07:59 +08:00
孟永豪
0e5397bcf4 Merge #86 into develop from feature/20251219_myh
fix(workflow): prevent duplicate conditional branches in if-else nodes

* feature/20251219_myh: (3 commits squashed)

  - perf(workflow): adjust default template to be compatible with frontend format

  - fix: correct function naming for memory retrieval

  - fix(workflow): prevent duplicate conditional branches in if-else nodes

Signed-off-by: Eternity <1533512157@qq.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/86
2025-12-30 07:53:49 +00:00
lixiangcheng1
eabf6bb1a9 Merge branch 'feature/20251219_lxc' into develop 2025-12-30 15:22:27 +08:00
lixiangcheng1
724eb4f801 [ADD]Intelligent physical examination inquiry knowledge base adds usage graph options 2025-12-30 15:21:48 +08:00
孟永豪
c2eff4f359 Merge #82 into develop from feature/20251219_myh
fix: correct function naming for memory retrieval

* feature/20251219_myh: (2 commits squashed)

  - perf(workflow): adjust default template to be compatible with frontend format

  - fix: correct function naming for memory retrieval

Signed-off-by: Eternity <1533512157@qq.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/82
2025-12-30 04:20:04 +00:00
lixiangcheng1
023cf5aa27 Merge branch 'feature/20251219_lxc' into develop 2025-12-30 11:53:41 +08:00
lixiangcheng1
0078028992 [ADD]Support graph search 2025-12-30 11:53:16 +08:00
孟永豪
9bedcadca4 Merge #80 into develop from feature/20251219_myh
feat(workflow): support cycle nodes in workflow config validation and enhance node logging

* feature/20251219_myh: (11 commits squashed)

  - feat(workflow): update reranker model configuration for knowledge base retrieval

  - fix(workflow): fix output issue in parameter extraction node

  - fix(workflow): fix output issue in parameter extraction node

  - feat(workflow): add user prompt to parameter extraction node

  - perf(workflow): change grouped variable input to key-value format in variable aggregator

  - feat(workflow): Add new cycle node for iterative workflow execution
    
    - Introduce a new Loop/Iteration node in the workflow engine.
    - Supports both conditional loops and iteration over lists.
    - Allows parallel execution and flattening of iteration outputs.
    - Maintains runtime state, node outputs, and loop variables for downstream nodes.
    - Enhances workflow flexibility for complex, repeated operations.

  - Merge branch &#39;develop&#39; into feature/20251219_myh
    
    # Conflicts:
    #&#9;api/app/core/workflow/nodes/configs.py
    #&#9;api/app/core/workflow/nodes/node_factory.py

  - feat(workflow): Add new cycle node for iterative workflow execution
    
    - Introduce a new Loop/Iteration node in the workflow engine.
    - Supports both conditional loops and iteration over lists.
    - Allows parallel execution and flattening of iteration outputs.
    - Maintains runtime state, node outputs, and loop variables for downstream nodes.
    - Enhances workflow flexibility for complex, repeated operations.

  - feat(workflow): support cycle nodes in workflow config validation and enhance node logging

  - feat(workflow): support cycle nodes in workflow config validation and enhance node logging

  - fix(workflow): fix compatibility with some legacy node configurations

Signed-off-by: Eternity <1533512157@qq.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/80
2025-12-30 03:40:38 +00:00
孟永豪
b376c3d648 Merge #78 into develop from feature/20251219_myh
Merge branch &#39;develop&#39; into feature/20251219_myh

* feature/20251219_myh: (8 commits squashed)

  - feat(workflow): update reranker model configuration for knowledge base retrieval

  - fix(workflow): fix output issue in parameter extraction node

  - fix(workflow): fix output issue in parameter extraction node

  - feat(workflow): add user prompt to parameter extraction node

  - perf(workflow): change grouped variable input to key-value format in variable aggregator

  - feat(workflow): Add new cycle node for iterative workflow execution
    
    - Introduce a new Loop/Iteration node in the workflow engine.
    - Supports both conditional loops and iteration over lists.
    - Allows parallel execution and flattening of iteration outputs.
    - Maintains runtime state, node outputs, and loop variables for downstream nodes.
    - Enhances workflow flexibility for complex, repeated operations.

  - Merge branch &#39;develop&#39; into feature/20251219_myh
    
    # Conflicts:
    #&#9;api/app/core/workflow/nodes/configs.py
    #&#9;api/app/core/workflow/nodes/node_factory.py

  - feat(workflow): Add new cycle node for iterative workflow execution
    
    - Introduce a new Loop/Iteration node in the workflow engine.
    - Supports both conditional loops and iteration over lists.
    - Allows parallel execution and flattening of iteration outputs.
    - Maintains runtime state, node outputs, and loop variables for downstream nodes.
    - Enhances workflow flexibility for complex, repeated operations.

Signed-off-by: Eternity <1533512157@qq.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/78
2025-12-29 11:57:13 +00:00
lixiangcheng1
6defcaf982 [fxi]PNG image failed to parse after uploading
[TAPD] ID: 1004154
2025-12-29 17:18:51 +08:00
谢俊男
284951900d feat(workflow-node): question_classfier node development 2025-12-29 17:01:19 +08:00
lixiangcheng1
2919709d3f Merge branch 'feature/20251219_lxc' into develop 2025-12-29 16:29:24 +08:00
lixiangcheng1
54dca4bed6 [fix]'NoneType' object has no attribute 'get' 2025-12-29 16:28:56 +08:00
lixiangcheng1
8fc5cc3bb6 Merge branch 'feature/20251219_lxc' into develop 2025-12-29 16:16:36 +08:00
lixiangcheng1
adbba8773b [fix]Update the knowledge base configuration to address the issue of not being able to change embeding_id when it is null 2025-12-29 16:16:16 +08:00
lixiangcheng1
f3e80dfcd6 Merge remote-tracking branch 'origin/feature/20251219_lxc' into develop 2025-12-29 15:27:11 +08:00
lixiangcheng1
f5af5cc58d [fxi]Upload MP3. MP4. MOV. MAV file report interface does not exist, compatible with upper and lower case 2025-12-29 15:26:51 +08:00
Mark
ff92f9ae03 [fix] multi agent run bug 2025-12-29 14:51:23 +08:00
Mark
69842b4336 [modify] pyproject.toml 2025-12-29 14:51:23 +08:00
Mark
de714d0422 [add] multi agent handoff 2025-12-29 14:51:23 +08:00
Ke Sun
667c3393bc refactor(core/models): reorganize imports and add Bedrock connection pooling
- Introduce BEDROCK_MAX_POOL_CONNECTIONS environment variable (default: 50)
- Introduce BEDROCK_MAX_RETRIES environment variable (default: 2)
2025-12-29 14:00:03 +08:00
lixiangcheng1
c6d8d6b301 Merge branch 'feature/20251219_lxc' into develop 2025-12-29 11:55:45 +08:00
lixiangcheng1
34fa178f11 [fix]build_graphrag_for_kb 2025-12-29 11:55:17 +08:00
Ke Sun
4d187b9c19 feat(ontology): add learning/education domain predicates
Add new predicates for learning/education domain to support educational content extraction. Also add field validator to filter empty statements in extraction response to handle malformed LLM outputs.
2025-12-28 18:05:04 +08:00
lixiangcheng1
b301519225 Merge remote-tracking branch 'origin/feature/20251219_lxc' into develop 2025-12-27 17:53:48 +08:00
lixiangcheng1
fefed11f43 [fix]beartype==0.22.5 与 graspologic=3.4.4 Dependency Conflict 2025-12-27 17:53:12 +08:00
lixiangcheng1
b9f77eb5c5 Merge remote-tracking branch 'origin/feature/20251219_lxc' into develop 2025-12-27 17:31:55 +08:00
lixiangcheng1
6cce2ddfe3 [fix]beartype==0.22.5 与 graspologic=3.4.4 Dependency Conflict 2025-12-27 17:31:41 +08:00
lixiangcheng1
c30ead693d Merge remote-tracking branch 'origin/feature/20251219_lxc' into develop 2025-12-27 17:17:43 +08:00
lixiangcheng1
b4596eb47b [fix]build knowledge graph 2025-12-27 17:17:29 +08:00
lixiangcheng1
13fa8078db Merge remote-tracking branch 'origin/feature/20251219_lxc' into develop 2025-12-27 17:12:35 +08:00
lixiangcheng1
cd12844a7c [fix]build knowledge graph 2025-12-27 17:12:04 +08:00
Mark
9edfd6c16f [modify] manage multi agent logic 2025-12-27 13:57:27 +08:00
Mark
3bcde42ebb [add] agnet template 2025-12-27 13:57:27 +08:00
lixiangcheng1
a0c362244e [ADD]Add functions related to knowledge base graph:
Add functions related to knowledge base graph:
1. Entity type generation,
2. Knowledge base graph acquisition,
3. Hard deletion of knowledge base graph,
4. Knowledge base graph reconstruction (asynchronous)
2025-12-27 13:53:10 +08:00
谢俊男
9fb7d7d059 feat(tool system): Optimization of the tool system
1. Optimization of the JSON tool, add insert, replace, delete, parse
2. Optimization of the mcp test_connection
3. tool list desc
4. datetime_tool default timezone set Asia/Shanghai
2025-12-26 19:11:20 +08:00
朱文辉
05e25c5882 Merge #72 into develop from feature/20251219_myh
feat(workflow): add parameter extraction node

* feature/20251219_myh: (2 commits)
  feat(workflow): add parameter extraction node
  perf(prompt_opt): improve prompt optimization and model output quality

Signed-off-by: Eternity <1533512157@qq.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Merged-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/72
2025-12-26 17:48:24 +08:00
mengyonghao
ca89aba548 perf(prompt_opt): improve prompt optimization and model output quality 2025-12-26 17:45:14 +08:00
Mark
4e2498cd9b [modify] migrations script 2025-12-26 16:00:13 +08:00
mengyonghao
fc15a7793a feat(workflow): add parameter extraction node
- Implemented ParameterExtractorNode to extract structured parameters from input text using LLM.
- Supports dynamic Jinja2 prompt rendering with field descriptions and types.
- Integrates with RedBearLLM and ModelConfigService for model retrieval.
- Handles JSON repair and raises clear BusinessException on parsing errors.
2025-12-26 14:39:17 +08:00
朱文辉
58a0c619fd Merge #66 into develop from feature/20251219_xjn
feat(tool system): Tool info add tags variable

* feature/20251219_xjn: (1 commits)
  feat(tool system): Tool info add tags variable

Signed-off-by: 谢俊男 <accounts_6853d0ea6f8174722fb0c8f1@mail.teambition.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Merged-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/66
2025-12-26 12:28:06 +08:00
Ke Sun
bf1dfd97f0 feat(memory-api): implement memory read/write API service endpoints
- Add MemoryAPIService with read_memory and write_memory methods for managing user memories
- Create memory_api_schema.py with request/response schemas for read and write operations
- Implement write_memory_api_service endpoint for storing memory content with configurable storage backends
- Implement read_memory_api_service endpoint for querying memories with context-aware responses
- Add memory-specific error codes (MEMORY_WRITE_FAILED, MEMORY_READ_FAILED, MEMORY_CONFIG_NOT_FOUND) to error_codes.py
2025-12-26 11:43:51 +08:00
谢俊男
4a9d4aa2e3 feat(tool system): Tool info add tags variable 2025-12-26 11:04:16 +08:00
Mark
2fa3bebe8f Merge branch 'develop-mark' into develop 2025-12-26 10:25:56 +08:00
Mark
553e658e05 [modify] app_api 2025-12-26 10:24:36 +08:00
lanceyq
8900fc4dab [fix]Refresh formatted output 2025-12-25 18:56:37 +08:00
mengyonghao
7181d41e51 feat(workflow): add VariableAggregatorNode for aggregating workflow variables 2025-12-25 18:38:53 +08:00
lanceyq
3376d7e3c8 [fix]LLM formatted output 2025-12-25 18:21:00 +08:00
Mark
ac25b6ff11 [add] migrations script 2025-12-25 17:51:27 +08:00
朱文辉
31918d5847 Merge #57 into develop from feature/20251219_myh
feat(workflow): add Jinja2 template rendering node

* feature/20251219_myh: (4 commits)
  feat(workflow): support variables wrapped with {{}} in assignment nodes, add input config example
  feat(workflow): add default User-Agent and redirect following for HTTP request ...
  fix(workflow): fix missing re-ranking for hybrid retrieval results in knowledge...
  feat(workflow): add Jinja2 template rendering node

Signed-off-by: Eternity <1533512157@qq.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Merged-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/57
2025-12-25 17:38:27 +08:00