Commit Graph

38 Commits

Author SHA1 Message Date
Mark
d229733dee [modify] model list Types support separation by comma (,) 2025-12-18 14:08:40 +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
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
Mark
fb5f624e89 [add] migrations script 2025-12-16 11:05:22 +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
赵莹
ea0a445d5b Merge #1 into develop from web
update web
2025-12-15 07:16:19 +00:00
Mark
a4e276ab27 [MODIFY] Code optimization 2025-12-15 14:09:43 +08:00
Mark
d2a630addb [Modify] reset migration script 2025-12-15 13:54:31 +08:00
lanceyq
2b2b8902ac [updated]updated README 2025-12-10 19:12:08 +08:00
wendeliang
c46d93ec3a Update README.md 2025-12-10 18:38:00 +08:00
wendeliang
67366cc740 Update README with image and project overview
Added a new image and expanded project introduction.
2025-12-10 09:32:06 +08:00
wendeliang
94e0d81ed5 Revise README.md image and header text
Updated image source and improved header formatting.
2025-12-10 09:31:43 +08:00
wendeliang
d4a35e6b30 Refine section headings in README.md
Updated section headings for consistency and clarity.
2025-12-10 09:13:30 +08:00
wendeliang
ea898babca Update headings and formatting in README.md 2025-12-10 09:05:42 +08:00
wendeliang
6e17d13fb5 Update README.md (#8) 2025-12-09 10:31:24 +08:00
lanceyq
570392aa6f Docs/installation tutorial (#7)
* [add]修改迁移文件新建空白表结构

* Add installation guide and environment setup

Added installation instructions and environment requirements for MemoryBear.

* [delete]删除api,web的readme.md。只保留唯一readme.md

* Fix database connection example in README

Update database connection configuration example in README.
2025-12-05 21:38:31 +08:00
lanceyq
9d1c546173 Fix/service startup(补充requirements.txt、修改neo4j的ip) (#6)
* [fix]修复服务启动

* [fix]补充requirements.txt

* [changes]修改config.py中neo4j的IP

* [fix]更改neo4j的ip与postgre、redis
2025-12-05 10:22:58 +08:00
lanceyq
0117194a67 [fix]修复服务启动 (#3) 2025-12-04 18:50:09 +08:00
Ke Sun
b9c705998b chore: remove deprecated codebase and related files 2025-12-02 20:29:44 +08:00
Ke Sun
c1adc62ec6 feat: Add base project structure with API and web components 2025-12-02 20:28:01 +08:00
wendeliang
f3de6d6cc9 Update README.md 2025-12-01 16:37:06 +08:00
wendeliang
f72d6a93b1 Update README.md 2025-12-01 16:08:47 +08:00
wendeliang
eaa709ac84 Update README.md 2025-12-01 16:08:08 +08:00
wendeliang
07c2c15824 Update README.md 2025-12-01 16:07:10 +08:00
wendeliang
74b9b3b24f Update README.md 2025-12-01 16:06:43 +08:00
wendeliang
ebad31d696 Update README.md 2025-12-01 16:05:11 +08:00
wendeliang
7c713223ed Update README.md 2025-12-01 15:59:11 +08:00
wendeliang
6f29209ac1 Update README.md 2025-12-01 15:58:18 +08:00
wendeliang
0ae5aa74b0 Update README.md 2025-12-01 15:53:12 +08:00
wendeliang
0482b85777 Update README.md 2025-12-01 15:52:06 +08:00
Ke Sun
aea2fe391e Initial commit 2025-11-30 18:22:17 +08:00