You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -65,8 +65,11 @@ The engine follows a standard compiler/interpreter pipeline:
65
65
66
66
## Key Implementation Features
67
67
68
-
### 1. JSON Data Model
69
-
We utilize `nlohmann::json` as the unified data type for all variables. This simplifies type checking and allows easy integration with JSON-based LLM APIs.
68
+
### 1. Unified JSON Bridge (`ujson`)
69
+
We utilize a custom bridge layer called `ujson` (Universal JSON) to abstract the underlying JSON library.
70
+
***Default**: Uses `nlohmann/json` for ease of use and standard compliance.
71
+
***High Performance**: Supports `RapidJSON` (via `UJSON_USE_RAPIDJSON`) for faster parsing and reduced memory overhead, which is critical for high-throughput LLM serving.
72
+
***Abstraction**: All internal logic uses `ujson::json`, exposed as `jinja::json` to the user.
70
73
71
74
### 2. Custom Function / Filter Dispatch
72
75
***Filters**: Implemented in `FilterExpr`. Standard Jinja2 filters like `safe`, `tojson`, `trim`, `lower` are hardcoded.
0 commit comments