Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 2 KB

ARCHITECTURE.md

File metadata and controls

30 lines (23 loc) · 2 KB

RAGOps architecture / Kiến trúc / アーキテクチャ

%%{init: {"theme":"base","themeVariables":{"background":"#FFFFFF","fontFamily":"Arial, sans-serif","lineColor":"#667085","primaryTextColor":"#172B4D"}}}%%
flowchart LR
    T["Portable traces<br/>Trace / トレース"]:::yellow
    S["Scenario & policy<br/>Kịch bản / 方針"]:::blue
    C["Dependency-free core<br/>Core offline"]:::purple
    E["Evidence bundle<br/>Bằng chứng / 証拠"]:::pink
    G{"PASS / WARN / BLOCK"}:::green
    T --> C
    S --> C --> E --> G
    classDef yellow fill:#FFF4A3,stroke:#C9A227,stroke-width:2px,color:#172B4D
    classDef blue fill:#D9EAFD,stroke:#4C78A8,stroke-width:2px,color:#172B4D
    classDef purple fill:#E9DDF7,stroke:#8064A2,stroke-width:2px,color:#172B4D
    classDef pink fill:#FFE1E6,stroke:#C96A7B,stroke-width:2px,color:#172B4D
    classDef green fill:#DDF5E3,stroke:#4F9D69,stroke-width:2px,color:#172B4D
Loading

English

src/ragops/ owns portable contracts, deterministic evaluators, slice/distribution analysis, policy decisions, calibration, evidence bundles, adapters, and SQLite governance. src/ragops/api/ and src/ragops/web/ are optional packaged adapters; importing the core never imports FastAPI, Uvicorn, or vendor SDKs. apps/api/main.py is a source compatibility shim. CLI/API/UI and CI renderers consume the same canonical decision evidence.

Tiếng Việt

src/ragops/ quản lý contract portable, evaluator xác định, policy, calibration, evidence bundle, adapter và SQLite governance. API/UI chỉ là adapter đóng gói tùy chọn; import core không import FastAPI/Uvicorn/vendor SDK. CLI/API/UI/CI dùng cùng canonical decision.

日本語

src/ragops/ は portable contract、決定的 evaluator、policy、calibration、evidence bundle、adapter、SQLite governance を担当します。API/UI は任意の packaged adapter で、core import は FastAPI、Uvicorn、vendor SDK を読み込みません。CLI/API/UI/CI は同じ canonical decision を使用します。