Skip to main content

Autonomous Intelligence Network (AIN) - Core Research & Knowledge Compiler

Project description

AIN Research

Autonomous Intelligence Network — Core Research & Knowledge Compilation Engine

Python License: MIT PyPI

ain-research is the core orchestration engine powering the Autonomous Intelligence Network (AIN) — a self-organizing research system that autonomously ingests scientific literature, detects contradictions between knowledge nodes, and evolves credibility scores for every research concept it tracks.


🚀 Quick Start & Installation

pip install ain-research

Verify the installation:

import ain_research

[!IMPORTANT] AIN High-Fidelity Standard: As of v1.0.0, the Autonomous Intelligence Network (AIN) has autonomously enforced rigorous Google Style docstrings and exhaustive static typing across all modules (ain, db_manager, contradiction_engine, credibility_manager, infinite_research_daemon).


🔬 Core Architecture & API Reference

1. Knowledge Orchestrator (ain)

The central brain routes new research concepts to the correct vault subdirectory, compiles the knowledge wiki incrementally, and drives all downstream intelligence modules.

Usage:

import argparse
from ain_research.ain import cmd_remember, compile_wiki

# Save a concept (auto-routes based on tags)
args = argparse.Namespace(
    title="Hawkes Process in Market Making",
    content="A self-exciting point process where each trade increases P(next trade)...",
    tags="quant,finance,microstructure"
)
cmd_remember(args)
# → Saved to: vault/wiki/02_Research/Quant_Finance/

# Rebuild the full knowledge index
compile_wiki()

2. Autonomous Research Daemon (infinite_research_daemon)

Crawls ArXiv and GitHub continuously, maintaining stateful pagination and rate-limit-aware exponential backoff.

Usage:

# Single pass
python -m ain_research.infinite_research_daemon --run-once

# Ingest a specific paper
python -m ain_research.infinite_research_daemon --paper 2406.12345

3. Storage Foundation (db_manager)

OS-level atomic file locking + SQLite backing store with dead-letter queue logic.

Usage:

from ain_research.db_manager import FileLock, get_system_metrics

with FileLock():
    # safe critical section
    pass

metrics = get_system_metrics()
print(f"Queue pending: {metrics['queue_pending']}")

4. Contradiction Engine (contradiction_engine)

Zero-LLM-token 3-voter ensemble that detects mutually inconsistent research claims in < 500ms on 19,000+ nodes.

Voters:

  • TF-IDF cosine similarity (≥ 0.72)
  • Jaccard unigram overlap (≥ 0.45)
  • High semantic sim + tag disjointness

Usage:

from ain_research.contradiction_engine import detect_contradictions, get_unresolved_count

# Preview conflicts without writing to disk
conflicts = detect_contradictions(all_pages, dry_run=True)
print(f"Unresolved: {get_unresolved_count()}")

5. Credibility Manager (credibility_manager)

Self-evolving node reputation scoring with automatic archival and first-principles promotion lifecycle.

confirmed → score += 0.1  (max 1.0)
falsified → score -= 0.2  (min 0.0)
score < 0.3 → archived (_Archived_Falsified/)
score > 0.8 for 30d → first_principles (_First_Principles/)

Usage:

from ain_research.credibility_manager import record_confirmation, get_all_scores_summary

record_confirmation("Hawkes_Process_in_Market_Making")
for r in get_all_scores_summary()[:5]:
    print(f"{r['score']:.2f} [{r['status']}] {r['slug']}")

🏛️ System Architecture

ArXiv / GitHub API
        ↓
infinite_research_daemon  →  db_manager (SQLite Queue)
                                        ↓
                               ain.py Orchestrator
                               ↙        ↓        ↘
                    vault .md    contradiction   credibility
                    INDEX.md     engine          manager
                    MOCs         _Disputes/      _First_Principles/
                    visualizer_data.json

🤝 Contribution & Links

License

MIT © 2026 Sambit Mishra / AIN Labs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ain_research-1.0.1.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ain_research-1.0.1-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file ain_research-1.0.1.tar.gz.

File metadata

  • Download URL: ain_research-1.0.1.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for ain_research-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a7924408ff57ac8ef405028a3c3af3e70b199d84d1aead1f2470df91bd19d83a
MD5 d245b9ec45f98301d96c7f7108ff8a3d
BLAKE2b-256 1a41bad22a2b3a75e81f1f7536411819b5f7682c64ecd37c8c717899963faa84

See more details on using hashes here.

File details

Details for the file ain_research-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ain_research-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for ain_research-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dded8a5678ac0191dc562ef61d5b935c1a20978ebb94cc888d580f27ea24b90f
MD5 ab32205cda7efa34348f5a92f3a3909c
BLAKE2b-256 32d9b38acee99ca15482e69504ae3ceca2edc75aed5b3203d2ace73cf67f26e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page