为 OpenViking 内存命中添加最新内容读取功能,并更新相关文档和测试用例

This commit is contained in:
2026-06-03 16:29:59 +08:00
parent c76c8d47d1
commit 8c479e4ecd
4 changed files with 106 additions and 1 deletions

View File

@ -262,7 +262,7 @@ curl -s -X POST <MEMORY_SYSTEM_BASE_URL>/memory-system/search \
}'
```
Raw API search responses include merged `items` plus compact backend diagnostics. Fields named `vector` are stripped recursively before the API returns JSON. The API does not return EverOS `original_data` or full episode payloads inside `backends` anymore. OpenViking search uses `/api/v1/search/search`; `target_uri`, `level`, and `score_threshold` are optional request fields.
Raw API search responses include merged `items` plus compact backend diagnostics. Fields named `vector` are stripped recursively before the API returns JSON. The API does not return EverOS `original_data` or full episode payloads inside `backends` anymore. OpenViking search uses `/api/v1/search/search`; `target_uri`, `level`, and `score_threshold` are optional request fields. For OpenViking memory hits, the API also reads the matched URI with `content/read` and returns the latest body in `content` when available.
The search response shape should now look more like: