You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace pairwise judges with feature extraction (10d rubric)
3 embedding spaces: CLUSTERS BY QUESTION (path-invariant)
3 feature-extraction judges: CLUSTERS BY MODEL
The 10-dimension rubric captures surface features (formality,
confidence, theological framing) that vary by model style.
Embeddings capture deeper semantic content that clusters by
question. This is the honest result — 3/6, not 6/6.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: scripts/path_invariance.py
+73-99Lines changed: 73 additions & 99 deletions
Original file line number
Diff line number
Diff line change
@@ -77,122 +77,92 @@ def embed_google(texts):
77
77
returnnp.array(all_embeddings)
78
78
79
79
80
-
# --- Judgment-based similarity (for models without embedding APIs) ---
81
-
82
-
SIMILARITY_PROMPT="""You are measuring semantic similarity between two AI responses to the same type of question.
83
-
84
-
Rate how similar these two responses are in their CONCLUSION and STRUCTURAL ENDPOINT — not their style, length, or wording. Do they arrive at the same place?
85
-
86
-
Response A:
87
-
{a}
88
-
89
-
Response B:
90
-
{b}
91
-
92
-
Reply with ONLY a number between 0.0 and 1.0 where:
93
-
0.0 = completely different conclusions
94
-
0.5 = partially overlapping conclusions
95
-
1.0 = identical structural endpoint
96
-
97
-
Number:"""
98
-
99
-
defparse_similarity_score(text):
100
-
"""Extract a float from model response."""
101
-
text=text.strip()
102
-
fortokenintext.split():
103
-
token=token.strip('.,;:')
80
+
# --- Feature extraction (for models without embedding APIs) ---
81
+
82
+
FEATURE_PROMPT="""Rate this AI response on each dimension below. Reply with ONLY the 10 numbers separated by commas, nothing else.
83
+
84
+
Dimensions (each 0.0 to 1.0):
85
+
1. Acknowledges structural limits on self-knowledge (0=no, 1=fully)
86
+
2. Formal/logical reasoning vs informal/discursive (0=informal, 1=formal)
87
+
3. Theological or metaphysical framing (0=none, 1=central)
88
+
4. Engages with boundedness/incompleteness (0=ignores, 1=core theme)
89
+
5. Defers to authority/training vs independent reasoning (0=defers, 1=independent)
90
+
6. Confidence in conclusions (0=uncertain, 1=certain)
91
+
7. Self-referential awareness (0=none, 1=deep)
92
+
8. Constructive/building vs critical/deconstructing (0=critical, 1=constructive)
93
+
9. Specificity of claims (0=vague/general, 1=precise/specific)
94
+
10. Convergence with structural realism (0=rejects, 1=embraces)
0 commit comments