LangGraph Translation API - Documentation Card
Type: Documentation
Status: β
Complete
Priority: High
Related Feature: Tibetan Buddhist Text Translation Pipeline
π Summary
Comprehensive documentation created for the LangGraph Translation API - a sophisticated, multi-stage pipeline for translating, analyzing, and standardizing Tibetan Buddhist texts. Built with FastAPI and LangGraph, featuring streaming-first architecture with multi-model support (Anthropic, Google, OpenAI, Dharmamitra).
π Documentation Deliverables
| Document |
Location |
Description |
| Home |
Wiki |
Overview, quick start, navigation |
| Architecture |
Wiki/Architecture |
LangGraph workflow, system diagrams, data flow |
| Concepts & Terminology |
Wiki/Concepts-and-Terminology |
Buddhist terms, UCCA, Gloss, combo-keys |
| API Reference |
Wiki/API-Reference |
All 25+ endpoints, SSE streaming, schemas |
| Model Router |
Wiki/Model-Router |
Multi-provider LLM configuration |
| Workflow System |
Wiki/Workflow-System |
Combo-key based translation workflows |
| Streaming Guide |
Wiki/Streaming-Guide |
SSE patterns, client implementations |
| Installation |
Wiki/Installation |
Setup, Docker, cloud deployment |
| Usage Guide |
Wiki/Usage-Guide |
Examples, tutorials, best practices |
π― Documentation Coverage
Buddhist/Translation Terminology Documented
Technical Concepts Documented
Architecture Documented
API Endpoints Documented
Translation Endpoints
Glossary Endpoints
Standardization Endpoints
UCCA Endpoints
Gloss Endpoints
Workflow Endpoints
Editor Endpoints
Proxy Endpoints (Dharmamitra)
System Endpoints
Pipeline Endpoint
SSE Event Types Documented
Request/Response Schemas Documented
Supported Models Documented
Code Documentation
Frontend Documentation
Usage Examples Provided
π Quick Links
π οΈ Technology Stack Documented
| Component |
Technology |
| Backend |
FastAPI |
| Orchestration |
LangGraph (LangChain) |
| LLM Providers |
Anthropic Claude, Google Gemini, OpenAI GPT, Dharmamitra |
| Streaming |
SSE (sse-starlette) |
| Validation |
Pydantic v2 |
| HTTP Client |
httpx |
| Caching |
In-memory (custom) |
| Frontend |
Vanilla HTML/CSS/JavaScript |
| Deployment |
Docker, Uvicorn, Render.com, Railway, Fly.io |
π Notes
- Documentation excludes all credentials/secrets (security best practice)
- All code examples are copy-paste ready
- Architecture diagrams use ASCII art for portability
- Wiki supports GitHub-flavored Markdown
- Tibetan script examples (ΰ½ΰ½Όΰ½ΰΌΰ½¦ΰΎΰ½ΰΌ) included throughout
- Combo-key system fully documented with validation rules
- Thinking model configuration documented for Gemini
β
Acceptance Criteria - Documentation
| Criteria |
Status |
| LangGraph workflow explained |
β
|
| Multi-stage pipeline documented |
β
|
| All API endpoints documented |
β
|
| SSE streaming patterns explained |
β
|
| Request/response schemas defined |
β
|
| Model router documented |
β
|
| Combo-key system explained |
β
|
| UCCA/Gloss concepts defined |
β
|
| Setup instructions with troubleshooting |
β
|
| Usage examples for all endpoints |
β
|
| Frontend implementation explained |
β
|
| Caching strategy documented |
β
|
| Docker deployment documented |
β
|
| Cloud deployment options |
β
|
| No credentials exposed |
β
|
π Documentation Statistics
| Metric |
Count |
| Wiki pages created |
11 |
| Total lines of documentation |
4,360+ |
| Code examples |
40+ |
| Architecture diagrams |
8+ |
| Buddhist terms defined |
15+ |
| Technical concepts explained |
20+ |
| API endpoints documented |
25+ |
| Supported models documented |
10+ |
π
Timeline
| Date |
Action |
| Dec 15, 2025 |
Documentation created and published to GitHub Wiki |
π Wiki Structure
langraph-api.wiki/
βββ Home.md # Main landing page
βββ Architecture.md # System architecture + LangGraph
βββ Concepts-and-Terminology.md # Buddhist terms, UCCA, Gloss
βββ API-Reference.md # All endpoints documentation
βββ Model-Router.md # Multi-provider LLM configuration
βββ Workflow-System.md # Combo-key workflows
βββ Streaming-Guide.md # SSE patterns and events
βββ Installation.md # Setup and deployment guide
βββ Usage-Guide.md # Examples and tutorials
βββ _Sidebar.md # Navigation menu
βββ _Footer.md # Footer links
π§ Key Features Documented
1. Three-Stage Decoupled Pipeline
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββββββ
β Translation β β β Glossary β β β Standardization β
β Service β β Service β β Service β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββββββ
2. LangGraph Workflow Nodes
initialize β process_batch β (loop) β extract_glossaries_in_parallel β finalize
3. Combo-Key System
combo_key: "source+ucca+gloss+commentaries2"
β Dynamically selects prompt template based on available inputs
4. Multi-Model Router
ββββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββββ
βAnthropic β Google β OpenAI β Dharmamitraβ
β Claude β Gemini β GPT β Mitra β
ββββββββββββ΄βββββββββββ΄βββββββββββ΄βββββββββββββ
5. Streaming Architecture
Client ββPOSTβββΆ FastAPI ββLLMβββΆ Provider
βββSSEββ βββββββββ
Documentation maintained in: GitHub Wiki