How we built TENGWAR, a private AI platform
How we designed and built TENGWAR, a private AI platform that runs on NVIDIA DGX Spark servers at the client's premises: the 17-phase ingestion pipeline, hybrid retrieval with page-level citations, the tool-using agent and the security model. The product, its editions and pricing are on tengwar.net.
Problem & Context
The engineering challenge was to build an assistant that knows an organization's internal documents without sending anything to cloud AI providers, because GDPR, trade secrets or intellectual property rule it out. That means the whole system has to fit on the client's hardware: ingestion, indexes, language models and search run on NVIDIA DGX Spark servers at their premises, and every answer has to be able to cite the exact page of the original document. The only outside connections are the integrations the client turns on, mobile access over an encrypted private network, and software updates.
Responsibilities
- Founded the product and led design, engineering and operations end to end
- Designed the 17-phase document understanding pipeline that turns raw files into searchable, multilingual, citable knowledge
- Built the tool-calling AI agent: document and web search, business integrations and report generation in Word, PDF and PowerPoint, with approval before actions
- Delivered the web, Windows and Mac apps on a shared Blazor interface, alongside the iPhone and Android apps
- Designed the enterprise security model: role-based access control, document access levels, encrypted connector credentials, auditable logging and default-deny tool authorization
- Orchestrated the on-premises deployment in three editions, from one to three DGX Spark units, with a single deploy command and full observability
Architecture & Stack
- Single-tenant on-premises deployment on NVIDIA DGX Spark: TENGWAR on one server; Pro and Max add one or two inference servers for the chat model. No cloud AI provider is ever contacted
- A single tool-calling agent on Microsoft Agent Framework answers in chat; long investigations split the work across specialist agents in the background
- 17-phase ingestion pipeline: layout detection, OCR, image and table extraction, translation, chunking and indexing, automated end to end
- Hybrid retrieval (dense vectors, BM25, ColBERT and a knowledge graph) with cross-encoder reranking, Self-RAG and CRAG correction to keep answers grounded
- Web, Windows and Mac apps on a shared Blazor interface, plus mobile apps; real-time streaming of answers and document processing progress
- Multi-layer security: access levels enforced at search time, default-deny tool authorization, approval before actions and audit logs with sensitive data redacted
Outcomes
- The whole system, from ingestion to the models, runs on the client's hardware without calling any cloud AI provider
- The 17-phase ingestion automates layout detection, OCR, translation and indexing of documents in 24 formats and several languages
- Hybrid retrieval delivers grounded, cited answers. Every claim is traceable to a source page
- The agent decides when to search documents, check the web or the ERP, or draft a deliverable, and asks for approval before acting
Product screenshots
Demo
Learn More
Official product page: tengwar.net ↗