3340 Commits

Author SHA1 Message Date
mengyonghao
0ccb4a095a style(enums): correct enum class name spelling 2025-12-19 15:16:00 +08:00
mengyonghao
d3d3c3b3ce style(workflow): update condition edge comments for conditional nodes 2025-12-19 14:43:47 +08:00
mengyonghao
73ab2c7986 docs(samples): add config example for If-Else node
- Provide a sample configuration for the If-Else workflow node.
- Helps users understand how to define conditional branches.
2025-12-19 14:34:01 +08:00
mengyonghao
bf702b1b92 fix(expression-eval): fix variable extraction issue in Jinja2 templates
- Resolve the bug where variables inside Jinja2 template expressions were not correctly extracted.
- Ensure expressions containing {{ ... }} are parsed reliably.
2025-12-19 14:23:29 +08:00
mengyonghao
4d7a89f58b perf(types): add Union type declaration for workflow nodes
- Introduce a `Nodes` type as a Union of all workflow node classes.
- Improves type checking and IDE autocompletion.
2025-12-19 14:21:27 +08:00
mengyonghao
c06a7b31ae feat(workflow): add conditional branch (If-Else) node
- Introduce a new conditional branch node for workflows.
- Supports multiple case branches with logical operators (AND/OR).
- Enables workflow routing based on evaluated conditions.
2025-12-19 14:19:38 +08:00
mengyonghao
c1a412508b 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-19 14:09:05 +08:00
谢俊男
3fbd4f206e feat(apikey system): service api key update optimization 2025-12-19 11:31:09 +08:00
zhaoying
7da3c5a8e8 feat(web): update api key 2025-12-18 20:35:38 +08:00
mengyonghao
406a6d1d90 fix(workflow): fix run_workflow streaming issues
Resolve exceptions during run_workflow streaming and define proper status codes for error cases.
2025-12-18 19:48:24 +08:00
Mark
8d810af1d0 Merge branch 'develop-mark' into develop 2025-12-18 19:47:06 +08:00
Mark
0503b26232 [add] workflow support stream mode 2025-12-18 19:46:36 +08:00
朱文辉
334f20d7b3 Merge #15 into develop from feature/20251219_xjn
feat(apikey system): add the API key test interface for the memory engine

* feature/20251219_xjn: (2 commits)
  feat(apikey system): the default resource_id for creating the service's apikey is workspace_id
  feat(apikey system): add the API key test interface for the memory engine

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/15
2025-12-18 19:38:27 +08:00
谢俊男
45db8fd1bf feat(apikey system): add the API key test interface for the memory engine 2025-12-18 18:52:38 +08:00
lixiangcheng1
06e8c3a1aa Merge branch 'feature/20251219_lxc' into develop 2025-12-18 18:51:48 +08:00
lixiangcheng1
c0d6604981 [fix]document chunk QA 2025-12-18 18:51:32 +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
乐力齐
e2e5c1571a Merge #13 into develop from fix/stream-output
&#39;fix/stream-output&#39;

* fix/stream-output: (17 commits squashed)

  - [fix]Fix the issue where the streaming output effect is not obvious.

  - [fix]Fix the issue where the streaming output effect is not obvious.

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

  - [fix]

  - [fix]Skip time extraction

  - [fix]

  - [fix]Skip time extraction

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

  - [fix]Remove human-induced delays

  - [fix]Fix the issue where the streaming output effect is not obvious.

  - [fix]

  - [fix]Skip time extraction

  - [fix]Fix the issue where the streaming output effect is not obvious.

  - [fix]

  - [fix]Skip time extraction

  - [fix]Remove human-induced delays

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

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/13
2025-12-18 09:56:35 +00:00
朱文辉
b15a73f3e7 Merge #12 into develop from feature/20251219_xjn
feat(apikey system): api key authentication qps optimization

* feature/20251219_xjn: (4 commits)
  feat(apikey system): api key authentication adds the GET method
  feat(apikey system): api key authentication delete the GET method
  feat(apikey system): api key authentication qps optimization
  Merge branch &#39;refs/heads/develop&#39; into feature/20251219_xjn

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/12
2025-12-18 17:19:53 +08:00
谢俊男
f419b6b001 Merge branch 'refs/heads/develop' into feature/20251219_xjn 2025-12-18 16:58:45 +08:00
谢俊男
43a30b5a1f feat(apikey system): api key authentication qps optimization 2025-12-18 16:56:34 +08:00
lixiangcheng1
64ecd8cabc [fix]Add knowledge graph functionality to document parsing configuration 2025-12-18 15:54:31 +08:00
lixiangcheng1
a44673ae01 [fix]When updating the knowledge base name, check if it exists 2025-12-18 15:53:31 +08:00
赵莹
6cd436d9b8 Merge #11 into develop_web from feature/20251219_zy
style(web): ui update

* feature/20251219_zy: (1 commits)
  style(web): ui update

Signed-off-by: zhaoying <zhaoying@redbearai.com>
Merged-by: zhaoying <zhaoying@redbearai.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/11
2025-12-18 15:20:36 +08:00
zhaoying
50a244af4d style(web): ui update 2025-12-18 15:20:01 +08:00
赵莹
d53663fc78 Merge #10 into develop_web from feature/20251219_zy
feature: app&#39;s api key support delete

* feature/20251219_zy: (1 commits)
  feature: app&#39;s api key support delete

Signed-off-by: zhaoying <zhaoying@redbearai.com>
Merged-by: zhaoying <zhaoying@redbearai.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/10
2025-12-18 15:13:34 +08:00
zhaoying
3ab68e126f feature: app's api key support delete 2025-12-18 15:12:39 +08:00
Mark
d229733dee [modify] model list Types support separation by comma (,) 2025-12-18 14:08:40 +08:00
赵莹
83a831d27a Merge #8 into develop_web from feature/20251219_zy
feat(web): api method readonly

* feature/20251219_zy: (1 commits)
  feat(web): api method readonly

Signed-off-by: zhaoying <zhaoying@redbearai.com>
Merged-by: zhaoying <zhaoying@redbearai.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/8
2025-12-18 13:35:11 +08:00
zhaoying
fa53ab1d6a feat(web): api method readonly 2025-12-18 13:34:32 +08:00
赵莹
46fe6fff89 Merge #7 into develop_web from feature/20251219_zy
feat(web): api key

* feature/20251219_zy: (1 commits)
  feat(web): api key

Signed-off-by: zhaoying <zhaoying@redbearai.com>
Merged-by: zhaoying <zhaoying@redbearai.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/7
2025-12-18 12:36:28 +08:00
zhaoying
29cc708f4f feat(web): api key 2025-12-18 12:35:42 +08:00
谢俊男
6d462c8f2c feat(apikey system): api key authentication delete the GET method 2025-12-18 12:26:39 +08:00
谢俊男
7c9df70724 feat(apikey system): api key authentication adds the GET method 2025-12-18 12:20:21 +08:00
赵莹
03e328ae65 Merge #5 into develop_web from feature/20251219_zy
optimize: check en.ts

* feature/20251219_zy: (6 commits)
  optimize: UI update
  components: Add Chat component
  optimize: 1. stream request optimize; 2. replace Chat component
  feature: memory extraction engine debug switch to streaming output
  feature: add api key
  optimize: check en.ts

Signed-off-by: zhaoying <zhaoying@redbearai.com>
Merged-by: zhaoying <zhaoying@redbearai.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/5
2025-12-18 10:24:15 +08:00
赵莹
c4423d609b Merge #4 into develop_web from web
合并 feature/20251219_yjp 分支到 web 分支

* web: (11 commits)
  update web
  update web
  update web
  update web
  update web
  update web
  Sync frontend project from dev-yjp branch
  feat(web): Update auto-imports with new React hooks and components
  feat:create cusotm text dataset
  feat(web): update auto-imports with new React hooks and components
  合并 feature/20251219_yjp 分支到 web 分支

Signed-off-by: zhaoying <zhaoying@redbearai.com>
Merged-by: zhaoying <zhaoying@redbearai.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/4
2025-12-18 10:23:01 +08:00
Mark
2a7199f593 [modify] migrations script 2025-12-17 18:51:28 +08:00
朱文辉
9fb9bec756 Merge #3 into develop from feature/20251219_myh
feat(prompt-optimizer): add prompt optimization APIs and database tables

* feature/20251219_myh: (4 commits)
  feat(prompt-optimizer): add prompt optimization APIs and database tables
  fix(database): fix session_id foreign key dependency
  fix(prompt-optimizer): 修复数据模型和业务逻辑问题
  fix(prompt-session): 修复请求新的session时orm解析失败的问题

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/3
2025-12-17 18:34:40 +08:00
mengyonghao
89da098948 fix(prompt-session): 修复请求新的session时orm解析失败的问题 2025-12-17 18:11:01 +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
07273e4c03 fix(database): fix session_id foreign key dependency 2025-12-17 16:33:11 +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
yujiangping
7d56c14e42 合并 feature/20251219_yjp 分支到 web 分支
冲突解决策略:
- web/src/views/KnowledgeBase/ 文件夹下的所有冲突以 feature/20251219_yjp 分支为主
- 其他冲突(如 vite.config.ts)以 web 分支为主

主要更改:
- 保留了 feature 分支中的知识库相关功能和组件
- 保持了 web 分支的配置和其他功能
- 添加了自定义文本数据集创建功能
- 更新了知识库管理界面
2025-12-17 15:25:20 +08:00
yujiangping
e92a2f814b feat(web): update auto-imports with new React hooks and components
- Add React components: Activity, Fragment, Suspense
- Add React hooks: cache, cacheSignal, createContext, use, useActionState, useEffectEvent, useOptimistic
- Maintain existing React Router imports and hooks
- Expand global type declarations for improved IDE autocomplete and type safety
2025-12-17 14:19:43 +08:00
yujiangping
0a9c01cf33 feat:create cusotm text dataset 2025-12-17 14:16:25 +08:00
Mark
7386ea32f1 [modify] ignore 2025-12-16 17:39:08 +08:00
lanceyq
083c460687 [updated]Updating the Chinese and English versions of the readme. 2025-12-16 14:33:31 +08:00
zhaoying
9799ba510a optimize: check en.ts 2025-12-16 14:22:37 +08:00
zhaoying
44ceee3f42 feature: add api key 2025-12-16 13:54:41 +08:00
yujiangping
ac2173743b feat(web): Update auto-imports with new React hooks and components
- Add React components: Activity, Fragment, Suspense
- Add React hooks: cache, cacheSignal, createContext, use, useActionState, useEffectEvent, useOptimistic
- Maintain existing React Router imports and hooks
- Expand global type declarations for improved IDE autocomplete support
2025-12-16 12:05:22 +08:00