feat: extend memory search and attachment mapping
This commit is contained in:
@ -57,11 +57,13 @@ INFO: Uvicorn running on http://127.0.0.1:8010 (Press CTRL+C to quit)
|
||||
Request:
|
||||
|
||||
```bash
|
||||
USER_ID="gateway_user_20260611180257"
|
||||
|
||||
curl -sS --location 'http://127.0.0.1:8010/users' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"user_id": "gateway_user_20260611180257"
|
||||
}'
|
||||
--data "{
|
||||
\"user_id\": \"${USER_ID}\"
|
||||
}"
|
||||
```
|
||||
|
||||
Response:
|
||||
@ -88,7 +90,6 @@ Request:
|
||||
```bash
|
||||
cd /home/tom/memory-gateway
|
||||
|
||||
USER_ID="gateway_user_20260611180257"
|
||||
USER_KEY="uk_REDACTED"
|
||||
CONVERSATION_ID="gateway-multimodal-20260611180257"
|
||||
SESSION_ID="chat:${CONVERSATION_ID}"
|
||||
@ -160,13 +161,13 @@ Request:
|
||||
```bash
|
||||
curl -sS --location 'http://127.0.0.1:8010/memories/flush' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"user_id": "gateway_user_20260611180257",
|
||||
"user_key": "uk_REDACTED",
|
||||
"session_id": "chat:gateway-multimodal-20260611180257",
|
||||
"app_id": "default",
|
||||
"project_id": "default"
|
||||
}'
|
||||
--data "{
|
||||
\"user_id\": \"${USER_ID}\",
|
||||
\"user_key\": \"${USER_KEY}\",
|
||||
\"session_id\": \"${SESSION_ID}\",
|
||||
\"app_id\": \"default\",
|
||||
\"project_id\": \"default\"
|
||||
}"
|
||||
```
|
||||
|
||||
Response:
|
||||
@ -201,16 +202,16 @@ sleep 2
|
||||
|
||||
curl -sS --location 'http://127.0.0.1:8010/memories/search' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"user_id": "gateway_user_20260611180257",
|
||||
"user_key": "uk_REDACTED",
|
||||
"conversation_id": "gateway-multimodal-20260611180257",
|
||||
"query": "图片里的蓝色圆形在哪里?音频是什么?",
|
||||
"scope": ["current_chat"],
|
||||
"top_k": 5,
|
||||
"app_id": "default",
|
||||
"project_id": "default"
|
||||
}'
|
||||
--data "{
|
||||
\"user_id\": \"${USER_ID}\",
|
||||
\"user_key\": \"${USER_KEY}\",
|
||||
\"conversation_id\": \"${CONVERSATION_ID}\",
|
||||
\"query\": \"图片里的蓝色圆形在哪里?音频是什么?\",
|
||||
\"scope\": [\"current_chat\"],
|
||||
\"top_k\": 5,
|
||||
\"app_id\": \"default\",
|
||||
\"project_id\": \"default\"
|
||||
}"
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
Reference in New Issue
Block a user