Skip to content

About

Analysis your documents according to the rulebook that you give and give you a final summary document removing all the conflicts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Document Analyst

Reads. Reconciles. Reports.

Turns a folder of contracts into one cited, verified final document,
and asks you only where the sources disagree.

CI Python 3.12 FastAPI LangGraph PostgreSQL with pgvector React and TypeScript Docker Compose

Quick start · Architecture · Docs


Ingest, extract, cross-check, human review, deliver final-document.docx

Demo

Uploading an amendment, reviewing what changed and getting final-document.docx v2

Open a pile · trace a value to its source sentence · upload an amendment · review · get final-document.docx v2 · see what it cost

Quick start

Prerequisites

Requirement Notes
Docker Docker Desktop, or Docker Engine with Compose v2. About 10 GB of free disk.
make, git Preinstalled on macOS and Linux.
An API key OPENAI_API_KEY or GEMINI_API_KEY covers everything. With ANTHROPIC_API_KEY, add one of those too: Claude has no embedding model.

Run

git clone https://github.com/NigamDevansh/documents-analyst.git
cd documents-analyst
cp .env.example .env    # then add your API key
make up                 # first build takes 5–10 minutes

Open http://localhost:8000, then:

  1. Add documents. Copy a folder into watched/, or click Upload files on a pile.
  2. Review. Enter your name, open Review, approve or choose.
  3. Collect. final-document.docx is written into the pile's folder and can be downloaded from the dashboard.

Good to know

  • make down stops everything. Your data is kept.
  • Watch a different folder by setting WATCH_DIR=/absolute/path in .env, then make up.
  • Drop a rulebook.yaml into a pile to check its terms against your own rules.
  • make test runs the full suite. No API keys needed.

Architecture

Dashboard and MCP server call the API; API and worker share PostgreSQL; the worker runs one LangGraph lane per pile, calls LLM APIs and local models, and reads and writes the watched folder

Deeper dives: Backend · Worker runtime · Core · Testing

About

Analysis your documents according to the rulebook that you give and give you a final summary document removing all the conflicts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages