devaanand commited on
Commit
b195b7b
·
1 Parent(s): a685524

feat: Add multi-construct functionality to scoring and results in guide and product pages

Browse files
Files changed (2) hide show
  1. backend/app/guide.html +30 -5
  2. backend/app/product.html +4 -0
backend/app/guide.html CHANGED
@@ -131,8 +131,10 @@ synthetic, written for this kit; no real participant data anywhere.</p>
131
  <li><b>Upload your corpus</b> - any CSV/XLSX with one text per row. Other columns
132
  (IDs, conditions, demographics) are fine; they pass through untouched into the
133
  results file.</li>
134
- <li><b>Pick your construct</b> - search the library (94 scales from the lab's
135
- collection) or click "+ Custom construct" and paste or upload your own items.</li>
 
 
136
  <li><b>Run.</b> Read the warnings panel first (it tells you if something about your
137
  data is off), then check the top/bottom scoring texts - if those don't make sense
138
  for your construct, trust that instinct and report it.</li>
@@ -235,6 +237,26 @@ are deleted after analysis. Upload
235
  notice (expected for the whole imported library for now).</li>
236
  </ol>
237
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  <h3>Custom construct, typed</h3>
239
  <ol>
240
  <li>"+ Custom construct" &gt; name it, paste items one per line.</li>
@@ -277,10 +299,13 @@ pages don't update.</p>
277
  <h2 id="results">5. Results and reproducibility</h2>
278
  <ol>
279
  <li>Run <a href="/samples/moral_foundations_demo.csv" download>moral_foundations_demo.csv</a>
280
- against two different MFQ-2 foundations: top texts change per foundation; the 6
 
281
  neutral rows sink to the bottom.</li>
282
- <li>Results page: histogram, mean/SD/min/max, per-item loadings, top/bottom texts.</li>
283
- <li>Downloads: results CSV (input columns + sim_item_N + ccr_score), metadata JSON
 
 
284
  (model revision, construct snapshot + item hash, language block, environment pins),
285
  reproduction script + requirements file.</li>
286
  <li>Reproduction check: both downloads carry your run's id, e.g.
 
131
  <li><b>Upload your corpus</b> - any CSV/XLSX with one text per row. Other columns
132
  (IDs, conditions, demographics) are fine; they pass through untouched into the
133
  results file.</li>
134
+ <li><b>Pick your construct(s)</b> - search the library (94 scales from the lab's
135
+ collection) or click "+ Custom construct" and paste or upload your own items.
136
+ Pick several (up to 10) to score them together in a single run and see how
137
+ they correlate in your texts.</li>
138
  <li><b>Run.</b> Read the warnings panel first (it tells you if something about your
139
  data is off), then check the top/bottom scoring texts - if those don't make sense
140
  for your construct, trust that instinct and report it.</li>
 
237
  notice (expected for the whole imported library for now).</li>
238
  </ol>
239
 
240
+ <h3>Multi-construct runs (new)</h3>
241
+ <ol>
242
+ <li>Pick a construct, then open the picker again and pick a second - selected ones
243
+ show a ✓ (clicking again removes). Each selection becomes a collapsible block
244
+ with its items and a "remove" link. Up to 10 constructs per run.</li>
245
+ <li>The run button reads "Run CCR analysis (2 constructs)". All constructs are
246
+ scored on <b>one pass</b> over the corpus, so two constructs take about as long
247
+ as one.</li>
248
+ <li>Results open with a <b>"Construct interrelations"</b> card - the Pearson
249
+ correlation between per-text scores, i.e. how the constructs co-occur in YOUR
250
+ texts - plus a collapsible per-construct section (histogram, item loadings,
251
+ top/bottom texts). Try
252
+ <a href="/samples/moral_foundations_demo.csv" download>moral_foundations_demo.csv</a>
253
+ with two MFQ-2 foundations.</li>
254
+ <li>The export CSV keeps one row per text with per-construct prefixed columns
255
+ (<code>mfq_care_sim_item_1</code> … <code>mfq_care_ccr_score</code>, …), so the
256
+ correlations are fully recomputable; metadata and the reproduction script cover
257
+ every construct in the run. Single-construct runs are unchanged.</li>
258
+ </ol>
259
+
260
  <h3>Custom construct, typed</h3>
261
  <ol>
262
  <li>"+ Custom construct" &gt; name it, paste items one per line.</li>
 
299
  <h2 id="results">5. Results and reproducibility</h2>
300
  <ol>
301
  <li>Run <a href="/samples/moral_foundations_demo.csv" download>moral_foundations_demo.csv</a>
302
+ against two different MFQ-2 foundations (separately, or both in one
303
+ multi-construct run): top texts change per foundation; the 6
304
  neutral rows sink to the bottom.</li>
305
+ <li>Results page: histogram, mean/SD/min/max, per-item loadings, top/bottom texts;
306
+ multi-construct runs add the correlation matrix up top.</li>
307
+ <li>Downloads: results CSV (input columns + sim_item_N + ccr_score; multi-construct
308
+ runs prefix these per construct), metadata JSON
309
  (model revision, construct snapshot + item hash, language block, environment pins),
310
  reproduction script + requirements file.</li>
311
  <li>Reproduction check: both downloads carry your run's id, e.g.
backend/app/product.html CHANGED
@@ -323,6 +323,10 @@ plus arithmetic — no LLM, no prompting, no randomness.</figcaption>
323
  <li><b>Re-running a new construct on the same corpus is near-instant</b> — the
324
  text embeddings are cached and reused (identical every time), so only the
325
  cheap similarity step repeats.</li>
 
 
 
 
326
  <li><b>Warnings never silently "fix" your data</b> — the platform surfaces issues
327
  (wrong language, truncation, duplicates) and lets you decide.</li>
328
  <li><b>Admin power is layered, not global</b> — see <a href="#access">§1</a>:
 
323
  <li><b>Re-running a new construct on the same corpus is near-instant</b> — the
324
  text embeddings are cached and reused (identical every time), so only the
325
  cheap similarity step repeats.</li>
326
+ <li><b>Multi-construct runs score everything on one pass</b> — select up to 10
327
+ constructs and the corpus is embedded once, each construct scored against the
328
+ same embeddings; the results include a correlation matrix of how the
329
+ constructs interrelate across your texts.</li>
330
  <li><b>Warnings never silently "fix" your data</b> — the platform surfaces issues
331
  (wrong language, truncation, duplicates) and lets you decide.</li>
332
  <li><b>Admin power is layered, not global</b> — see <a href="#access">§1</a>: