Recall & Injection
Recall은 생성 전에 필요한 memory를 불러오는 단계입니다.
Recall은 생성 전에 필요한 memory를 불러오는 단계입니다.
Anchor 기준 recall
POST /v1/recall은 anchor를 이미 알고 있을 때 씁니다.
curl -X POST https://maas.nunchiai.com/v1/recall \
-H "Authorization: Bearer mk_maas_example" \
-H "X-Workspace-Id: acme-prod" \
-H 'Content-Type: application/json' \
-d '{
"anchor_id": "6629df4e-6ee8-4d1d-ae8a-bb1f2a35a2ab",
"query": "What topics are trending this week?",
"limit": 6
}'
User 기준 recall
POST /v1/memory/recall은 user_external_id 중심 제품에서 씁니다.
Hydrate
POST /v1/memory/hydrate는 bounded prompt context를 만듭니다.
curl -X POST https://maas.nunchiai.com/v1/memory/hydrate \
-H "Authorization: Bearer mk_maas_example" \
-H "X-Workspace-Id: acme-prod" \
-H 'Content-Type: application/json' \
-d '{
"anchor_ids": ["6629df4e-6ee8-4d1d-ae8a-bb1f2a35a2ab"],
"query": "Summarize the latest editorial memory.",
"token_budget": 500
}'
Injection 규칙
- 매 응답 전 recall
- injected memory는 bounded하게 유지
- 실제로 쓴 memory에만 feedback
오류
400403404429