Working on bug fixes, enhancements: expect push tonight. #4
Closed
NeurosynLabs
started this conversation in
General
Replies: 2 comments
|
Workflow approved. Current coding. Will provide update to README.md once finished. |
0 replies
|
All files updates for all changes proposed. Testing complete. Pushed to Vercel. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Proposed Architecture & job flow:
Client (Memora): prepares payload (selected messages or whole corpus metadata), creates a summarization job on puter.js, polls/streams status, renders progress, and downloads artifacts when done.
Puter job: does dedupe → chunk → map-summarize → reduce-synthesize → post-process (citations, outline), writes artifacts (markdown + JSON), and exposes:
job_status.json (state, percent, ETA, token counts, costs)
summary.md (human-readable)
summary.json (structured outline, decisions, actions, entities, citations)
Optional annex.jsonl (deduped, stitched transcripts)
Idempotency: job key is (dataset_hash + query + params) so reruns reuse cached results if identical.
B) New UI (index.html)
Puter Auth Panel (Options):
puter API key / endpoint
OpenAI key/model for puter (if the worker calls OpenAI)
Rate-limit caps (requests/min, tokens/min)
Summarize via Puter button in the Search overlay header:
“Summarize (puter.js)” → creates job
“Cancel/Retry” next to it when job exists
Parameters drawer:
Dedupe threshold slider (exact/near-duplicate)
Chunk size (token target)
Max chunks (budget guardrail)
Model selection (per map/reduce stage if desired)
Temperature (0.0–0.4 default)
Cost cap ($ limit, token limit)
PII redaction toggle (emails, phones)
Toxicity filter toggle (drop/flag)
Date filter (from/to), role filter (user/assistant/system)
Priority: relevance-rank by keyword density vs chronological
Job Status Panel (floating dock / modal):
State: queued → running → reducing → post-processing → done / failed
Progress bar (determinate), chunk counts, ETA
Token usage & approximate cost (map / reduce)
Live logs pane (last N lines)
View artifacts buttons: summary.md, summary.json, annex.jsonl
Download buttons (with size estimate)
Saved Jobs tab:
List past jobs (topic, date, params, duration, size)
Re-open artifacts / duplicate with tweaks
Delete job cache
Slice controls (pre-flight filter in overlay):
“Summarize all search hits” (default)
“Only selected threads”
“Date window: last 30/90 days”
“Top N messages by keyword score”
Digest preview:
Render summary.md with a ToC sidebar and back-links to message IDs
“Reveal evidence” in-place (shows the cited messages from annex without leaving the page)
Export:
Download single file: summary.md, summary.json
Optional bundle (summary + annex) as .zip (client-side; not required if you want pure single-file)
Copy to clipboard buttons (markdown and JSON)
Cost & size estimator:
Before running, show estimated chunks/tokens/cost and expected artifact sizes based on a small sample.
C) Worker/job behaviors (we’ll reflect in JS later)
Dedupe: exact hash + near-duplicate (n-gram/Jaccard or cosine with stopword removal)
Chunking: by thread & time, ~2–4k tokens per chunk, hard cap on chunk count
Map prompts:
Return structured sections: Key Points, Decisions, Actions, Entities, Dates, Open Questions
Keep inline citations (message indices) when relevant
Reduce prompts:
Merge overlaps, deconflict contradictions, preserve numbers/dates, output:
Overview
Major Themes
Decisions
Actions (with checklists)
Open Questions
Glossary
Citations index [thread_id@msg_idx]
Post-process:
Build summary.md + summary.json
Optionally generate:
Timeline (ISO date → events)
Entity index (people, orgs, projects)
Topic map (keywords → chunks)
Resilience:
Auto-retry failed chunk calls
Backoff on rate limits
Partial results resume (idempotent job key)
D) Privacy & safety
Client-side PII redaction pre-filter (regex + heuristic)
Content policy guard (drop messages above toxicity threshold if toggled)
Local-only mode (map step client-side, reduce on puter) if needed to limit data sent outward (we can offer both: “Full cloud summarize” vs “Hybrid”)
E) Performance & UX polish
Non-blocking UI; streaming progress
Pause/resume job (puter queue)
Low-RAM mode (send only selected slices not full corpus)
Cancel kills puter task and cleans partial artifacts
Notifications (simple toast; optional desktop notification on complete)
F) Accessibility & mobile
All progress & status live-announced with aria-live
Large tap targets, responsive dialogs
Keyboard shortcuts: / to focus search, S to summarize, Esc to close
G) Dev & ops niceties
Dry-run mode: build chunks & estimates without LLM calls
Trace IDs in logs for debugging
Config export/import (JSON of your params)
Versioned artifact header ($v, job params, dataset hash)
Deliverables in this phase
index.html updated with:
Puter Options panel
Enhanced Search Overlay header (Summarize via Puter, Params drawer, Status dock)
Digest Preview modal
Saved Jobs tab
style.css updated with:
GitHub-dark UX for new controls, modals, progress bars, logs
Responsive/mobile-first sizing and a11y affordances
Workflow, enhancements and features approved. Dev will code, update and Vercel will redeploy.
Cl: 9/1/25
All reactions