Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

如何通过API实现Deep Recall的个性化回复功能?

2025-08-24 978

通过RESTful API使用个性化功能需遵循以下工作流:

  1. memory storage::
    • invocations/memory/store端点存储用户特征
    • 示例:存储用户电影偏好
      curl -X POST http://localhost:8000/memory/store -H "Content-Type: application/json" -d '{"user_id":"u1001", "data":"偏爱科幻片和诺兰导演"}'
  2. 记忆检索::
    • invocations/memory/retrieve获取关联记忆
    • 关键参数:时间衰减因子(控制历史记忆权重)
  3. Response Generation::
    • 自动将检索结果作为LLM的system prompt
    • 个性化程度通过config/memory_config.jsonhit the nail on the headcontext_windowalign

高级用法:
1. 批量导入历史数据可使用scripts/batch_importer.py
2. 对话连续性通过session_id参数维护

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish