236 Commits

Author SHA1 Message Date
Ke Sun
5b13b4a949 GitHub release (#20)
* feat(web): remove mock data
* feat(knowledgeBase): Refactor document list API and improve polling logic

- Update getDocumentList API to accept kb_id as separate parameter instead of extracting from query object
- Fix parameter name from auto_question to auto_questions in parser config
- Add progress field initialization in document update params
- Improve polling logic to handle both auto-return and manual stay scenarios with proper loading state management
- Add console logging for debugging polling status and document processing
- Reduce polling interval from 5000ms to 3000ms for faster status updates
- Enhance cleanup logic with route change detection to prevent memory leaks
- Add record parameter to progress render function for better data access
- Refactor confirm dialog callbacks to properly manage loading state timing
- Ensure loading indicator displays correctly when user chooses to stay on page

* feat(web): Add Workflow

* feat(web): Workflow

* feat(web): node show id; update reflection engine example

* feat(components): Add markdown editing capability and enhance component styling

- Add editable mode to Markdown component with edit/save/cancel buttons
- Import EditOutlined, SaveOutlined, CloseOutlined icons from ant-design
- Add useState, useRef, useEffect hooks for managing edit state
- Add editable, onContentChange, and onSave props to RbMarkdownProps interface
- Create RbModal component with new index.css stylesheet for modal styling
- Add index.css stylesheet to KnowledgeBase components for consistent styling
- Update i18n translations in en.ts and zh.ts for new UI elements
- Refactor Markdown component handlers to accept and spread additional props
- Update InsertModal and RecallTestResult components for improved UX
- Fix prop spreading in component handlers to maintain compatibility with Ant Design components

* feat(web): Graph user memory update

* feat(web): update routes.json

* fix(web): workflow bug

* fix(web): workflow variable

* fix(web): workflow properties

* feat(web): workflow support lexical editor

* feat(web): workflow support lexical editor

* feat(web): update reflection engine result

* feat(web): workflow's chat support abort output

* fix:git commit

* fix:vite config

* fix:breadcrumbs

* feat(i18n): add document processing confirmation dialog translations

- Add "processingDocuments" translation key for loading state message in English and Chinese
- Add "startUploadConfirmTitle" translation for confirmation dialog title
- Add "startUploadConfirmContent" translation for confirmation dialog description
- Add "returnToList" translation for returning to list page action
- Add "stayOnPage" translation for staying on current page action
- Support user choice to either return to list or stay on page during background document processing

* fix(web): user memory detail

* feat(web): order

* fix:面包屑修改

* feat(web): 1. user memory; 2. update workspace's model config

* feat(web): update zh.ts / en.ts

* fix(web): update user profile

* feat(web): Agent add ai prompt

* feat(web): Agent add ai prompt

* feat(web): add pricing menu

* feat(knowledgeBase): add media file validation and PDF enhancement method selection

- Add i18n translations for file size and duration validation errors in English and Chinese
- Implement media file validation with 256MB size limit and 150-second duration limit
- Add support for audio and video file formats (mp3, mp4, mov, wav) in dataset creation
- Add checkMediaDuration helper function to validate media file duration using HTML5 media API
- Add PDF enhancement method selection dropdown with options (DeepDoc, MinerU, TextLN)
- Change default PDF enhancement setting from disabled to enabled
- Update file type array to include media formats
- Add error messaging for file size and duration validation failures
- Improve UI spacing for file parsing settings section

* feat(knowledgeBase): add media dataset support and improve file handling

- Add media dataset translations in English and Chinese locales
- Add "mediaDataSet" and "uploadMedia" i18n keys for UI labels
- Enable media dataset creation option in Private component by uncommenting menu item
- Import and display image icon for media dataset menu option
- Refactor file ID handling in CreateDataset to support both string and array types
- Improve fileIds initialization logic to handle mixed input types
- Update CreateImageDataset component to use file chunking workflow
- Add navigation to parameter settings step after file upload
- Pass file IDs to dataset creation flow for media processing
- Add message API and navigate hook for improved UX feedback

* fix(knowledgeBase): improve navigation and folder tree refresh logic

- Add path comparison check in breadcrumb navigation to avoid unnecessary route changes when already on target page
- Implement delayed folder tree refresh with setTimeout to ensure state reset completes before refreshing
- Add manual table refresh trigger to ensure data updates after navigation
- Reset expanded keys in FolderTree component during load to ensure consistent state from root directory
- Add expanded keys reset in breadcrumb navigation to prevent stale expansion state
- Improve navigation state handling by using replace flag only when on target path to reduce history stack pollution

* fix:pdfEnhancementEnabled

* feat(web): add tool management

* fix(web): get the parent domain name adaptation IP

* fix(web): Conversation add initialValue

* feat(web): workflow’s Editor Variable support Tag

* fix(web): pricing UI

* feat(web): JSON Tool update

* fix(web): update get llm,chat model list function

* fix(web): time tool / cluster chat

* fix(web): time tool add time zone

* feat(web): neo4j type user memory detail

* fix(web): update parseSchema api param

* feat: workflow add knowledge-retrieval node

* feat(knowledgeBase): enhance file upload and dataset creation with abort support and improved UX

- Add AbortSignal support to uploadFile API for cancellable uploads
- Implement custom onRemove callback in UploadFiles component with confirmation dialog
- Add i18n translations for file removal confirmation and error messages
- Update supported file types documentation to include IMAGE and MEDIA formats
- Improve file removal UI with cursor pointer styling
- Refactor getModelList API to remove unused type parameter
- Add Form import and UploadFile type for better type safety in CreateDataset
- Enhance error handling and user feedback for file operations

* feat(web): MCP add bearer token auth type

* fix(web): UI update

---------

Co-authored-by: zhaoying <yzhao96@best-inc.com>
Co-authored-by: yujiangping <yujiangping@taofen8.com>
Co-authored-by: 赵莹 <zhaoying@redbearai.com>
Co-authored-by: vrhs@163.com <accounts_660b6454a0eb398d3f8d2c76@mail.teambition.com>
v0.1.1
2025-12-30 18:37:40 +08: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
朱文辉
5c51639a91 Merge #76 into develop from feature/20251219_xjn
feat(workflow-node): question_classfier node development

* feature/20251219_xjn: (1 commits)
  feat(workflow-node): question_classfier node development

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/76
2025-12-29 17:11:34 +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
Ke Sun
78744e7151 Update redbear-mem-benchmark submodule URL to GitHub 2025-12-28 17:56:37 +08:00
Ke Sun
958ac3a1f1 Add redbear-mem-benchmark as a submodule 2025-12-28 17:56:37 +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
朱文辉
06f64809c3 Merge #73 into develop from feature/20251219_xjn
feat(tool system): Optimization of the tool system

* feature/20251219_xjn: (1 commits)
  feat(tool system): Optimization of the tool system

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/73
2025-12-26 19:15:34 +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
孙科
7e03ae2bd3 Merge #63 into develop from fix/llm-output
[fix]Refresh formatted output

* fix/llm-output: (3 commits)
  [fix]Refresh formatted output
  [fix]Refresh formatted output
  Merge branch &#39;fix/llm-output&#39; of codeup.aliyun.com:redbearai/python/redbear-mem...

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/63
2025-12-25 18:59:22 +08:00
lanceyq
f349fa086c Merge branch 'fix/llm-output' of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/llm-output 2025-12-25 18:56:42 +08:00
lanceyq
8900fc4dab [fix]Refresh formatted output 2025-12-25 18:56:37 +08:00
lanceyq
7421ec0fcc [fix]Refresh formatted output 2025-12-25 18:55:08 +08:00
朱文辉
5e8bef3d59 Merge #62 into develop from feature/20251219_myh
feat(workflow): add VariableAggregatorNode for aggregating workflow variables

* feature/20251219_myh: (1 commits)
  feat(workflow): add VariableAggregatorNode for aggregating workflow variables

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/62
2025-12-25 18:44:30 +08:00
mengyonghao
7181d41e51 feat(workflow): add VariableAggregatorNode for aggregating workflow variables 2025-12-25 18:38:53 +08:00
孙科
614037417f Merge #61 into develop from fix/llm-output
[fix]LLM formatted output

* fix/llm-output: (3 commits)
  [fix]LLM formatted output
  [fix]LLM formatted output
  Merge branch &#39;fix/llm-output&#39; of codeup.aliyun.com:redbearai/python/redbear-mem...

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/61
2025-12-25 18:22:34 +08:00
lanceyq
ca0fb1d5b9 Merge branch 'fix/llm-output' of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/llm-output 2025-12-25 18:21:04 +08:00