The Ethical Policy Pipeline Network (EPPN) is a hybrid multi-agent system that combines ASI:uAgents distributed intelligence with OpenCog-inspired cognitive reasoning for autonomous policy document analysis and ethical evaluation.
- Librarian uAgent: Fetches PDFs from public government portals
- Interpreter uAgent: Extracts and structures content from PDFs
- Summarizer uAgent: Summarizes structured data using LLMs
- Ethical Analyst uAgent: Integrates with OpenCog AtomSpace for ethical reasoning
- Communicator uAgent: Interfaces with human ethics partner via dashboard
- AtomSpace: Concept graph representations of policy data
- Reasoning Engine: Pattern mining, probabilistic logic reasoning, and ECAN-style attention control
- PLN Reasoner: Probabilistic Logic Networks for ethical inference
- Concept Mapping: Symbolic representation of policy concepts and relationships
- Autonomous Policy Retrieval: Automated discovery and fetching of policy documents
- Cognitive Understanding: Symbolic representation and reasoning about policy content
- Ethical Analysis: Advanced reasoning about ethical implications and fairness patterns
- Human-AI Collaboration: Interactive dashboard for human oversight and feedback
- Distributed Intelligence: Scalable multi-agent architecture on ASI:cloud
eppn/
├── agents/ # uAgent implementations
│ ├── librarian/ # PDF retrieval agent
│ ├── interpreter/ # Content extraction agent
│ ├── summarizer/ # LLM-based summarization agent
│ ├── ethical_analyst/ # OpenCog-integrated ethical reasoning
│ └── communicator/ # Human interface agent
├── cognitive_core/ # OpenCog-inspired cognitive system
│ ├── atomspace/ # Concept graph and atom storage
│ ├── reasoning/ # PLN reasoning and pattern mining
│ └── api/ # Cognitive core APIs
├── schemas/ # Inter-agent message schemas
├── config/ # Configuration files
├── tests/ # Test suites
└── docs/ # Documentation
- Librarian receives
CrawlRequestand emitsPDFReadyfor each URL. - Interpreter receives
PDFReady, extracts text toParsedTextand emits back. - Summarizer receives
ParsedText, emitsSummaryReady. - Ethical Analyst receives
ParsedText, writes to AtomSpace, runs cognitive analysis, emitsEthicsReport. - Communicator receives
SummaryReadyandEthicsReportfor human review.
- Install deps:
pip install -r requirements.txt - Run agents in separate terminals:
python agents/librarian/main.pypython agents/interpreter/main.pypython agents/summarizer/main.pypython agents/ethical_analyst/main.pypython agents/communicator/main.py
- Start the FastAPI backend:
cd frontend uvicorn app:app --reload --port 8000
Static demo (Netlify):
- Deploy the static site to Netlify or use
netlify dev:
# From repository root
netlify deploy --dir=frontend/static --prodSet BACKEND_URL to your local backend in the static UI.
3. Send a CrawlRequest to Librarian with a public PDF URL.
python tools/cli_crawl.py https://treasury.go.ke/budget/SomeBudgetDoc.pdf
- Start
social_monitorto poll feeds:python agents/social_monitor/main.py
cd frontend
docker build -t eppn-dashboard .
docker run -p 8000:8000 -v %cd%/../data:/app/data eppn-dashboard
- Use
config/asi-config.yamlfor registry and agents. Then:
asi deploy --config config/asi-config.yaml
- Python 3.9+
- Core Libraries: uagents, requests, pypdf2, transformers, openai
- Cognitive Libraries: networkx, pandas, numpy, spacy
- Advanced Reasoning: opencog-hyperon (optional)
- Deployment: ASI:cloud multi-agent registry
-
Install Dependencies:
pip install -r requirements.txt
-
Initialize Cognitive Core:
python -m cognitive_core.init
-
Start Agent Development:
python -m agents.librarian.main
-
Deploy to ASI:cloud:
asi deploy --config asi-config.yaml
- Document Discovery: Librarian agent identifies and retrieves policy documents
- Content Extraction: Interpreter agent parses and structures document content
- Semantic Understanding: Content is mapped to AtomSpace concepts
- Summarization: Summarizer agent creates human-readable summaries
- Ethical Reasoning: Ethical Analyst applies PLN reasoning for ethical evaluation
- Human Review: Communicator agent presents findings for human oversight
- Contradiction Detection: Identifies conflicting policy statements
- Fairness Analysis: Evaluates policy fairness across different groups
- Ethical Red Flags: Detects potentially problematic policy elements
- Conceptual Mapping: Maps policy concepts to ethical frameworks
- Probabilistic Inference: Uses PLN for uncertain ethical reasoning
- Phase 1: Core agent implementation and basic cognitive reasoning
- Phase 2: Advanced PLN reasoning and ethical pattern recognition
- Phase 3: Human-AI collaboration interface and feedback loops
- Phase 4: Cloud deployment and scaling optimization
- Phase 5: Advanced cognitive capabilities and autonomous learning
Added by @colleenpridemore
The Ethical Policy Pipeline Network (EPPN) is a hybrid multi-agent system that combines ASI:uAgents distributed intelligence with OpenCog-inspired cognitive reasoning for autonomous policy document analysis and ethical evaluation.
graph TD
subgraph Frontend
A1[Vite/React]
A2[FastAPI Dashboard]
A3[Dockerized UI]
A1 --> A2
end
subgraph Backend
B1[Python 3.9+]
B2[uAgents Multi-Agent System]
B3[FastAPI]
B4[Cognitive Core<br/>OpenCog AtomSpace/PLN]
B5[LLM Integration<br/>Transformers/OpenAI]
B6[PDF & OCR<br/>PyPDF2, pdf2image, DeepSeek]
B1 --> B2
B2 --> B3
B3 --> B4
B3 --> B5
B3 --> B6
end
subgraph Cloud & DevOps
C1[ASI:cloud]
C2[Vercel]
C3[Netlify]
C4[GitHub Actions]
C5[Docker]
C1 --> B2
C2 --> A1
C3 --> A1
C4 --> A1
C4 --> B1
C5 --> A3
C5 --> B1
end
subgraph Optional
D1[Cudos Blockchain]
D2[AgentVerse Registry]
D3[OpenCog Hyperon]
D1 -.-> B2
D2 -.-> B2
D3 -.-> B4
end
The diagram above shows the main technologies powering both the multi-agent backend, cognitive core, and the frontend dashboard, as well as deployment and optional integrations.
- Librarian uAgent: Fetches PDFs from public government portals
- Interpreter uAgent: Extracts and structures content from PDFs
- Summarizer uAgent: Summarizes structured data using LLMs
- Ethical Analyst uAgent: Integrates with OpenCog AtomSpace for ethical reasoning
- Communicator uAgent: Interfaces with human ethics partner via dashboard
...
This project follows ethical AI development principles and requires careful consideration of bias, fairness, and transparency in all implementations.
[License information to be added]