多模态摄入
Memorose 不只支持纯文本。
可摄入的内容类型
当前支持:
textimageaudiovideojson
请求体使用 content 和 content_type 两个字段。
JSON 事件示例
curl -s -X POST "http://127.0.0.1:3000/v1/users/user_123/streams/$STREAM_ID/events" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"org_id": "default",
"content_type": "json",
"content": "{\"source\":\"calendar\",\"title\":\"Team sync\",\"time\":\"2026-03-25T09:00:00Z\"}"
}'
多模态检索
检索时除了文本 query,还可以附带 base64 编码的媒体:
imageaudiovideo
curl -s -X POST "http://127.0.0.1:3000/v1/users/user_123/streams/$STREAM_ID/retrieve" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "Find related UI references for this screenshot",
"image": "<base64-image>",
"limit": 5
}'
注意:query 文本仍然是必填项,媒体只是附加信号。