Commit Graph

117 Commits

Author SHA1 Message Date
mengyonghao
eeb7a3a68d feat(workflow): add Jinja2 template rendering node 2025-12-25 16:54:57 +08:00
mengyonghao
0b141fb952 fix(workflow): fix missing re-ranking for hybrid retrieval results in knowledge base node, add config example 2025-12-25 14:47:22 +08:00
mengyonghao
aef7ae2cce feat(workflow): add default User-Agent and redirect following for HTTP request node, add config example 2025-12-25 14:44:47 +08:00
mengyonghao
8accd36f9e feat(workflow): support variables wrapped with {{}} in assignment nodes, add input config example 2025-12-25 14:41:41 +08:00
朱文辉
02204889ea Merge #51 into develop from feature/20251219_myh
feat(workflow): add HTTP request node

* feature/20251219_myh: (3 commits)
  feat(workflow): add HTTP request node
  refactor(workflow): organize knowledge base code structure and add comments
  fix(workflow): correct property usage in HTTP request node

Signed-off-by: Eternity <1533512157@qq.com>
Commented-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/51
2025-12-25 13:52:35 +08:00
Mark
604ffeca66 [add] app api 2025-12-25 10:07:01 +08:00
mengyonghao
68901e2642 fix(workflow): correct property usage in HTTP request node 2025-12-24 21:32:38 +08:00
mengyonghao
3993aa55ea refactor(workflow): organize knowledge base code structure and add comments 2025-12-24 21:24:21 +08:00
mengyonghao
31a7727992 feat(workflow): add HTTP request node
- Introduce a new HttpRequestNode to enable external HTTP API calls in workflows
- Support multiple HTTP methods (GET, POST, PUT, DELETE, PATCH, HEAD)
- Support authentication strategies (None, Basic, Bearer, Custom header)
- Support multiple request body types (JSON, form-data, x-www-form-urlencoded, raw)
- Add configurable timeout, retry, and SSL verification
- Provide flexible error handling strategies (none, default response, branch)
2025-12-24 21:23:08 +08:00
Mark
2b76db6371 [modify] env.example 2025-12-24 21:01:04 +08:00
Mark
4447860e43 [fix] code 2025-12-24 21:00:10 +08:00
Mark
a7d18712b4 Merge branch 'develop' of codeup.aliyun.com:redbearai/python/redbear-mem-open into develop
# Conflicts:
#	api/app/services/workspace_service.py
2025-12-24 20:59:51 +08:00
Mark
c21ae4c571 [add] app chat service 2025-12-24 20:54:04 +08:00
Mark
bbd73d5e95 [add] app chat v1 2025-12-24 20:35:04 +08:00
乐力齐
cf900219a3 Merge #48 into develop from fix/othername-name
[fix]Fix the data structure + implement memory dashboard display

* fix/othername-name: (18 commits squashed)

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

  - [fix]Restore the display of memory types

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - [fix]Restore the display of memory types

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

  - [updated]Update the title of the &quot;analytics/node_statistics&quot; log

  - [fix]Fix the data structure + implement memory dashboard display

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Restore the display of memory types

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Restore the display of memory types

  - [fix]Fix the data structure + implement memory dashboard display

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

Signed-off-by: 乐力齐 <accounts_690c7b0af9007d7e338af636@mail.teambition.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/48
2025-12-24 10:55:05 +00:00
Ke Sun
d8336503bc feat(workspace): add workspace models configuration update endpoint
- Add PUT endpoint to update workspace LLM, embedding, and rerank model configurations
- Create WorkspaceModelsUpdate schema for model configuration update requests
- Create WorkspaceModelsConfig schema for model configuration responses with proper validation
- Implement update_workspace_models_configs service method to persist model configuration changes
- Update workspace_models_configs GET endpoint to return validated WorkspaceModelsConfig response
- Reorganize imports across controller, schema, and service files for consistency and readability
- Add proper logging for model configuration updates with user and workspace context
2025-12-24 18:21:47 +08:00
乐力齐
9cf8d5cb0a Merge #47 into develop from fix/othername-name
[fix]Fix the bug that affects user memory.

* fix/othername-name: (11 commits squashed)

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

  - [fix]Restore the display of memory types

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - [fix]Restore the display of memory types

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

  - [updated]Update the title of the &quot;analytics/node_statistics&quot; log

Signed-off-by: 乐力齐 <accounts_690c7b0af9007d7e338af636@mail.teambition.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/47
2025-12-24 10:11:31 +00:00
lixiangcheng1
6338edda11 [ADD]Support parsing of unstructured data MP3, MP4, etc 2025-12-24 17:50:03 +08:00
lanceyq
bb666eef23 [fix]Fix the log error 2025-12-24 17:18:43 +08:00
lanceyq
d18c2a491a [fix]Delete the unnecessary "analytics_user_summary" 2025-12-24 17:13:22 +08:00
Ke Sun
292fef0fa7 Merge remote-tracking branch 'origin/develop' into refactor/memory-config-management 2025-12-24 16:07:27 +08:00
Ke Sun
0fff23d2a2 feat(memory): make config_id optional and improve configuration validation
- Make config_id optional in UserInput and Write_UserInput schemas
- Update write_memory and read_memory method signatures to accept Optional[str] for config_id
- Implement automatic config retrieval from end_user connection when config_id is not provided
- Add explicit error handling for missing memory configurations with descriptive error messages
- Improve emotion_controller to validate config_id using MemoryConfigService when provided
- Fallback to get_end_user_connected_config when config_id is None
- Distinguish between specific "no configuration found" errors and other exceptions for better debugging
- Ensures users can operate without explicitly providing config_id if they have a connected configuration
2025-12-24 16:06:54 +08:00
李新月
3afe547559 Merge #37 into develop from fix/memory_reflection
反思输出输入格式统一

* fix/memory_reflection: (60 commits squashed)

  - 新增反思功能(功能配置接口+反思celery后台检测反思的迭代周期)

  - 新增反思功能(功能配置接口+反思celery后台检测反思的迭代周期)

  - 新增反思功能(检测代码/规范化程序)

  - 新增反思功能(检测代码/规范化程序)

  - 新增反思功能(检测代码/规范化程序)

  - 新增反思功能(检测代码/规范化程序)

  - 新增反思功能(检测代码/规范化程序)

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - 反思优化

  - Merge branch develop into fix/memory_reflection (Conflict resolved online)
    
    
    # Conflicts:  
    #      api/app/controllers/memory_reflection_controller.py
    #      api/app/schemas/memory_reflection_schemas.py

  - 反思优化

  - Merge remote-tracking branch &#39;origin/fix/memory_reflection&#39; into fix/memory_reflection

  - 统一输出

  - 统一输出

  - 统一输出

  - Merge branch develop into fix/memory_reflection (Conflict resolved online)
    
    
    # Conflicts:  
    #      api/app/controllers/memory_reflection_controller.py

  - 统一输出

  - Merge remote-tracking branch &#39;origin/fix/memory_reflection&#39; into fix/memory_reflection

  - 统一输出

  - 反思速度提升,从4分钟优化成1分10-40秒

  - 反思速度提升,从4分钟优化成1分10-40秒

  - 反思速度提升,从4分钟优化成1分10-40秒

  - Merge branch develop into fix/memory_reflection (Conflict resolved online)
    
    
    # Conflicts:  
    #      api/app/core/memory/storage_services/reflection_engine/self_reflexion.py

  - 反思速度提升,从4分钟优化成1分10-40秒

  - Merge remote-tracking branch &#39;origin/fix/memory_reflection&#39; into fix/memory_reflection
    
    # Conflicts:
    #&#9;api/app/core/memory/storage_services/reflection_engine/self_reflexion.py

  - 更新 self_reflexion.py

  - 反思图谱添加边的修改

  - Merge remote-tracking branch &#39;origin/fix/memory_reflection&#39; into fix/memory_reflection
    
    # Conflicts:
    #&#9;api/app/core/memory/storage_services/reflection_engine/self_reflexion.py

  - 反思图谱添加边的修改

  - 反思图谱添加边的修改

  - 反思图谱添加边的修改

  - 反思图谱添加边的修改

  - 反思图谱添加边的修改

  - update
    
    
    # Conflicts:  
    #      api/app/core/memory/storage_services/reflection_engine/self_reflexion.py
    #      api/app/core/memory/utils/prompt/prompts/reflexion.jinja2

  - 反思BUG修复

  - Merge remote-tracking branch &#39;origin/fix/memory_reflection&#39; into fix/memory_reflection

  - 反思BUG修复

  - Merge branch develop into fix/memory_reflection (Conflict resolved online)
    
    
    # Conflicts:  
    #      api/app/core/memory/storage_services/reflection_engine/self_reflexion.py

  - 反思BUG修复

  - Merge remote-tracking branch &#39;origin/fix/memory_reflection&#39; into fix/memory_reflection

  - 反思输出输入格式统一

  - Merge branch develop into fix/memory_reflection (Conflict resolved online)
    
    
    # Conflicts:  
    #      api/app/core/memory/utils/prompt/template_render.py

  - 反思优化提示词,提升速度,删除多余LOG日志

  - Merge remote-tracking branch &#39;origin/fix/memory_reflection&#39; into fix/memory_reflection

Signed-off-by: aliyun8644380055 <accounts_68c0f5d519f260d93ee2997e@mail.teambition.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/37
2025-12-24 06:59:22 +00:00
Mark
63d5047d21 [fix] end stream output 2025-12-24 12:37:50 +08:00
朱文辉
9124a54b0f Merge #42 into develop from feature/20251219_myh
fix(db): fix database connection handling

* feature/20251219_myh: (3 commits)
  fix(db): fix database connection handling
  fix(db): fix database connection handling
  fix(db): fix database connection handling

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/42
2025-12-24 12:24:37 +08:00
mengyonghao
1253bedcde fix(db): fix database connection handling 2025-12-24 12:23:16 +08:00
mengyonghao
0a8c1be084 fix(db): fix database connection handling 2025-12-24 12:22:59 +08:00
朱文辉
0c3486248f Merge #41 into develop from feature/20251219_myh
feat(workflow): implement a workflow node for knowledge base retrieval

* feature/20251219_myh: (3 commits)
  feat(workflow): support multi-variable assignment in assigner node
  feat(workflow): implement a workflow node for knowledge base retrieval
  fix(template): remove default initial model in templates

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/41
2025-12-24 12:21:14 +08:00
mengyonghao
38220006a6 fix(db): fix database connection handling 2025-12-24 12:21:12 +08:00
mengyonghao
b99671e04a fix(template): remove default initial model in templates 2025-12-24 12:12:11 +08:00
mengyonghao
8c4d31e4d5 feat(workflow): implement a workflow node for knowledge base retrieval 2025-12-24 12:10:52 +08:00
lixiangcheng1
ea9e5a689a [ADD] Add RAG Setting 2025-12-24 11:59:16 +08:00
lixiangcheng1
879b3da7ef [fix] mineru parser 2025-12-24 11:13:03 +08:00
Ke Sun
7e28ec0f22 Refactor MCP server initialization and enhance Docker compatibility
- Simplified FastMCP initialization by removing unnecessary allowed_hosts parameter.
- Added logging for MCP server startup details.
- Implemented DNS rebinding protection configuration to support Docker container hostnames.
2025-12-24 11:12:45 +08:00
Ke Sun
11dc66960c mcp quick fix 2025-12-24 10:40:34 +08:00
Ke Sun
1f6abb2925 fix(docker-compose): update image names and restore container name usage for MCP server URL 2025-12-24 10:39:13 +08:00
Ke Sun
b515e76efb refactor(memory): reorganize imports and move MemoryClientFactory to utils
- Move MemoryClientFactory from app.core.memory.client_factory to app.core.memory.utils.llm.llm_utils
- Update all evaluation modules to import MemoryClientFactory from new location (locomo, longmemeval, memsciqa)
- Move GenerateCacheRequest from memory_storage_service to memory_storage_schema
- Update memory_storage_controller imports to reflect schema reorganization
- Add analytics_user_summary import to memory_storage_controller from user_memory_service
- Consolidate utility imports across evaluation test files for consistency
- Improve code organization by centralizing LLM utilities in dedicated utils module
2025-12-23 18:27:15 +08:00
mengyonghao
d423e80ddb feat(workflow): support multi-variable assignment in assigner node 2025-12-23 17:45:37 +08:00
Ke Sun
48f6fe04a1 Merge remote-tracking branch 'origin/develop' into refactor/memory-config-management 2025-12-23 17:30:09 +08:00
Ke Sun
283c64a358 refactor(memory): restructure memory system and improve configuration management
- Remove deprecated main.py entry point from memory module
- Reorganize imports across controllers and services for consistency
- Update emotion controller to pass db session instead of config_id to services
- Enhance memory agent controller with db session parameter for status_type and user_profile endpoints
- Refactor memory agent service to accept db parameter in classify_message_type method
- Improve configuration handling in celery_app by removing automatic database reload
- Update all memory-related services to use centralized config management
- Standardize import ordering and remove unused imports across 50+ files
- Add pilot_run_service for new pilot execution workflow
- Refactor extraction engine, reflection engine, and search services for better modularity
- Update LLM utilities and embedder configuration for improved flexibility
- Enhance type classifier and verification tools with better error handling
- Improve memory evaluation modules (LOCOMO, LongMemEval, MemSciQA) with consistent patterns
2025-12-23 17:17:04 +08:00
mengyonghao
28e88c2d4c fix(workflow): fix incorrect list append logic in assigner node 2025-12-23 16:57:59 +08:00
mengyonghao
0ad5d1b662 fix(workflow): fix incorrect list extend logic in assigner node 2025-12-23 16:57:59 +08:00
mengyonghao
6b2c69ebf4 fix(workflow): fix incorrect list append/pop logic in assigner node 2025-12-23 16:57:59 +08:00
mengyonghao
054a5976f5 feat(workflow): add assigner node and fix circular imports with minor code style cleanup 2025-12-23 16:57:59 +08:00
mengyonghao
92c62bb46f revert(workflow): read conversation variables from database instead of API input 2025-12-23 16:57:59 +08:00
mengyonghao
75ee591202 style(workflow): remove unnecessary indentation 2025-12-23 16:57:15 +08:00
mengyonghao
c15a987701 style(service): workflow 2025-12-23 16:54:29 +08:00
Mark
00f440f471 [modify] migration script 2025-12-23 16:49:30 +08:00
Mark
714a7d7bcd Merge branch 'develop' of codeup.aliyun.com:redbearai/python/redbear-mem-open into develop 2025-12-23 16:38:32 +08:00
Mark
47c4f93014 [fix] end node bug 2025-12-23 16:38:25 +08:00