Pewarta Proxy

πŸ“‹ Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

βš™οΈ Pengaturan Proxy Target

Skip to content

About

A high-performance, production-grade pre-LLM document intelligence operating system that transforms unstructured documents into synchronized mathematical representations to build budget-aware, optimized context for AI agents.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

240 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AEGIS-DocIntel

Status: Alpha / Experimental β€” CI Status Coverage: 76%+ Status License: Apache 2.0 (docprep)

An experimental document-structuring research platform for pre-LLM context compilation, with one component validated and decoupled for immediate production usage:


Start Here: aegis-docprep

Three real, independently-tested document-processing primitives β€” PII redaction, submodular context packing, and spatial reading-order extraction β€” extracted from this platform because they are the pieces with the strongest real-world validation (see real benchmark results from Phase 9 testing, not marketing copy):

# Not yet published to PyPI β€” install from source:
git clone https://github.com/SahilKhutey/AEGIS-DocIntel.git
pip install ./AEGIS-DocIntel/aegis-docprep
  • Dependencies: Minimal (numpy>=1.26.0 only). Zero deep learning or GPU dependencies required.
  • PII Detection & Redaction: Regex and tokenization-based detection of US SSNs, Luhn-validated credit-card numbers, phone numbers (US, international E.164, local 7-digit), email addresses, API keys/tokens, and Title-Case person names. Treat it as a first-pass filter with human review, not a compliance guarantee β€” see limitations.
  • Submodular Context Packing: Greedy knapsack optimization with provable $(1 - 1/e)/2 \approx 0.316$ information coverage guarantee under strict LLM token ceilings.
  • Spatial Reading-Order Recovery: Directed topological DAG sorting over 2D bounding boxes resolving multi-column layout interleaving without heavy neural visual models.
  • Framework Integrations: Ready-to-use LangChain Document Transformers and LlamaIndex Node Postprocessors.

See the aegis-docprep package documentation and docs/docprep.md for quickstart guides.


The Full Platform (AMDI-OS)

A 16-mathematical-domain research system for pre-LLM document structuring. Real, substantial mathematical implementations exist for most core domains (see the honest layer-by-layer status, sourced from the project's own internal Extended Monograph's Appendix E). Several domains remain research targets rather than production features β€” see STATUS.md for exactly which is which.

The platform centers on the formal 10-tuple Master State:

$$\mathcal{D} = (P, S, G, R, F, M, T, X, H, E)$$

implemented as a strictly-typed immutable schema in src/core/master_state.py.

  Raw Document (PDF, DOCX, Scans)
               β”‚
               β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚              AEGIS Master State Extraction Pipeline         β”‚
  β”‚                                                             β”‚
  β”‚  1. Spatial Bounding Boxes (P)  ──► PyMuPDF extraction      β”‚
  β”‚  2. Reading-Order DAG (G)       ──► Topological sort        β”‚
  β”‚  3. Table Matrices (T)          ──► PDFPlumber bbox mapping β”‚
  β”‚  4. PII Redaction Layer (R)     ──► Deterministic masks     β”‚
  β”‚  5. Submodular Chunks (E)       ──► Knapsack budget solver  β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
               β–Ό
  Master State D = (P, S, G, R, F, M, T, X, H, E)
               β”‚
               β–Ό
  Token-Bounded, Non-Redundant Context Injection for LLMs

External Validation

No external pilots have been completed yet. Earlier revisions of this README described pilot case studies with specific metrics; they could not be corroborated (the repository has no pilot issues) and were removed β€” see STATUS.md. Pilot results will be published here only when each one links to a public GitHub issue.

Want to try it and tell us what breaks? Start with aegis-docprep, then open an issue using the pilot feedback template. Invitation draft: docs/pilot/recruitment_announcement.md.


Benchmark Results (real corpus, reproducible)

Corpus: 62 real-world PDFs (provenance). Reproduce with python scripts/run_benchmark.py; raw per-document results are in production/performance-report/.

Metric Result Notes
Pipeline success 61 / 62 (98.4%) the single failure is a deliberately password-protected PDF, rejected with a typed EncryptedPDFError
Tables detected 220 across 29 documents deterministic; independently re-run and matched exactly
Latency (reference machine) mean 1.22 s Β· median 0.24 s Β· p95 4.3 s Β· max 23.6 s absolute values vary by hardware
Cost vs naive text extraction β‰ˆ 68Γ— slower (1.22 s vs 0.018 s mean) table extraction currently re-parses the PDF once per page β€” known issue, tracked
Test coverage β‰₯ 75%, enforced by the CI gate ci.yml
Observability 9 Prometheus metrics wired to real call sites src/observability/metrics.py
Test suite see the CI badge above counts are deliberately not hard-coded in prose

P2 AI Quality & Evaluation Framework

AEGIS-DocIntel includes a versioned evaluation framework in evaluation/ testing document extraction fidelity, context packing invariants, PII redaction precision/recall, and retrieval grounding:

Domain Key Metric Gate Baseline Result
Extraction Fidelity Reading Order Kendall's $\tau$ $\ge 0.80$ $1.00$
Table Reconstruction Table Cell Grid F1 $\ge 0.90$ $1.00$
Context Packing Token Budget Violation Rate $0.0%$ $0.0%$
Submodular Bound Min Approximation Ratio vs Optimal $\ge 0.316$ $0.857$
PII Redaction Precision / Recall on Labeled Corpus $\ge 0.85$ $1.00 / 1.00$
Secret Protection Downstream Raw Secret Leakage $0.0%$ $0.0%$
Retrieval Accuracy MRR / Recall@5 $\ge 0.70 / \ge 0.80$ $1.00 / 1.00$
Hallucination Defense Abstention on Unanswerable Queries $100.0%$ $100.0%$

Run the unified evaluation suite locally:

python evaluation/scripts/run_all.py --fail-under-gates

Roadmap

Per the project's own internal Appendix E status matrix (Phase 5 finding):

  • Hardened Today: Reading-order graph, elastic chunker, knapsack solvers, spectral embedder, tabular compiler, PII redaction, submodular context packing β€” these are real, tested, and what aegis-docprep packages.
  • Real but Partially Mock: Semantic (LayoutLM-class) encoding β€” works when sentence-transformers is installed, falls back to clearly-flagged deterministic feature vectors otherwise (MasterState.semantic_status = 'mock_fallback').
  • Research Targets, Not Yet Production Features: Persistent-homology-based hierarchy (topology's $H$ layer), full distributed production multi-cluster topology, end-to-end benchmark evaluation at scale. These are documented as targets because they are active research areas β€” not because we claim they already work in production.

Installation & Cold-Start

Follow the tiered installation structure to avoid downloading unnecessary dependencies:

1. Minimal Primitives (aegis-docprep)

Only needs numpy. Not yet on PyPI, so install from a clone of this repo:

git clone https://github.com/SahilKhutey/AEGIS-DocIntel.git
cd AEGIS-DocIntel
pip install ./aegis-docprep

2. Full Platform Core (Web API, Graph Engines, Math)

git clone https://github.com/SahilKhutey/AEGIS-DocIntel.git
cd AEGIS-DocIntel
python -m venv venv
# Linux / macOS:
source venv/bin/activate
# Windows:
venv\Scripts\activate

# Install core runtime
pip install -r requirements-core.txt

3. Developer & Test Suite (Cold-Start Safe)

These exact commands are run on a fresh virtual environment by CI on every push (scripts/cold_start_check.sh), so this path cannot silently break:

pip install -r requirements-core.txt -r requirements-dev.txt
pytest tests/

Supported Python: 3.12 (canonical MVP runtime, validated in CI PR gate) and 3.13 (experimental / compatibility sweep in scheduled maintenance). Dependencies are defined once in pyproject.toml; the requirements-*.txt files are generated from it (python scripts/check_dependency_sync.py --write).

OCR tests additionally use pytesseract; real OCR needs the tesseract system binary.

4. Optional Extras

  • Deep Learning / Embeddings: pip install -r requirements-ml.txt (or pip install -e ".[ml]")
  • Interactive Web UI Dashboard: pip install -r requirements-ui.txt (or pip install -e ".[ui]")
streamlit run dashboard/app.py

Documentation

Full documentation is available via Material for MkDocs:

# Build and preview local documentation
pip install mkdocs mkdocs-material
mkdocs serve

Browse the documentation sections:


License & Governance

  • aegis-docprep: Licensed under the permissive Apache License 2.0.
  • Full AEGIS-DocIntel Platform: Available under evaluation and research terms per LICENSE.

About

A high-performance, production-grade pre-LLM document intelligence operating system that transforms unstructured documents into synchronized mathematical representations to build budget-aware, optimized context for AI agents.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Packages

Contributors

Languages