back_to_projects

AI Document Intelligence

DocAgent

DocAgent transforms raw construction documents into an intelligent query system. Files flow through a 7-stage async pipeline — parse, chunk, embed, classify, profile, extract, store — producing both semantic search vectors and structured SQL extractions. An AI agent with 5 flexible tools then answers business questions: aggregating costs, comparing budgets vs actuals, listing line items, or searching document text. Every number in the answer is fetched from SQL, never fabricated — the agent does zero arithmetic itself. Document profiles (stored as JSONB) supply per-document query hints and tool suggestions that guide the agent's strategy. Answers render as typed cards: tables, timelines, fact grids, and party cards.

Next.jsTypeScriptExpressNode.jsOpenAIPostgreSQLpgvectorBullMQRedisDrizzle ORM

// screenshots

DocAgent screenshot 1
DocAgent screenshot 2
DocAgent screenshot 3

// engineering highlights

// architecture explorer

loading diagram...