Kevin
|
4cfa3843a7
|
chore/ 精简展示AI活动的日志
|
2026-04-03 13:49:24 +08:00 |
|
Kevin
|
41518bda11
|
聊天和回忆录证据检索都走 pgvector,去掉 Postgres FTS/content_tsv,新迁移删掉 content_tsv 列(部署要先 alembic upgrade)。
Embedding 端口增加 is_available(),聊天和回忆录日志用统一方式表示向量是否真能调用。
记忆整理(compaction)支持 Beat 定期扫用户;
事实抽取提示与 subject 归一化,减少同一人多种称呼;
|
2026-04-03 11:43:16 +08:00 |
|
Kevin
|
6b930808a3
|
feat(memoir): 回忆录分段两阶段管线(Phase1 分类 / Phase2 叙事)与配置、测试
|
2026-04-02 16:37:14 +08:00 |
|
Kevin
|
69a673e6c6
|
feat(api): 访谈人格/回复长度策略、口述归一、背景语气与输入净稿全链路
Chat 访谈
- 新增 persona 系统(default / warm_listener / curious_guide)与 background_voice 语气层
- 回复长度由 compute_reply_plan 统一决策(brief / standard / expanded),融合信息密度启发式
- 输入净稿(input_normalize):编排层可选 rules/llm 归一用户口语后再喂模型与记忆检索
- 记忆证据注入:按用户话检索 memory evidence 并注入 prompt
Memoir 回忆录
- 口述归一(oral_normalize):segment 原文保留,story 管线取派生净稿作叙事输入
- segment 入队批次门闸:累计字数 + 最长等待秒数,减少零碎提交
- fidelity_check / prompts / narrative_agent 微调
- Alembic 0005:清理跨章节 story 外键
Infra
- Dockerfile 加入 ffmpeg
- pyproject.toml 新增依赖并同步 uv.lock
- .env.example / .env.production 补全新配置项
Tests
- 新增 test_background_voice、test_chat_input_normalize、test_experience_regressions
- 扩展 test_interview_prompts、test_interview_reply_length、test_story_route_oral_invariant
Made-with: Cursor
|
2026-03-31 23:55:26 +08:00 |
|
Kevin
|
42ae2a5e91
|
feat(api): 接入智谱 embedding-3(1024 维)并迁移 memory_chunks 向量列
|
2026-03-30 13:54:35 +08:00 |
|
Kevin
|
e884409410
|
feat(api): Memory compaction 管线与调度修复,同步环境变量示例
Memory compaction(近重复 chunk 软排除)
- 新增 compaction 调度:Redis debounce、scheduler gate、增量游标;任务结束时 finalize,避免 gate 长期占用并处理运行期新 trigger。
- Celery memory_compaction_run:debounce 未到点则 retry;用户级 Redis 锁;成功路径更新游标并 finalize;异常时释放 scheduler gate 并 self.retry,避免静默卡死调度与瞬时失败不重试。
- compaction_service:多层判定 + canonical 打分;无 embedding 时停止前移游标(awaiting_embeddings);curation details 补全 trigger 等上下文。
- ingest_transcript_sync:同步路径尽力写入 embedding,与异步 ingest 行为对齐,避免 compaction 永远扫不到无向量 chunk。
- repo:新增 update_chunk_embedding_sync。
测试
- 扩展 test_memory_compaction:调度合并、finalize、ingest embedding、无向量游标、异常路径 gate+retry 等回归用
|
2026-03-30 10:46:35 +08:00 |
|
Kevin
|
c3378015a7
|
fix production env
|
2026-03-23 14:59:45 +08:00 |
|
Kevin
|
b9ecfd02a4
|
various fixes
|
2026-03-23 13:21:07 +08:00 |
|
Kevin
|
786ebf8ae6
|
refactor(api,expo): 多智能体与会话收敛、回忆录兼容层移除、后端测试集大幅删减
- 对齐「多智能体收敛」与「回忆录 stories-first / markdown-first」方向:收紧运行时契约、
删除过渡兼容路径与双轨逻辑,并同步更新客户端与文档。
- Chat:以 ChatOrchestrator 为实时编排入口;删除独立 conversation_agent,精简 prompts。
- Memoir:删除 memory_agent;MemoirOrchestrator、classification / story_route 与 prompts 收敛到
prepare_batches + run_story_pipeline_for_category_batch 主链路。
- 将 agents 侧 processor 迁入 feature 层为 background_runner,并移除 features 下重复/过时
processor 封装。
- 新增 history_store,强化「conversation_messages 为 DB 真源、Redis 为缓存」模型。
- 调整 models、repo、service、session_history;精简 WS message_types,重构 pipeline 与 router。
- 移除章节占位、整章再生等旧路径;章节列表与封面逻辑要求 story 关联;收紧 cover 资格与
enqueue。
- helpers、repo、service、router、reading_segment_materialize、story_pipeline_sync、pdf_service
等按 canonical markdown / cover_asset_id 收缩;删除 memoir_images/provider 等冗余。
- tasks:memoir_tasks、chapter_cover_tasks 等大幅瘦身;story_image_tasks 等与当前图片任务对齐。
- core:config、logging、redis、task_tracker 小幅调整。
- auth / user / payment / quota:路由或服务侧删减过时接口或逻辑(如 payment router 行数减少)。
- pyproject.toml、development.sh、.env.example / .env.production、README 等同步说明或变量。
- Alembic 0001_initial_schema 微调(与当前 schema 叙事一致的小改动)。
- 回忆录:types / mappers / api、章节页与 memoir 页与后端契约对齐;markdown-renderer 调整。
- 语音:删除 voice/player,voice-segment-store 相应精简。
- api/tests:删除 conftest 及绝大部分既有测试文件(websocket_baseline、conversation、memoir
图片、PDF、SMS 等),属有意收缩/待按 backend-test-system 重建的信号。
- docs:新增多智能体收敛与移除兼容层计划摘要;更新 story-first 设计、backend-test-system、
multi-agent-refactor-plan、实施总结等。
BREAKING CHANGE: 后端对外契约、回忆录章节字段与若干路由/任务行为已变更;大量 API 测试被移除,
CI 若依赖这些用例需按新策略补测或调整流水线。
|
2026-03-22 18:10:28 +08:00 |
|
Kevin
|
8af37e5e8e
|
修复:CI 部署环境与 ref 错配、迁移碎片化、图片意图 source_span、章节物化脏版式、会话历史与本地语音不一致
新增:TTS 上传 COS 与分片、章节 reading_segments 物化与快照、markdown 清洗、会话消息 repository、语音 store 重构与相关测试
|
2026-03-20 16:43:02 +08:00 |
|
Sully
|
9636c059d0
|
更新docker构建cd (#10)
* update github actions
* update github actions
* update github actions
* update github actions
* update github actions
* update github actions
* update github actions
---------
Co-authored-by: Kevin <kevin@brighteng.org>
|
2026-03-13 23:41:56 +08:00 |
|
Kevin
|
2e6f997f04
|
chore: 新增上线检查单与脱敏 env 模板
|
2026-03-11 16:31:16 +08:00 |
|
penghanyuan
|
c9217f0f6c
|
chore: 更新腾讯云短信服务配置
- 更新 api/.env.production 中的 TENCENT_SMS_SECRET_ID 和 TENCENT_SMS_SECRET_KEY
|
2026-02-13 20:21:35 +01:00 |
|
penghanyuan
|
190f54dd81
|
chore: 更新 ASR 服务配置与日志信息
- 修改 api/.env.production,切换 ASR_PROVIDER 至腾讯云
- 更新 api/main.py 中的日志信息以反映新的 ASR 服务提供者
|
2026-02-13 19:53:48 +01:00 |
|
iammm0
|
6a53d90702
|
chore: 更新生产环境配置
- 更新 api/.env.production
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-12 14:42:26 +08:00 |
|
iammm0
|
44b405d647
|
refactor: 优化后端支付与微信支付
- 优化payment/config.py、wechat_pay.py
- 优化routers/payment.py、plans.py、quota.py、websocket.py
- 更新main.py、.env.production
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-11 16:06:15 +08:00 |
|
iammm0
|
e39fd97e06
|
feat: 新增后端支付模块,支持微信和支付宝
- 新增api/payment/支付服务(微信、支付宝)
- 新增api/routers/payment.py支付路由
- 更新database/models.py支付相关模型
- 新增数据库迁移文件(订单表、用户订阅字段)
- 更新main.py、requirements.txt、.env.production
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-10 14:23:29 +08:00 |
|
iammm0
|
76fd7da3c9
|
feat: 扩展后端WebSocket和语音识别功能
- 扩展websocket.py支持语音消息
- 优化asr_service.py语音识别服务
- 更新main.py和requirements.txt
- 更新.env.production配置
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-03 11:29:38 +08:00 |
|
iammm0
|
0925c6f15a
|
refactor: 优化短信验证服务
- 优化sms_service.py短信验证服务实现
- 更新.env.production配置
|
2026-01-27 14:30:12 +08:00 |
|
iammm0
|
9c39df62bc
|
feat: 新增短信验证码服务
- 新增sms_service.py短信验证服务
- 新增test_sms_verification.py短信验证测试
- 更新requirements.txt添加短信服务依赖
- 更新.env.production添加短信服务配置
|
2026-01-27 11:35:54 +08:00 |
|
iammm0
|
d104377d26
|
feat: 优化Docker构建配置,支持生产环境配置文件
- 更新.gitignore,允许.env.production文件被提交(私密仓库)
- 优化Dockerfile构建流程,使用.env.production作为生产环境配置
- 将.env.production复制为.env,确保生产环境使用正确的配置
- 新增.env.production生产环境配置文件
|
2026-01-23 10:56:59 +08:00 |
|