# πŸ₯ Semantic Clinic Index β€” Your ER Triage Desk for Broken Pipelines
πŸŒ™ 3AM: a dev collapsed mid-debug… πŸš‘ Welcome to the WFGY Emergency Room --- πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯ ## πŸš‘ WFGY Emergency Room πŸ‘¨β€βš•οΈ **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. πŸ’‘ Always free. If it helps, a ⭐ star keeps the ER running. 🌐 Multilingual β€” start in any language. πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯πŸŸ₯ ---
**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 + \” | | **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 | --- ### 🧭 Explore More | Module | Description | Link | |-----------------------|----------------------------------------------------------|----------| | WFGY Core | WFGY 2.0 engine is live: full symbolic reasoning architecture and math stack | [View β†’](https://github.com/onestardao/WFGY/tree/main/core/README.md) | | Problem Map 1.0 | Initial 16-mode diagnostic and symbolic fix framework | [View β†’](https://github.com/onestardao/WFGY/tree/main/ProblemMap/README.md) | | Problem Map 2.0 | RAG-focused failure tree, modular fixes, and pipelines | [View β†’](https://github.com/onestardao/WFGY/blob/main/ProblemMap/rag-architecture-and-recovery.md) | | Semantic Clinic Index | Expanded failure catalog: prompt injection, memory bugs, logic drift | [View β†’](https://github.com/onestardao/WFGY/blob/main/ProblemMap/SemanticClinicIndex.md) | | Semantic Blueprint | Layer-based symbolic reasoning & semantic modulations | [View β†’](https://github.com/onestardao/WFGY/tree/main/SemanticBlueprint/README.md) | | Benchmark vs GPT-5 | Stress test GPT-5 with full WFGY reasoning suite | [View β†’](https://github.com/onestardao/WFGY/tree/main/benchmarks/benchmark-vs-gpt5/README.md) | | πŸ§™β€β™‚οΈ Starter Village 🏑 | New here? Lost in symbols? Click here and let the wizard guide you through | [Start β†’](https://github.com/onestardao/WFGY/blob/main/StarterVillage/README.md) | --- > πŸ‘‘ **Early Stargazers: [See the Hall of Fame](https://github.com/onestardao/WFGY/tree/main/stargazers)** β€” > Engineers, hackers, and open source builders who supported WFGY from day one. > GitHub stars ⭐ [WFGY Engine 2.0](https://github.com/onestardao/WFGY/blob/main/core/README.md) is already unlocked. ⭐ Star the repo to help others discover it and unlock more on the [Unlock Board](https://github.com/onestardao/WFGY/blob/main/STAR_UNLOCKS.md).
[![WFGY Main](https://img.shields.io/badge/WFGY-Main-red?style=flat-square)](https://github.com/onestardao/WFGY)   [![TXT OS](https://img.shields.io/badge/TXT%20OS-Reasoning%20OS-orange?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS)   [![Blah](https://img.shields.io/badge/Blah-Semantic%20Embed-yellow?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlahBlahBlah)   [![Blot](https://img.shields.io/badge/Blot-Persona%20Core-green?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlotBlotBlot)   [![Bloc](https://img.shields.io/badge/Bloc-Reasoning%20Compiler-blue?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlocBlocBloc)   [![Blur](https://img.shields.io/badge/Blur-Text2Image%20Engine-navy?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlurBlurBlur)   [![Blow](https://img.shields.io/badge/Blow-Game%20Logic-purple?style=flat-square)](https://github.com/onestardao/WFGY/tree/main/OS/BlowBlowBlow)