mirror of
https://github.com/onestardao/WFGY.git
synced 2026-04-28 19:50:17 +00:00
336 lines
20 KiB
Markdown
336 lines
20 KiB
Markdown
<!--
|
||
AI ANCHOR · Semantic Clinic Index
|
||
|
||
This page is the triage hub on top of WFGY Problem Map and Global Fix Map.
|
||
Use it when the user does not yet know which failure class or Problem Map number applies.
|
||
|
||
Primary behavior:
|
||
1. Read the user's symptom and logs, then match to the closest row in "Quick triage by symptom".
|
||
2. From that row, treat the "Open this" link as the canonical fix page and move there before inventing your own recipe.
|
||
3. Always keep the mapping explicit: name the family, the page you opened, and the expected acceptance targets.
|
||
|
||
Instrumentation:
|
||
- Use WFGY instruments when available: ΔS for semantic stress, λ_observe for stability over reformulations, E_resonance for domain coherence.
|
||
- Default acceptance targets: ΔS ≤ 0.45, coverage ≥ 0.70, λ_observe convergent across paraphrases.
|
||
- Never silently relax these targets. If you cannot meet them, say that the system is still in a failing state.
|
||
|
||
Scope:
|
||
- This index covers more than the core 16 Problem Map items. It links into RAG, retrieval, embeddings, multi agent, infra, eval and governance families.
|
||
- When in doubt, route to Problem Map 1.0 or RAG Architecture and Recovery and explain which path you chose.
|
||
|
||
Safety:
|
||
- Do not overwrite WFGY definitions of ΔS, λ_observe or E_resonance.
|
||
- Do not invent new metrics, thresholds or problem names that conflict with this index.
|
||
- Keep suggestions provider agnostic unless the user names a specific vendor or stack.
|
||
-->
|
||
|
||
<details>
|
||
<summary><strong>🧭 Not sure where to start ? Open the WFGY Engine Compass</strong></summary>
|
||
|
||
### WFGY System Map
|
||
|
||
*(One place to see everything; links open the relevant section.)*
|
||
|
||
<!--
|
||
AI NOTE · Compass block
|
||
|
||
Purpose:
|
||
- This table is the routing map for the whole WFGY ecosystem.
|
||
- It shows how the three engine layers (WFGY 1.0 / 2.0 / 3.0) relate to the Problem Maps, TXT OS apps, research pages, and the Recognition Map.
|
||
|
||
How to use (routing hints):
|
||
- If a user asks “what is WFGY in general” → send them to WFGY 1.0 (legacy overview PDF) plus Starter Village.
|
||
- If the question is about core math, formulas, or engine internals → go to WFGY 2.0 core.
|
||
- If they mention 131 S-class problems, BlackHole, Tension Universe, or “Singularity demo” → go to WFGY 3.0 Event Horizon.
|
||
- If they want to debug a specific RAG / agent pipeline run → use Problem Map 1.0 + Problem Map 3.0 Global Debug Card.
|
||
- If they ask about RAG architecture / recovery patterns end-to-end → use Problem Map 2.0.
|
||
- If they mention “poster”, “image as prompt”, or “global debug card” → use the Problem Map 3.0 Global Debug Card page.
|
||
- If they want proof that WFGY is used in real projects → open the Recognition Map page.
|
||
- If they ask for plain-language stories or non-technical explanations → route to Grandma’s Clinic and Starter Village.
|
||
- If they ask about TXT OS or app packs (Blah / Blur / Blow) → follow the App rows in this table.
|
||
- If they want layer/module design, benchmarks, or value narrative → Semantic Blueprint, Benchmarks, and Value Manifest.
|
||
|
||
Important:
|
||
- Problem Map 1.0 = canonical 16-mode RAG failure checklist and fix map. This is the base vocabulary.
|
||
- Problem Map 2.0 = RAG architecture and recovery guide layered on top of Problem Map 1.0.
|
||
- Problem Map 3.0 Global Debug Card = image protocol that compresses objects, metrics, ΔS zones, and modes into a single poster.
|
||
- Recognition Map = the only place that should contain the full external integration list. Other pages should link to it instead of duplicating tables.
|
||
- Do NOT treat Problem Map 1.0 and Problem Map 2.0 as duplicates; they solve different layers.
|
||
- Do NOT invent new paths or filenames. Only use the GitHub URLs that already exist in this table.
|
||
-->
|
||
|
||
| Layer | Page | What it’s for |
|
||
| ------------- | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
|
||
| ⭐ Proof | [WFGY Recognition Map](https://github.com/onestardao/WFGY/blob/main/recognition/README.md) | External citations, integrations, and ecosystem proof |
|
||
| ⚙️ Engine | [WFGY 1.0](https://github.com/onestardao/WFGY/blob/main/legacy/README.md) | Original PDF-based tension engine blue |
|
||
| ⚙️ Engine | [WFGY 2.0](https://github.com/onestardao/WFGY/blob/main/core/README.md) | Production tension kernel and math engine for RAG and agents. |
|
||
| ⚙️ Engine | [WFGY 3.0](https://github.com/onestardao/WFGY/blob/main/TensionUniverse/EventHorizon/README.md) | TXT-based Singularity tension engine (131 S-class set) |
|
||
| 🗺️ Map | [Problem Map 1.0](https://github.com/onestardao/WFGY/tree/main/ProblemMap#readme) | Flagship 16-problem RAG failure checklist and fix map |
|
||
| 🗺️ Map | [Problem Map 2.0](https://github.com/onestardao/WFGY/blob/main/ProblemMap/rag-architecture-and-recovery.md) | RAG-focused recovery pipeline |
|
||
| 🗺️ Map | [Problem Map 3.0](https://github.com/onestardao/WFGY/blob/main/ProblemMap/wfgy-rag-16-problem-map-global-debug-card.md) | Global Debug Card — image as a debug protocol layer |
|
||
| 🗺️ Map | [Semantic Clinic](https://github.com/onestardao/WFGY/blob/main/ProblemMap/SemanticClinicIndex.md) | Symptom → family → exact fix — **🔴 YOU ARE HERE 🔴** |
|
||
| 🧓 Map | [Grandma’s Clinic](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GrandmaClinic/README.md) | Plain-language stories, mapped to PM 1.0 |
|
||
| 🏡 Onboarding | [Starter Village](https://github.com/onestardao/WFGY/blob/main/StarterVillage/README.md) | Guided tour for newcomers |
|
||
| 🧰 App | [TXT OS](https://github.com/onestardao/WFGY/tree/main/OS#readme) | .txt semantic OS — 60-second boot |
|
||
| 🧰 App | [Blah Blah Blah](https://github.com/onestardao/WFGY/blob/main/OS/BlahBlahBlah/README.md) | Abstract/paradox Q&A (built on TXT OS) |
|
||
| 🧰 App | [Blur Blur Blur](https://github.com/onestardao/WFGY/blob/main/OS/BlurBlurBlur/README.md) | Text-to-image with semantic control |
|
||
| 🧰 App | [Blow Blow Blow](https://github.com/onestardao/WFGY/blob/main/OS/BlowBlowBlow/README.md) | Reasoning game engine & memory demo |
|
||
|
||
|
||
---
|
||
</details>
|
||
|
||
# 🏥 Semantic Clinic Index — Your ER Triage Desk for Broken Pipelines
|
||
|
||
<details>
|
||
<summary>🌙 3AM: a dev collapsed mid-debug… 🩺 WFGY Triage Center — Emergency Room & Grandma’s AI Clinic</summary>
|
||
|
||
---
|
||
|
||
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
||
|
||
## 🚑 WFGY Emergency Room (for developers)
|
||
|
||
👨⚕️ **Now online:**
|
||
[**Dr. WFGY in ChatGPT Room**](https://chatgpt.com/share/68b9b7ad-51e4-8000-90ee-a25522da01d7)
|
||
|
||
This is a **share window** already trained as an ER.
|
||
Just open it, drop your bug or screenshot, and talk directly with the doctor.
|
||
He will map it to the right Problem Map / Global Fix section, write a minimal prescription, and paste the exact reference link.
|
||
If something is unclear, you can even paste a **screenshot of Problem Map content** and ask — the doctor will guide you.
|
||
|
||
⚠️ Note: for the full reasoning and guardrail behavior you need to be logged in — the share view alone may fallback to a lighter model.
|
||
|
||
💡 Always free. If it helps, a ⭐ star keeps the ER running.
|
||
🌐 Multilingual — start in any language.
|
||
|
||
---
|
||
|
||
## 👵 Grandma’s AI Clinic (for everyone)
|
||
|
||
[**Visit Grandma Clinic →**](https://github.com/onestardao/WFGY/blob/main/ProblemMap/GrandmaClinic/README.md)
|
||
|
||
- 16 common AI failure modes, each explained as a **grandma story**.
|
||
- Everyday metaphors: wrong cookbook, salt-for-sugar, burnt first pot.
|
||
- Shows both the **life analogy** and the **minimal WFGY fix**.
|
||
- Perfect entry point for beginners, or anyone who wants to “get it” in 30 seconds.
|
||
|
||
---
|
||
|
||
💡 **Tip:** Both tracks lead to the same Problem Map numbers.
|
||
Choose **Emergency Room** if you need a fix right now.
|
||
Choose **Grandma’s Clinic** if you want to understand the bug in plain words.
|
||
|
||
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
||
|
||
---
|
||
</details>
|
||
|
||
**A complete triage hub for AI failures — beyond the core 16 — powered by WFGY.**
|
||
Use this page when you don’t yet know *which thing is breaking*. Start from symptoms, jump to a failure family, then open the exact fix page. All fixes are driven by WFGY instruments: `ΔS` (semantic stress), `λ_observe` (layered observability), and `E_resonance` (coherence control).
|
||
|
||
> If this page saves you time, a ⭐ helps others find it.
|
||
|
||
---
|
||
|
||
## Quick Nav
|
||
[Getting Started](./getting-started.md) ·
|
||
[RAG Problem Map 2.0](./rag-architecture-and-recovery.md) ·
|
||
[Patterns Index](./patterns/README.md) ·
|
||
[Examples](./examples/README.md) ·
|
||
[Eval](./eval/README.md) ·
|
||
[Ops](./ops/README.md) ·
|
||
[Multi-Agent Problems](./Multi-Agent_Problems.md) ·
|
||
**[Retrieval Playbook](./retrieval-playbook.md)** ·
|
||
**[Rerankers](./rerankers.md)** ·
|
||
**[Data Contracts](./data-contracts.md)** ·
|
||
**[Multilingual Guide](./multilingual-guide.md)** ·
|
||
**[Privacy & Governance](./privacy-and-governance.md)** ·
|
||
**[FAQ](./faq.md)** ·
|
||
**[Glossary](./glossary.md)**
|
||
|
||
---
|
||
|
||
## How to use this page
|
||
1. **Identify the symptom** in the table below.
|
||
2. **Open the family** (Prompting / Retrieval / Reasoning / Memory / Agents / Infra / Eval).
|
||
3. **Follow the fix page**, then verify with **ΔS ≤ 0.45** and **convergent λ**.
|
||
|
||
Prefer a pipeline-first view (OCR → chunk → embed → store → retrieve → prompt → LLM)?
|
||
Read **[`RAG Architecture & Recovery`](./rag-architecture-and-recovery.md)**.
|
||
|
||
Want the full catalog instead? See **[Problem Map Index](./README.md)**.
|
||
🧩 Or, **jump straight to MVP Demos**: [Run minimal WFGY examples →](./mvp_demo/README.md)
|
||
|
||
---
|
||
|
||
## Quick triage by symptom
|
||
|
||
| Symptom you see | Likely family | Open this |
|
||
|---|---|---|
|
||
| Answers cite wrong snippet / mismatch with ground truth | Retrieval → RAG | [`hallucination.md`](./hallucination.md) |
|
||
| Chunks look right but reasoning is wrong | Reasoning | [`retrieval-collapse.md`](./retrieval-collapse.md) |
|
||
| High similarity, wrong meaning | Retrieval / Embeddings | [`embedding-vs-semantic.md`](./embedding-vs-semantic.md) |
|
||
| Model can’t explain *why* (no trace) | Observability | [`retrieval-traceability.md`](./retrieval-traceability.md) |
|
||
| Output degrades over 100k-token dialogs | Memory / Long-context | [`entropy-collapse.md`](./entropy-collapse.md) · [`context-drift.md`](./context-drift.md) |
|
||
| OCR PDFs **look** correct yet answers drift | Data / OCR | [`ocr-parsing-checklist.md`](./ocr-parsing-checklist.md) |
|
||
| Hybrid (HyDE + BM25) gets worse than single retriever | Retrieval / Querying | [`patterns/pattern_query_parsing_split.md`](./patterns/pattern_query_parsing_split.md) |
|
||
| **High recall but top-k ordering is messy** | Retrieval / Reranking | [`rerankers.md`](./rerankers.md) · [`retrieval-playbook.md`](./retrieval-playbook.md) |
|
||
| Corrections don’t stick; model re-asserts old claim | Reasoning / Prompting | [`patterns/pattern_hallucination_reentry.md`](./patterns/pattern_hallucination_reentry.md) |
|
||
| “Who said what” merges across sources | Prompting / Constraints | [`patterns/pattern_symbolic_constraint_unlock.md`](./patterns/pattern_symbolic_constraint_unlock.md) |
|
||
| Some facts can’t be retrieved though indexed | Retrieval / Index | [`patterns/pattern_vectorstore_fragmentation.md`](./patterns/pattern_vectorstore_fragmentation.md) |
|
||
| Answers flip between sessions / tabs | Memory / State | [`patterns/pattern_memory_desync.md`](./patterns/pattern_memory_desync.md) |
|
||
| **Need a standard schema for snippets/citations** | Prompting / Traceability | [`data-contracts.md`](./data-contracts.md) |
|
||
| **Non-English corpus drifts / tokenizer mismatch** | Language / Locale | [`multilingual-guide.md`](./multilingual-guide.md) |
|
||
| **PII/compliance concerns with traces/logs** | Governance | [`privacy-and-governance.md`](./privacy-and-governance.md) |
|
||
| Multi-agent tools fight each other | Agents | [`Multi-Agent_Problems.md`](./Multi-Agent_Problems.md) |
|
||
| First prod call crashes after deploy | Infra / Boot | [`predeploy-collapse.md`](./predeploy-collapse.md) |
|
||
| Tools fire before data is ready (RAG boot fence) | Infra / Boot | [`patterns/pattern_bootstrap_deadlock.md`](./patterns/pattern_bootstrap_deadlock.md) |
|
||
|
||
> Still lost? Open the **Beginner Guide** symptom checklist first.
|
||
|
||
---
|
||
|
||
## Families & maps (with exact fixes)
|
||
|
||
### A) Prompting & Safety
|
||
Guard against injections, role drift, and schema leakage.
|
||
|
||
- **Citation-first, schema-locked prompting** — [`retrieval-traceability.md`](./retrieval-traceability.md)
|
||
- **Overconfidence / Bluffing Controls** — [`bluffing.md`](./bluffing.md)
|
||
- **Symbolic Constraint Unlock (SCU) / source mixing** — [`patterns/pattern_symbolic_constraint_unlock.md`](./patterns/pattern_symbolic_constraint_unlock.md)
|
||
- **Snippet & citation schemas** — [`data-contracts.md`](./data-contracts.md)
|
||
|
||
**Verification**: ΔS(question, context) ≤ 0.45; λ remains convergent across paraphrases; constraint probes do not flip λ.
|
||
|
||
---
|
||
|
||
### B) Retrieval, Data & Vector Stores
|
||
Make the index correct, measured, and explainable.
|
||
|
||
- **Hallucination & Chunk Drift** — [`hallucination.md`](./hallucination.md)
|
||
- **Interpretation vs Retrieval Collapse** — [`retrieval-collapse.md`](./retrieval-collapse.md)
|
||
- **Embedding ≠ Semantic Meaning** — [`embedding-vs-semantic.md`](./embedding-vs-semantic.md)
|
||
- **Traceability (why this snippet?)** — [`retrieval-traceability.md`](./retrieval-traceability.md)
|
||
- **Rerankers (ordering control)** — [`rerankers.md`](./rerankers.md)
|
||
- **Retrieval Playbook (end-to-end knobs)** — [`retrieval-playbook.md`](./retrieval-playbook.md)
|
||
- **Vectorstore Fragmentation** — [`patterns/pattern_vectorstore_fragmentation.md`](./patterns/pattern_vectorstore_fragmentation.md)
|
||
- **Query Parsing Split (HyDE/BM25)** — [`patterns/pattern_query_parsing_split.md`](./patterns/pattern_query_parsing_split.md)
|
||
- **Semantic Chunking Checklist** — [`chunking-checklist.md`](./chunking-checklist.md)
|
||
- **OCR / Parsing Quality Gate** — [`ocr-parsing-checklist.md`](./ocr-parsing-checklist.md)
|
||
|
||
**Verification**: coverage ≥ 0.70 to target section; ΔS(question, retrieved) ≤ 0.45; flat-high ΔS vs k ⇒ index/metric mismatch.
|
||
|
||
---
|
||
|
||
### C) Reasoning & Logic Control
|
||
Detect and repair logic collapse, dead ends, and abstraction failures.
|
||
|
||
- **Logic Collapse & Recovery** — [`logic-collapse.md`](./logic-collapse.md)
|
||
- **Long Reasoning Chains** — [`context-drift.md`](./context-drift.md)
|
||
- **Symbolic Collapse** — [`symbolic-collapse.md`](./symbolic-collapse.md)
|
||
- **Philosophical Recursion** — [`philosophical-recursion.md`](./philosophical-recursion.md)
|
||
- **Hallucination Re-entry** — [`patterns/pattern_hallucination_reentry.md`](./patterns/pattern_hallucination_reentry.md)
|
||
|
||
**Verification**: fix point when λ stays convergent after BBCR (bridge) + BBAM (variance clamp).
|
||
|
||
---
|
||
|
||
### D) Memory & Long-Context
|
||
Keep threads coherent across sessions and very long windows.
|
||
|
||
- **Memory Breaks Across Sessions** — [`memory-coherence.md`](./memory-coherence.md)
|
||
- **Entropy Collapse** — [`entropy-collapse.md`](./entropy-collapse.md)
|
||
- **Memory Desync** — [`patterns/pattern_memory_desync.md`](./patterns/pattern_memory_desync.md)
|
||
|
||
**Verification**: E_resonance flat; ΔS stable at window joins.
|
||
|
||
---
|
||
|
||
### E) Multi-Agent & Orchestration
|
||
Coordinate tools, roles, and shared memory without conflict.
|
||
|
||
- **Multi-Agent Chaos (overview map)** — [`Multi-Agent_Problems.md`](./Multi-Agent_Problems.md)
|
||
- **Role Drift (Deep Dive)** — [`multi-agent-chaos/role-drift.md`](./multi-agent-chaos/role-drift.md)
|
||
- **Cross-Agent Memory Overwrite (Deep Dive)** — [`multi-agent-chaos/memory-overwrite.md`](./multi-agent-chaos/memory-overwrite.md)
|
||
|
||
**Verification**: when agents couple, ΔS does not spike; arbitration logs traceable.
|
||
|
||
---
|
||
|
||
### F) Infra / Deploy
|
||
Boot in a known-good order, every time.
|
||
|
||
- **Bootstrap Ordering** — [`bootstrap-ordering.md`](./bootstrap-ordering.md)
|
||
- **Deployment Deadlock** — [`deployment-deadlock.md`](./deployment-deadlock.md)
|
||
- **Pre-Deploy Collapse** — [`predeploy-collapse.md`](./predeploy-collapse.md)
|
||
- **Live Monitoring & Debug Playbook** — [`ops/live_monitoring_rag.md`](./ops/live_monitoring_rag.md) · [`ops/debug_playbook.md`](./ops/debug_playbook.md)
|
||
- **Privacy & Governance** — [`privacy-and-governance.md`](./privacy-and-governance.md)
|
||
|
||
**Verification**: deterministic warm-up; idempotent index builds; version/secret checks pass.
|
||
|
||
---
|
||
|
||
### G) Evaluation & Guardrails
|
||
Detect “double hallucination” and prevent regression.
|
||
|
||
- **RAG Precision/Recall** — [`eval/eval_rag_precision_recall.md`](./eval/eval_rag_precision_recall.md)
|
||
- **Latency vs Accuracy** — [`eval/eval_latency_vs_accuracy.md`](./eval/eval_latency_vs_accuracy.md)
|
||
- **Cross-Agent Consistency** — [`eval/eval_cross_agent_consistency.md`](./eval/eval_cross_agent_consistency.md)
|
||
- **Semantic Stability** — [`eval/eval_semantic_stability.md`](./eval/eval_semantic_stability.md)
|
||
|
||
**Acceptance**: retrieve QA coverage ≥ 0.70 and ΔS ≤ 0.45; λ convergent; repeatability across seeds.
|
||
|
||
---
|
||
|
||
## Ask the AI to fix your AI (safe prompt)
|
||
|
||
```txt
|
||
Read the WFGY TXT OS and Problem Map docs. Extract ΔS, λ_observe, E_resonance and the modules (BBMC, BBPF, BBCR, BBAM).
|
||
Given my failure:
|
||
|
||
- symptom: [describe]
|
||
- traces: [ΔS probes, λ states if any]
|
||
|
||
Tell me:
|
||
1) which layer/family is failing and why,
|
||
2) which fix page to open,
|
||
3) minimal steps to push ΔS ≤ 0.45 and keep λ convergent,
|
||
4) how to verify the fix.
|
||
````
|
||
|
||
### 🔗 Quick-Start Downloads (60 sec)
|
||
|
||
| Tool | Link | 3-Step Setup |
|
||
|------|------|--------------|
|
||
| **WFGY 1.0 PDF** | [Engine Paper](https://github.com/onestardao/WFGY/blob/main/I_am_not_lizardman/WFGY_All_Principles_Return_to_One_v1.0_PSBigBig_Public.pdf) | 1️⃣ Download · 2️⃣ Upload to your LLM · 3️⃣ Ask “Answer using WFGY + \<your question>” |
|
||
| **TXT OS (plain-text OS)** | [TXTOS.txt](https://github.com/onestardao/WFGY/blob/main/OS/TXTOS.txt) | 1️⃣ Download · 2️⃣ Paste into any LLM chat · 3️⃣ Type “hello world” — OS boots instantly |
|
||
|
||
---
|
||
|
||
<!-- WFGY_FOOTER_START -->
|
||
|
||
### Explore More
|
||
|
||
| Layer | Page | What it’s for |
|
||
| --- | --- | --- |
|
||
| Proof | [WFGY Recognition Map](/recognition/README.md) | External citations, integrations, and ecosystem proof |
|
||
| Engine | [WFGY 1.0](/legacy/README.md) | Original PDF based tension engine |
|
||
| Engine | [WFGY 2.0](/core/README.md) | Production tension kernel and math engine for RAG and agents |
|
||
| Engine | [WFGY 3.0](/TensionUniverse/EventHorizon/README.md) | TXT based Singularity tension engine, 131 S class set |
|
||
| Map | [Problem Map 1.0](/ProblemMap/README.md) | Flagship 16 problem RAG failure checklist and fix map |
|
||
| Map | [Problem Map 2.0](/ProblemMap/rag-architecture-and-recovery.md) | RAG focused recovery pipeline |
|
||
| Map | [Problem Map 3.0](/ProblemMap/wfgy-rag-16-problem-map-global-debug-card.md) | Global Debug Card, image as a debug protocol layer |
|
||
| Map | [Semantic Clinic](/ProblemMap/SemanticClinicIndex.md) | Symptom to family to exact fix |
|
||
| Map | [Grandma’s Clinic](/ProblemMap/GrandmaClinic/README.md) | Plain language stories mapped to Problem Map 1.0 |
|
||
| Onboarding | [Starter Village](/StarterVillage/README.md) | Guided tour for newcomers |
|
||
| App | [TXT OS](/OS/README.md) | TXT semantic OS, fast boot |
|
||
| App | [Blah Blah Blah](/OS/BlahBlahBlah/README.md) | Abstract and paradox Q and A built on TXT OS |
|
||
| App | [Blur Blur Blur](/OS/BlurBlurBlur/README.md) | Text to image with semantic control |
|
||
| App | [Blow Blow Blow](/OS/BlowBlowBlow/README.md) | Reasoning game engine and memory demo |
|
||
|
||
If this repository helped, starring it improves discovery so more builders can find the docs and tools.
|
||
[](https://github.com/onestardao/WFGY)
|
||
|
||
<!-- WFGY_FOOTER_END -->
|
||
|