Hi everyone,
I am a Forensic Accountant and Law student based in Mato Grosso, Brazil (the heart of the country’s agribusiness). I specialize in Judicial Recovery (bankruptcy), Asset Tracing, and Tax Engineering for large agribusiness groups.
I am currently conceptualizing an AI Agent (or a Multi-Agent System) designed to automate the heavy lifting of forensic audits. My goal is to build a system that is efficient, scalable, and highly accurate for complex financial litigation.
The Use Case & Challenge: In a typical agricultural bankruptcy case, I receive massive volumes of unstructured and semi-structured data:
-
Thousands of pages of scanned legal documents and court proceedings.
-
Bank statements, rural credit contracts (barter, CPRs), and invoices.
-
Heavy tax files (SPED) and balance sheets.
The AI Agent needs to:
-
Extract and structure data from messy, scanned PDFs (OCR).
-
Cross-reference financial inflows/outflows with tax declarations to detect fraud, asset hiding, or accounting discrepancies.
-
Map corporate relationships (Asset Tracing).
-
Draft a preliminary technical forensic report based on accounting standards.
My Current Background & Constraints: I have an intermediate-to-advanced grasp of Python and have experimented with basic agents (OpenClaw) and NotebookLM for document analysis. However, I am bootstrapping this project and have a strict limit of about 20 hours per week to dedicate to development. Also, Data Privacy is critical, as I handle confidential judicial data.
My Questions for the Community:
-
Multi-Agent Frameworks: For a system that requires strict financial reasoning and multi-step verification, which framework would you recommend? CrewAI, AutoGen, LangChain, or LlamaIndex?
-
Document Parsing & OCR: Legal PDFs are notoriously messy. What is the current state-of-the-art pipeline for extracting tabular financial data from scanned PDFs before feeding it to an LLM?
-
RAG vs. Long Context: For dossiers with 10k+ pages, should I build an advanced RAG pipeline (with chunking and vector DBs like Pinecone/Milvus), or rely on models with massive context windows (like Gemini 1.5 Pro / Claude 3.5 Sonnet) considering the privacy constraints?
-
Knowledge Graphs: For the “Asset Tracing” component (finding hidden links between partners and shell companies), would integrating a Graph Database (like Neo4j) with the LLM be the best approach?
-
Local vs. Cloud: Given the strict judicial secrecy of the data, is it viable to run this entirely locally (e.g., using Ollama with Llama 3) on a high-end machine, or are secure enterprise cloud APIs (AWS/GCP/Azure) the only way to get the reasoning power needed for accounting?
I would highly appreciate any roadmap, repository examples, or architectural advice to point me in the right direction. Thank you!