Skip to content

en INDEX

Rael Corrales edited this page Nov 17, 2026 · 1 revision

Master Wiki Index (English)

This document is the Comprehensive Catalog of all technical articles, architecture deep dives, getting started guides, and production runbooks available in the English wiki.


Quick Navigation


1. Index by Modules and Folders

01. Architecture and Concepts

  1. 01. System Philosophy, Architecture, and Trade-offs: Zero-Bloat design principles, Ports & Adapters, request lifecycle, and architectural decision matrix.
  2. 02. Design Patterns in RAG and Agent Systems: Factory, Strategy, Circuit Breaker, Proxy Caching, Interceptor (HITL), and State Machine patterns.
  3. 03. Data Anatomy and Lifecycle: Dual indexing (FTS5 + Dense Vectors), GEMV BLAS acceleration, SQLite WAL concurrency, and online query lifecycle.
  4. 04. Multi-Agent Systems and Orchestration Topologies: Comparing ReAct vs Supervisor vs StateGraph and mitigating agent failure modes.

02. Getting Started

  1. 01. Quickstart: Your First RAG in 15 Lines: Functional end-to-end RAG pipeline using embedded SQLiteVectorStore and RAGEngine.
  2. 02. Installation, Configuration, and Environments: Optional feature bundles ([api], [mcp], [rag], [all]), .env template, and settings precedence.
  3. 03. CLI Guide and Playground (ai-rag): Diagnostics via doctor, live prototyping with repl, microservice scaffolding with init, and rag-mcp.
  4. 04. Key Concepts, Glossary, and Mental Models: Tokens, Embeddings, BM25, Cosine Similarity, RRF, Cross-Encoders, and the RAG Triad.

03. Implementation and Components

  1. 01. LLM Engine: Resilience, Failover, and Semantic Caching: Multi-provider support, FallbackLLMClient, Pydantic Structured Outputs, and SemanticCache.
  2. 02. Advanced RAG: Hybrid Search, RRF, and Two-Stage Reranking: Okapi BM25 + Dense Vectors fused via RRF, HyDE, MultiQuery, and Cross-Encoders.
  3. 03. Autonomous Agents, Supervisors, and StateGraph: ReAct reasoning loops, AgentBus, cyclic state machines, and Human-in-the-Loop hooks.
  4. 04. Model Context Protocol (MCP 2.x): MCP servers and clients over stdio and SSE, dynamic tool mounting, and as_tool().
  5. 05. Security, Guardrails, and Sandboxing: Ephemeral CodeInterpreter sandbox, PII sanitization, Prompt Injection Guard, and SSRF mitigation.
  6. 06. API Gateway with FastAPI and RAG Routes: Production HTTP microservice with create_app, /query, /retrieve, /ingest, SSE streaming, and MCP auth.
  7. 07. Conversational and Vector Memory: Short-term buffer preserving system prompts and long-term episodic VectorMemory.
  8. 08. Collections, Namespaces, and Multi-Tenancy: Logical vector partitioning with namespaces vs physical multi-database isolation.

04. Creative Patterns and Recipes

  1. 01. Practical and Advanced Recipes: Self-healing code loops, FinOps cost-shield routing, and < 100MB Docker containers.
  2. 02. Testing, Mocking, and CI/CD ($0 APIs): Offline unit tests with MockEmbeddingProvider, pytest fixtures, and GitHub Actions.
  3. 03. Migration Guide from LangChain and LlamaIndex: Direct class mapping, removing bloatware, and side-by-side code comparisons.

05. Staff Engineer Guide and Production

  1. 01. Staff Engineer Guide: SLAs, Observability, FinOps, and Production: Latency budgets (p95), W3C traceparent, Prometheus /metrics, RAG Triad Evals, and Checklist.
  2. 02. Production Troubleshooting and Incident Runbook: Fast triage trees for RateLimits, 502 Bad Gateway, SQLite database locks, and SSRF rejections.

Quick Reference


2. Code Component Mapping

Framework Module Core Classes and Functions Relevant Wiki Documents
common_framework.core LLMFactory, FallbackLLMClient, SemanticCache, CachedLLMClient, Settings LLM Engine & Cache, Installation
common_framework.rag RAGEngine, Document, SQLiteVectorStore, RecursiveTextSplitter, BM25Index Quickstart, Advanced RAG, Collections
common_framework.agents ReActAgent, AgentSupervisor, AgentBus, StateGraph, VectorMemory Agents & StateGraph, Memory
common_framework.mcp FrameworkMCPServer, FrameworkMCPClient, create_mcp_server, as_tool Model Context Protocol
common_framework.guardrails PromptGuardrail, PIISanitizer, RedactionStrategy, CodeInterpreter Security & Sandboxing
common_framework.api create_app, create_rag_router, mount_mcp_to_fastapi, MCPAuthMiddleware FastAPI Gateway
common_framework.observability TokenCostTracker, global_prometheus_registry, trace_span Staff Guide & FinOps
common_framework.eval RAGTriadEvaluator, HallucinationDetector, RAGTriadScore Staff Guide & Evals
common_framework.cli ai-rag doctor, ai-rag repl, ai-rag init, rag-mcp CLI Guide

3. Engineering Persona Mapping

flowchart TD
    Engineer["Engineer / Architect"] --> Level{"Select Your Role"}

    Level -- "Junior / Getting Started" --> R1["Getting Started Path"]
    Level -- "Mid / Senior Engineer" --> R2["Architecture & Implementation"]
    Level -- "Staff / Principal / Lead" --> R3["Platform, FinOps & Production"]

    R1 --> D1["1. Quickstart in 15 lines<br/>2. Setup and .env<br/>3. CLI Doctor and REPL<br/>4. Glossary of Concepts"]
    R2 --> D2["1. RAG Design Patterns<br/>2. Hybrid Search & RRF<br/>3. Agents & StateGraph<br/>4. FastAPI Gateway<br/>5. Offline Testing ($0 APIs)"]
    R3 --> D3["1. Latency Budgets (p95)<br/>2. OpenTelemetry W3C & Prometheus<br/>3. FinOps TokenCostTracker<br/>4. Multi-Tenant Physical Isolation<br/>5. Production Incident Runbook"]
Loading

4. Complete Document Catalog

# Document Module Recommended Level Brief Summary
0 API Cheat Sheet Root All Levels Compact signatures, parameters, and snippets for all exported symbols.
1 Philosophy & Design 01. Architecture Senior / Staff Zero-Bloat principles, Ports & Adapters, and architectural trade-offs.
2 Design Patterns in RAG 01. Architecture Senior Factory, Strategy, Circuit Breaker, Proxy, and State Machine patterns.
3 Data Anatomy & Lifecycle 01. Architecture Senior / Staff Dual indexing (FTS5 + Dense Vectors), GEMV BLAS, and SQLite WAL mode.
4 Multi-Agent Topologies 01. Architecture Senior / Staff ReAct vs Supervisor vs StateGraph and loop mitigation strategies.
5 Quickstart RAG 02. Getting Started Junior / Mid 15-line RAG pipeline using embedded SQLite storage.
6 Installation & Environments 02. Getting Started Junior / Mid Optional feature bundles, .env template, and configuration precedence.
7 CLI Guide & Playground 02. Getting Started Junior / Mid Commands doctor, interactive repl, init, and rag-mcp.
8 Glossary & Mental Models 02. Getting Started Junior / Mid Tokens, Embeddings, BM25, Cosine, RRF, Cross-Encoders, and RAG Triad.
9 LLM Engine & Cache 03. Components Mid / Senior LLMFactory, FallbackLLMClient, Structured Outputs, and Semantic Cache.
10 Advanced RAG & Reranking 03. Components Mid / Senior Okapi BM25 + Dense Vectors via RRF, HyDE, and Cross-Encoders.
11 Agents & StateGraph 03. Components Mid / Senior ReAct loops, Supervisor-Worker, AgentBus, StateGraph, and HITL hooks.
12 Model Context Protocol 03. Components Mid / Senior MCP 2.x servers and clients (stdio / SSE), as_tool().
13 Security & Sandboxing 03. Components Mid / Senior Isolated subprocess, PII Sanitizer, Prompt Injection Guard, and SSRF.
14 FastAPI Gateway & Routes 03. Components Mid / Senior Production HTTP microservice with create_app, RAG routes, and MCP auth.
15 Conversational Memory 03. Components Mid / Senior Sliding buffer preserving system prompts and long-term VectorMemory.
16 Collections & Multi-Tenancy 03. Components Senior / Staff Logical namespace partitioning vs physical multi-database isolation.
17 Advanced Recipes 04. Patterns Senior / Staff Self-healing pipelines, Cost-Shield FinOps, and Docker < 100MB.
18 Testing & CI/CD 04. Patterns Mid / Senior Deterministic offline unit testing with MockEmbeddingProvider ($0 APIs).
19 Migration from LangChain 04. Patterns Senior Direct class mapping, eliminating bloatware, and code comparisons.
20 Staff Guide & FinOps 05. Production Staff / Principal Latency budgets (p95), OpenTelemetry W3C, Prometheus, RAG Evals.
21 Troubleshooting & Runbook 05. Production Staff / Ops Fast triage tree for RateLimits, 502, SQLite locks, and SSRF.

English Documentation | Documentación en Español


English Documentation (EN)


Documentación en Español (ES)

Clone this wiki locally