separate Supermemory RAG stability gate
This commit is contained in:
@@ -114,11 +114,20 @@ curl --fail --silent --show-error --max-time 60 \
|
||||
"$base_url/v4/profile" >/tmp/profile.json || fail 51 profile-request
|
||||
grep -q '"profile"' /tmp/profile.json || fail 52 profile-shape
|
||||
|
||||
curl --fail --silent --show-error --max-time 60 \
|
||||
conversation_http=$(curl --silent --show-error --max-time 60 \
|
||||
--output /tmp/conversation.json \
|
||||
--write-out '%{http_code}' \
|
||||
-H "$auth_header" \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data "{\"conversationId\":\"$marker\",\"containerTags\":[\"$container_tag\"],\"messages\":[{\"role\":\"user\",\"content\":\"这只是隔离测试。\"},{\"role\":\"assistant\",\"content\":\"不会作为正式事实。\"}],\"metadata\":{\"source\":\"poc-smoke\",\"status\":\"temporary\"}}" \
|
||||
"$base_url/v4/conversations" >/tmp/conversation.json || fail 61 conversation-ingest
|
||||
"$base_url/v4/conversations") || fail 61 conversation-ingest-request
|
||||
|
||||
case "$conversation_http" in
|
||||
2??) conversation_ingest=accepted ;;
|
||||
404) conversation_ingest=unsupported-404 ;;
|
||||
*) fail 62 conversation-ingest-unexpected-status ;;
|
||||
esac
|
||||
|
||||
touch "$sentinel"
|
||||
printf '{"embedding_plan":"gemini/gemini-embedding-2/768","llm":"gemini-native-default","v3_search":%s,"v4_documents_search":"ok","chinese_hybrid_search":"ok","metadata_traceability":"ok","profile":"ok","conversation_ingest":"accepted"}\n' "$v3_hit"
|
||||
printf '{"embedding_plan":"gemini/gemini-embedding-2/768","llm":"gemini-native-default","v3_search":%s,"v4_documents_search":"ok","chinese_hybrid_search":"ok","metadata_traceability":"ok","profile":"ok","conversation_ingest":"%s","conversation_http":%s}\n' \
|
||||
"$v3_hit" "$conversation_ingest" "$conversation_http"
|
||||
|
||||
Reference in New Issue
Block a user