Overview / Design

Target products

Two Iranian, open-source AI products. Each is broken into its features, the modules those features trigger, and where each module sits: inside the TOE or in its environment.

4.1Why these two

CriterionHezar OCRDorna chat
Iranian marketPersian OCR by the Hezar project, the largest Persian open-source AI libraryPart AI Research Center, Tehran
Open sourceCode and models Apache-2.0Open weights, Llama 3.1 licence (gated)
AssessableFull source, models and training data publicWeights and model card public; serving stack open source
AI typeDiscriminative vision (detect + recognise)Generative language (LLM)
Complementary coverage

Each exercises 9 of our 10 active modules and packages, and together they cover all 10. Only AIM-CTX (chat history, retrieval) and AIM-DEC (decisions from extracted fields) are specific to one product. Neither is a finished product, so for each we define a reference deployment — the TOE boundary a vendor would ship.

4.2Product A: Hezar Persian OCR

Hezar is an open-source AI library for Persian. Its OCR pipeline finds text with a CRAFT detector and reads it with a CRNN recogniser trained for Persian.

Reference deployment (proposed)

Hezar is a library, not a product. Our TOE: the Hezar OCR pipeline as an HTTP service with API keys, an upload page, an admin console, and an optional step that turns text into form fields (e.g. a national-ID-card form).

Pipeline and the modules at each stage

Features → modules → placement

Hover or focus any box to trace its links. Dashed lines are optional features.

Its module stack

Market comparator: commercial Persian OCR services exist (e.g. Roshan's “Alefba”, named in a community source, not verified). The same module set applies.

4.3Product B: Dorna chat

Dorna2-Llama3.1-8B-Instruct is Part AI's Persian-tuned LLM, fine-tuned from Meta's Llama-3.1-8B-Instruct.

Reference deployment (proposed)

Dorna2 served by an open-source inference server (e.g. vLLM) behind an open-source chat front end (e.g. Open WebUI) with accounts, history, an OpenAI-compatible API and optional document upload with retrieval. Server and front-end choices are placeholders to confirm.

Pipeline and the modules at each stage

Features → modules → placement

Hover or focus any box to trace its links. Dashed lines are optional features.

Its module stack

Market comparator: GapGPT

A popular Iranian chat service that routes to foreign models (its marketing names GPT-4o, Claude and Gemini) and offers web search. That adds two features — external providers and tools — so AIM-GW gains its egress element, AIM-AGT becomes active, and AIM-SRV leaves the TOE because no model runs inside the product.

4.4Module matrix

TOE inside the evaluated productCOND TOE if the optional feature is usedENV environment— not present

4.5Features → modules

Both products' features side by side, with the modules each feature triggers.