Skip to main content
Ragrails is built in layers:

Package layout

Layers

Design principles

  • SDK-first - the CLI and REST API are both built on the SDK. Behavior lives in the SDK and core, not in the interface layers.
  • In-memory SDK - SDK methods accept and return Python objects. The CLI bridges file I/O to the in-memory SDK.
  • Typed results - every SDK method returns a frozen dataclass result with consistent count, item, and error fields.