Repository navigation
en INDEX
Rael Corrales edited this page Nov 17, 2026
·
1 revision
This document is the Comprehensive Catalog of all technical articles, architecture deep dives, getting started guides, and production runbooks available in the English wiki.
- 1. Index by Modules and Folders
- 2. Code Component Mapping (
common_framework.*) - 3. Engineering Persona Mapping
- 4. Complete Document Catalog
- 01. System Philosophy, Architecture, and Trade-offs: Zero-Bloat design principles, Ports & Adapters, request lifecycle, and architectural decision matrix.
- 02. Design Patterns in RAG and Agent Systems: Factory, Strategy, Circuit Breaker, Proxy Caching, Interceptor (HITL), and State Machine patterns.
- 03. Data Anatomy and Lifecycle: Dual indexing (FTS5 + Dense Vectors), GEMV BLAS acceleration, SQLite WAL concurrency, and online query lifecycle.
- 04. Multi-Agent Systems and Orchestration Topologies: Comparing ReAct vs Supervisor vs StateGraph and mitigating agent failure modes.
-
01. Quickstart: Your First RAG in 15 Lines: Functional end-to-end RAG pipeline using embedded
SQLiteVectorStoreandRAGEngine. -
02. Installation, Configuration, and Environments: Optional feature bundles (
[api],[mcp],[rag],[all]),.envtemplate, and settings precedence. -
03. CLI Guide and Playground (
ai-rag): Diagnostics viadoctor, live prototyping withrepl, microservice scaffolding withinit, andrag-mcp. - 04. Key Concepts, Glossary, and Mental Models: Tokens, Embeddings, BM25, Cosine Similarity, RRF, Cross-Encoders, and the RAG Triad.
-
01. LLM Engine: Resilience, Failover, and Semantic Caching: Multi-provider support,
FallbackLLMClient, Pydantic Structured Outputs, andSemanticCache. - 02. Advanced RAG: Hybrid Search, RRF, and Two-Stage Reranking: Okapi BM25 + Dense Vectors fused via RRF, HyDE, MultiQuery, and Cross-Encoders.
-
03. Autonomous Agents, Supervisors, and StateGraph: ReAct reasoning loops,
AgentBus, cyclic state machines, and Human-in-the-Loop hooks. -
04. Model Context Protocol (MCP 2.x): MCP servers and clients over
stdioandSSE, dynamic tool mounting, andas_tool(). -
05. Security, Guardrails, and Sandboxing: Ephemeral
CodeInterpretersandbox, PII sanitization, Prompt Injection Guard, and SSRF mitigation. -
06. API Gateway with FastAPI and RAG Routes: Production HTTP microservice with
create_app,/query,/retrieve,/ingest, SSE streaming, and MCP auth. -
07. Conversational and Vector Memory: Short-term buffer preserving system prompts and long-term episodic
VectorMemory. - 08. Collections, Namespaces, and Multi-Tenancy: Logical vector partitioning with namespaces vs physical multi-database isolation.
- 01. Practical and Advanced Recipes: Self-healing code loops, FinOps cost-shield routing, and < 100MB Docker containers.
-
02. Testing, Mocking, and CI/CD ($0 APIs): Offline unit tests with
MockEmbeddingProvider, pytest fixtures, and GitHub Actions. - 03. Migration Guide from LangChain and LlamaIndex: Direct class mapping, removing bloatware, and side-by-side code comparisons.
-
01. Staff Engineer Guide: SLAs, Observability, FinOps, and Production: Latency budgets (p95), W3C
traceparent, Prometheus/metrics, RAG Triad Evals, and Checklist. - 02. Production Troubleshooting and Incident Runbook: Fast triage trees for RateLimits, 502 Bad Gateway, SQLite database locks, and SSRF rejections.
- API Cheat Sheet: Quick Reference Guide: Compact signatures, parameters, and snippets for the entire framework.
| 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 |
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"]
| # | 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
- Overview
- 01. Architecture & Concepts
- 02. Getting Started
- 03. Implementation & Components
- 04. Patterns & Recipes
- 05. Staff Guide & Production
- General
- 01. Arquitectura y Conceptos
- 02. Primeros Pasos
- 03. Implementación y Componentes
- 04. Patrones y Recetas
- 05. Guía Staff y Producción