Skip to main content
Botmartz AI Solution PVT LTD.
ENGINEERING TEARDOWNS & REFERENCE IMPLEMENTATIONS

Reference Implementations &
Architecture Teardowns.

At Botmartz, we believe engineering capability is proven through transparent code, benchmarked architectures, and reproducible reference builds. Explore how our production systems and evaluation harnesses are architected.

Editorial Standard: All builds below are presented either as illustrated walkthroughs with reproducible benchmarks or as verified architecture patterns with explicit structural blueprints.
Flagship Reference Implementation

Insurance Policy Intelligence & Clause Discrepancy Engine

A production-style reference implementation demonstrating layout-aware multi-document policy comparison, endorsement discrepancy detection, exact paragraph citation grounding, and automated refusal guardrails.

Evaluation
Benchmark Set
Retrieval
Hybrid (Dense + BM25)
Citation Strictness
Exact Paragraph
Refusal Guardrail
Deterministic

Architectural Hallmarks

  • •Layout-aware table extraction with Markdown-preserving chunk boundaries
  • •Reciprocal Rank Fusion (RRF) combining dense embeddings with sparse BM25 token indexes
  • •Cross-encoder reranking re-scoring top-25 candidate passages to top-5 evidence spans
  • •Zero-hallucination abstention trigger when cosine similarity or cross-encoder thresholds fail

Tech Stack & Tooling

OpenSearch / QdrantDense 768-dim VectorsBM25 Keyword SparseBGE-Reranker-LargePydantic SchemaFastAPI
Illustrated Walkthrough
Architecture Pattern: Illustrative Scenario

VisaDesk — Visa & Migration Consultancy Operations OS

An enterprise-grade modular monolith architecture engineered with FastAPI, PostgreSQL 16 + pgvector, Redis, and Next.js 15. Features a complete Hybrid Search RAG pipeline with Corrective RAG (CRAG) system guardrails and multi-role RBAC.

Architecture
Modular Monolith
Retrieval
Dense + BM25
Guardrail
CRAG Verification
State
Redis Cache

Architectural Hallmarks

  • •Hybrid retrieval combining dense vector similarity with sparse BM25 keyword matching
  • •Cross-encoder reranking postprocessors (BGE / Cohere)
  • •Strict sufficiency gates that enforce refusal when context is missing
  • •Multi-turn conversational memory persisted via Redis

Tech Stack & Tooling

FastAPIPython 3.11PostgreSQLpgvectorRedisNext.js 15TanStack QueryLlamaIndex
Architecture Blueprint & Verified Pattern
Architecture Pattern: Illustrative Scenario

Deterministic Multi-Actor Operations State Machine

A constrained AI agent workflow built on LangGraph that isolates deterministic business logic from probabilistic LLM generation. Incorporates human-in-the-loop validation for any state-changing API invocation.

Control Flow
Cyclic Graph
Safety
Human Approval Node
Schema
Pydantic JSON
Telemetry
OpenTelemetry

Architectural Hallmarks

  • •Explicit cyclic state machines with conditional edge validation
  • •Human-in-the-loop approval nodes for write operations
  • •Tool-calling guardrails with strict Pydantic JSON schema verification
  • •Complete execution tracing and latency telemetry

Tech Stack & Tooling

LangGraphLangChainFastAPINext.jsServer-Sent EventsTailwind CSS
Production Architectural Pattern

Want to see how these architectures apply to your documents?

Book an architecture discovery review to analyze your document formats, security boundaries, and retrieval feasibility.