File size: 1,561 Bytes
4afedc8 691ed73 44f9371 691ed73 44f9371 691ed73 44f9371 691ed73 44f9371 fb0b460 44f9371 691ed73 44f9371 691ed73 44f9371 691ed73 44f9371 691ed73 44f9371 691ed73 44f9371 691ed73 44f9371 691ed73 fb0b460 691ed73 fb0b460 691ed73 fb0b460 691ed73 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
---
license: mit
tags:
- modular-intelligence
- reasoning
- structure
- transformers
- experimental
base_model: openai-community/gpt2
pipeline_tag: text-generation
language: en
---
# Modular Intelligence
Modular Intelligence is a lightweight reasoning framework built on top of a language model.
It provides **Modules** (task-specific lenses), **Checkers** (second-pass reviewers), **Contracts** (structured output sections), and optional **Routing** (automatic module selection).
The base model is GPT-2, but the architecture is model-agnostic—any LLM can be plugged in.
---
## Features
### Modules
Task-specific reasoning modes.
Examples:
- **Analysis Note** – explanation and breakdown of concepts
- **Document Explainer** – summaries of contracts, policies, articles
- **Strategy Memo** – Options → Recommendation → Risks → Next Steps
- **System Blueprint** – workflow / system design
- **Brainstorm** – structured idea generation
- **Message Reply** – concise responses for emails, posts, chats
### Checkers
A second pass that evaluates:
- correctness
- clarity
- missing pieces
- contradictions
### Contracts
Every module produces a fixed output template.
This ensures reproducible structure and reduces variance.
### Router
Optional automatic module selection based on prompt classification.
---
## Usage
### Python
```python
from app import run_module
result = run_module(
module="StrategyMemo",
prompt="Should we expand operations to Region X next quarter?"
)
print(result) |