Executive AI Analyst
Input: management queries
Tools: SQL, RAG
Output: analytical summaries
Authority: read-only
AI Fabrica — Architecture
AI Fabrica is a private laboratory for developing and testing AI solutions. The proposed AI Grain Trading project brings together business records, analytics, documents and specialised agents. This page explains its architecture and the responsibilities of each component.
Target architecture
Target Architecture
Target scheme: dedicated project environment is connected to lab services through managed interfaces. Deployment and isolation of the client environment are designed separately.
Select a service by task requirements and load: AIserver or the two GB10 nodes.
Only minimal necessary data and processing rules are transferred.
No OS or admin access for callers.
Two-node DeepSeek V4 Flash, TP=2; a single inference service.
Target customer backup policy is defined separately.
Users get access only to the project application, not the lab network. The job queue connects the project to additional compute resources; administrative and backup nodes are not on the ordinary inference path.
Software Architecture
Deterministic SQL modules and Python components. The language model interprets results but does not replace the calculation core.
LLM selection is based on quality, context, tool calling, and load, not just size. Replacing the model does not require reworking the application core.
Models and Routing
Qwen3.8-Flash-Next is considered a candidate. For the dedicated node, memory with KV cache, parallel load, and chosen runtime still need to be checked. If resources are insufficient, a compact model is selected.
Qwen3.8-Flash-Next NVFP4, verified context 262 144. Used for analysis, document work, programming, and tool use when the task fits context and capacity.
The dispatcher accounts for parallel image and video generation tasks; their compute time is planned separately.
DeepSeek-V4-Flash-0731 TP2 — baseline for analysing large document collections, context 1 048 576. Route selection is based on quality, context, and load.
Qwen3.8-27B, already deployed on a 32 GB card. Backup compute capacity, a second review of answers, data extraction and classification where output quality is sufficient.
An agent role does not necessarily require a separate model: multiple roles may share an inference provider but with isolated context, tools, and permissions. Application business math is deterministic and not performed by LLM. External cloud APIs are not implied; any external data transfer requires approval.
Orchestration
Agent role, permitted data, and required tools are defined.
Structured records, calculation results, and relevant documents are prepared.
Data access, size and context headroom, latency, and load are considered. If the local project model is sufficient, it is used; otherwise the request goes through the authorized AI Worker. For long context, DeepSeek is used; for speed, Flash when it fits.
Format, numerical results, sources, and tool outcomes are validated.
Logging; employee grants permission for writes, payments, and contract changes.
A manager asks why a trade margin fell. The process coordinator calls the structured data and calculation service, retrieves documents via RAG, and the router selects an adequate local model or an authorised lab compute service based on context and load. The model writes explanations with sources, and the employee authorizes any change. The coordinator handles business steps and tool calls; the model router chooses compute explicitly. Proposed reliability rule: bounded retries, timeouts, and no duplicate business writes.
Multi-Agent System
Input: management queries
Tools: SQL, RAG
Output: analytical summaries
Authority: read-only
Input: contracts, operations
Tools: ERP modules
Output: deviation alerts
Authority: read, notify
Input: scans, PDFs
Tools: OCR, extraction
Output: structured data
Authority: draft write
Input: data, templates
Tools: Excel, Word, PDF
Output: ready documents
Authority: file creation
AI CFO — analyzes liquidity, cash flows, debt, and funding costs; produces a management briefing.
AI Commercial Analyst — evaluates deal, supplier, and buyer performance; prepares a comparative analysis of commercial terms.
AI Logistics Manager — monitors shipments, timing, and costs; generates delay and cost overrun alerts.
AI Legal Counsel — reviews contracts for risky terms; prepares a draft document for legal review.
AI Controller and Auditor — independently verifies documents, calculations, and rules; produces an exception report without modifying data.
AI Secretary — manages tasks and messages; prepares a draft administrative summary.
AI Operations Coordinator — monitors process states and routes tasks; escalates deviations.
An agent role does not necessarily require a separate model: multiple roles can share a common service but use different tools and permissions. Critical actions (payments, contracts) require human approval. The auditor only reads and checks, never modifies data.
Workflow Scenarios
The document undergoes OCR and attribute extraction. The system cross-references data with contracts and deals, validates completeness and correctness. After employee approval, data is imported into the ERP.
The system retrieves structured data and runs software calculations to address the management question. RAG retrieves related documents so the basis of the answer can be checked; missing data is explicitly identified.
When a deviation is detected, the coordinator prepares an alert with the necessary evidence. An authorised employee makes the decision. Full coordination of end-to-end processes belongs to a later development stage.
Reliability and Scaling
The job queue transfers only authorized tasks and the minimum necessary data volume. End users have no access to additional GPU servers. When load, complexity, or timeout thresholds are exceeded, the router transfers tasks to additional resources. The model service is isolated from business logic and can be replaced. Independent workers do not require a single shared model across all nodes.
NAS storage and replication do not by themselves ensure service continuity. Acceptable data loss, recovery times and service redundancy must be defined for the project and checked through restore tests.
Additional
Discuss your initial systems and data flows? Contact us.