compare Supermemory v3 and v4 exact search

This commit is contained in:
Codex
2026-09-08 00:14:15 -07:00
parent b20272c084
commit 37b6daf8f1
+12 -1
View File
@@ -73,7 +73,18 @@ curl --fail --silent --show-error --max-time 15 \
-H 'Content-Type: application/json' \
--data "{\"q\":\"$existing_marker\",\"containerTag\":\"$container_tag\",\"searchMode\":\"hybrid\",\"limit\":5}" \
"$base_url/v4/search" >/tmp/search-exact.json || fail 41 search-exact-request
grep -q "$existing_marker" /tmp/search-exact.json || fail 44 search-exact-no-hit
if ! grep -q "$existing_marker" /tmp/search-exact.json; then
curl --fail --silent --show-error --max-time 15 \
-H "$auth_header" \
-H 'Content-Type: application/json' \
--data "{\"q\":\"$existing_marker\",\"containerTag\":\"$container_tag\"}" \
"$base_url/v3/search" >/tmp/search-exact-v3.json || fail 43 search-exact-v3-request
if grep -q "$existing_marker" /tmp/search-exact-v3.json; then
grep -q 'poc-smoke' /tmp/search-exact-v3.json || fail 49 search-v3-metadata-missing
fail 48 search-v3-only
fi
fail 44 search-exact-no-hit
fi
grep -q 'poc-smoke' /tmp/search-exact.json || fail 45 search-exact-metadata-missing
curl --fail --silent --show-error --max-time 15 \