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
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
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
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
乐力齐
42e569b8e5
Merge #31 into develop from memory-summary
...
[feature]开发用户记忆详情的接口
* memory-summary: (69 commits squashed)
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- Merge branch 'memory-summary' of codeup.aliyun.com:redbearai/python/redbear-mem-open into memory-summary
- [feature]Develop the relationship graph interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Develop the relationship graph interface
- Merge branch 'memory-summary' of codeup.aliyun.com:redbearai/python/redbear-mem-open into memory-summary
- [feature]Develop the end_user/profile interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Develop the relationship graph interface
- [feature]Develop the end_user/profile interface
- Merge branch 'memory-summary' of codeup.aliyun.com:redbearai/python/redbear-mem-open into memory-summary
- [updated]Base change operation
- [refactor]1.Convert timestamp;2.Remove unnecessary code
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Develop the relationship graph interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Develop the relationship graph interface
- [feature]Develop the end_user/profile interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [feature]Develop the relationship graph interface
- [feature]Develop the end_user/profile interface
- [updated]Base change operation
- [refactor]1.Convert timestamp;2.Remove unnecessary code
- Merge branch 'memory-summary' of codeup.aliyun.com:redbearai/python/redbear-mem-open into memory-summary
- [check]check_code.py checks the quality of the code
- [fix]Fix insecure database connections
- [refactor]refactor memory_storage_controller and memory_storage_service
- [add]The /total_memory_count interface returns the "name" field.
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Develop the relationship graph interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Develop the relationship graph interface
- [feature]Develop the end_user/profile interface
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [feature]Develop the relationship graph interface
- [feature]Develop the end_user/profile interface
- [updated]Base change operation
- [refactor]1.Convert timestamp;2.Remove unnecessary code
- [feature]Memory Insights and User Summary Cache Storage Ingestion
- [featrue]Develop a memory classification interface
- [feature]Develop the relationship graph interface
- [feature]Develop the end_user/profile interface
- [updated]Base change operation
- [refactor]1.Convert timestamp;2.Remove unnecessary code
- [check]check_code.py checks the quality of the code
- [fix]Fix insecure database connections
- [refactor]refactor memory_storage_controller and memory_storage_service
- [add]The /total_memory_count interface returns the "name" field.
- Merge branch 'memory-summary' of codeup.aliyun.com:redbearai/python/redbear-mem-open into memory-summary
- [refactor]Reconstruct the user's memory location
- add uv.lock
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/31
2025-12-23 08:05:06 +00:00
李新月
b8c13b8085
Merge #36 into develop from fix/memory_reflection
...
Merge remote-tracking branch 'origin/fix/memory_reflection' into fix/memory_reflection
* fix/memory_reflection: (54 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 'origin/fix/memory_reflection' 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 'origin/fix/memory_reflection' 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 'origin/fix/memory_reflection' into fix/memory_reflection
# Conflicts:
#	api/app/core/memory/storage_services/reflection_engine/self_reflexion.py
- 更新 self_reflexion.py
- 反思图谱添加边的修改
- Merge remote-tracking branch 'origin/fix/memory_reflection' into fix/memory_reflection
# Conflicts:
#	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 'origin/fix/memory_reflection' 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
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/36
2025-12-23 08:00:14 +00:00
Ke Sun
258b88276f
Merge remote-tracking branch 'origin/develop' into refactor/memory-config-management
2025-12-22 11:37:08 +08:00
Ke Sun
1e3ba39150
refactor(memory): restructure memory agent and config management
...
- Reorganize imports and remove unused dependencies across memory agent controllers
- Extract config validation logic into dedicated validators module
- Create new memory_config_model and memory_config_schema for configuration management
- Implement memory_config_service for centralized config handling
- Add embedder_utils module for embedding model utilities
- Refactor memory agent service to use new config validation framework
- Clean up configuration files (remove config.json, testdata.json, dbrun.json)
- Remove deprecated hybrid_chatbot.py and config overrides
- Update logging configuration and error handling across memory modules
- Consolidate LLM and embedding model validation into validators
- Improve code organization and reduce duplication in memory storage services
- Enhance type classification and verification tools with better error handling
2025-12-21 20:32:41 +08:00
Mark
639abae99f
Merge branch 'develop-mark' into develop
...
# Conflicts:
# api/app/core/workflow/executor.py
# api/app/services/workflow_service.py
2025-12-20 17:51:49 +08:00
Mark
fafbe72ce2
[modify] sse format
2025-12-20 17:45:58 +08:00
乐力齐
cdeace7e58
Merge #21 into develop from feature/emotion-engine
...
feature/情绪引擎
* feature/emotion-engine: (7 commits squashed)
- [feature]Emotion Engine Development
- [feature]Emotion Engine Development
- Merge branch 'feature/emotion-engine' of codeup.aliyun.com:redbearai/python/redbear-mem-open into feature/emotion-engine
- [fix]1.Fix the front-end files;2.Cache Management Deletion;3.Delete "check_code.py"
- [fix]1.Fix the front-end files;2.Cache Management Deletion;3.Delete "check_code.py"
- Merge branch 'feature/emotion-engine' of codeup.aliyun.com:redbearai/python/redbear-mem-open into feature/emotion-engine
- [fix]fix vite.config.ts
Signed-off-by: 乐力齐 <accounts_690c7b0af9007d7e338af636@mail.teambition.com >
Commented-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com >
Commented-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/21
2025-12-20 15:37:08 +08:00
李新月
6ecf5edfb3
Merge #19 into develop from fix/memory_reflection
...
统一输出
* fix/memory_reflection: (35 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 'origin/fix/memory_reflection' 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 'origin/fix/memory_reflection' 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/19
2025-12-20 15:37:08 +08:00
mengyonghao
5cd46e441e
fix(prompt-optimizer): switch to built-in system prompt
...
- Replace the system prompt of the prompt optimization model with a built-in prompt.
- Remove system prompt entries from the database.
- Remove the API endpoint for managing system prompt configuration.
2025-12-20 15:35:11 +08:00
mengyonghao
15fac38e30
fix(workflow): fix run_workflow streaming issues
...
Resolve exceptions during run_workflow streaming and define proper status codes for error cases.
2025-12-20 15:34:17 +08:00
李新月
2ab0335f88
Merge #18 into develop from fix/memory_reflection
...
反思优化
* fix/memory_reflection: (28 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 'origin/fix/memory_reflection' 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/18
2025-12-20 15:34:17 +08:00
李新月
240e94cb38
Merge #9 into develop from fix/memory_reflection
...
新增反思功能(功能配置接口+反思celery后台检测反思的迭代周期)
* fix/memory_reflection: (24 commits squashed)
- 新增反思功能(功能配置接口+反思celery后台检测反思的迭代周期)
- 新增反思功能(功能配置接口+反思celery后台检测反思的迭代周期)
- 新增反思功能(检测代码/规范化程序)
- 新增反思功能(检测代码/规范化程序)
- 新增反思功能(检测代码/规范化程序)
- 新增反思功能(检测代码/规范化程序)
- 新增反思功能(检测代码/规范化程序)
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
- 反思优化
Signed-off-by: aliyun8644380055 <accounts_68c0f5d519f260d93ee2997e@mail.teambition.com >
Commented-by: aliyun8644380055 <accounts_68c0f5d519f260d93ee2997e@mail.teambition.com >
Commented-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@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/9
2025-12-20 15:34:14 +08:00
Mark
3aff6baccb
[add] workflow support stream mode
2025-12-20 15:33:23 +08:00
谢俊男
c26af11f76
feat(apikey system): tool system development
2025-12-20 15:24:28 +08:00
Mark
0503b26232
[add] workflow support stream mode
2025-12-18 19:46:36 +08:00
谢俊男
45db8fd1bf
feat(apikey system): add the API key test interface for the memory engine
2025-12-18 18:52:38 +08:00
谢俊男
d3cd1f2c1a
feat(apikey system): the default resource_id for creating the service's apikey is workspace_id
2025-12-18 17:58:55 +08:00
Mark
d229733dee
[modify] model list Types support separation by comma (,)
2025-12-18 14:08:40 +08:00
mengyonghao
3950b718cd
fix(prompt-optimizer): 修复数据模型和业务逻辑问题
...
- 修复PromptOptimizerSessionHistory模型中session_id外键关系错误
- 统一会话ID的使用逻辑,区分内部ID和外部session_id
- 修复服务层create_update_model_config方法参数不匹配问题
- 优化会话历史查询逻辑,确保正确的数据关联
- 修复消息创建时的会话验证和ID映射问题
- 改进Repository层的类型注解准确性
2025-12-17 17:20:05 +08:00
mengyonghao
64d9dde209
feat(prompt-optimizer): add prompt optimization APIs and database tables
...
- Added API endpoints for prompt optimization:
* POST /prompt/sessions: Create a new prompt optimization session
* GET /prompt/sessions/{session_id}: Retrieve session message history
* POST /prompt/sessions/{session_id}/messages: Send message and get optimized prompt
* PUT /prompt/model: Create or update system prompt model configuration
- Added database models for prompt optimization:
* prompt_opt_session: Stores session metadata
* prompt_opt_session_history: Stores session message history
* prompt_opt_message: Stores user and assistant messages
* prompt_opt_model_config: Stores system prompt model configurations
- Updated service layer to handle message creation, prompt optimization, and variable parsing
- Added corresponding Pydantic schemas for request and response validation
2025-12-17 15:59:33 +08:00
Mark
9b8db9a001
[MODIFY] MEM SEE OUTPUT
2025-12-15 20:50:15 +08:00
Mark
7bbef35b7d
[ADD] Merge code
2025-12-15 19:53:33 +08:00
Mark
a4e276ab27
[MODIFY] Code optimization
2025-12-15 14:09:43 +08:00
Ke Sun
c1adc62ec6
feat: Add base project structure with API and web components
2025-12-02 20:28:01 +08:00